From owner-freebsd-current Wed Aug 26 15:21:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA02251 for freebsd-current-outgoing; Wed, 26 Aug 1998 15:21:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bright.fx.genx.net (bright.fx.genx.net [206.64.4.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA02246 for ; Wed, 26 Aug 1998 15:21:52 -0700 (PDT) (envelope-from bright@www.hotjobs.com) Received: from localhost (bright@localhost) by bright.fx.genx.net (8.9.1/8.8.8) with SMTP id SAA21968; Wed, 26 Aug 1998 18:21:46 -0500 (EST) (envelope-from bright@www.hotjobs.com) X-Authentication-Warning: bright.fx.genx.net: bright owned process doing -bs Date: Wed, 26 Aug 1998 18:21:46 -0500 (EST) From: Alfred Perlstein X-Sender: bright@bright.fx.genx.net To: Mikhail Teterin cc: Stefan Eggers , julian@whistle.com, current@FreeBSD.ORG Subject: Re: recovering disk In-Reply-To: <199808262141.RAA29688@xxx.video-collage.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG are you using DEVFS? cause that's the same problems i get when trying to do a disklabel, although i can read my labels, as they are not hosed. Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current On Wed, 26 Aug 1998, Mikhail Teterin wrote: > Stefan Eggers once stated: > > => fdisk at all and proceed to the disklabel... So what should I do > => instead of the plain: > => > => root@rtfm:/home/mi (108) disklabel -e sd1 > => disklabel: ioctl DIOCGDINFO: Invalid argument > > =How about "disklabel -r -e sd1s1" (if fdisk partition 4 - if it is the > =only one - ends up as slice 1) for a start? > > =If it is thought of by the system as damaged or unlabled I think the > =best one can do is writing a new one with "disklabel -r -w sd1s1 auto" > =and then edit the data. One will loose the previous data in it, though. > > root@rtfm:/home/mi (112) disklabel -r sd1s1 > disklabel: bad pack magic number (label is damaged, or pack is unlabeled) > root@rtfm:/home/mi (113) disklabel -r -w sd1s1 auto > disklabel: ioctl DIOCGDINFO: Invalid argument > disklabel: auto: unknown disk type > root@rtfm:/home/mi (114) disklabel -r -e sd1s1 > disklabel: bad pack magic number (label is damaged, or pack is unlabeled) > > :-( > > Thanks! > > -mi > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message