Date: Wed, 29 Sep 1999 17:29:40 +0930 From: Greg Lehey <grog@lemis.com> To: "Oleg L. Tortseff" <skiller@dmitrov.ru> Cc: freebsd-questions@freebsd.org Subject: Re: Problem with repearing damaged filesystem! Message-ID: <19990929172939.B85028@freebie.lemis.com> In-Reply-To: <199909271729.VAA62119@dmitrov.ru>; from Oleg L. Tortseff on Mon, Sep 27, 1999 at 09:29:33PM %2B0400 References: <19990925092518.Y54407@freebie.lemis.com> <199909271736.VAA62265@dmitrov.ru> <19990925092638.Z54407@freebie.lemis.com> <199909271729.VAA62119@dmitrov.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 27 September 1999 at 21:29:33 +0400, Oleg L. Tortseff wrote: > Hello, Greg! > >>> run fsck on /dev/wd3c >> >> Oleg's error message indicates that the file label is so messed up >> that he can't even read it. This is bad stuff. > Not at all. When I'm booting from fixit floppy I CAN read label, > but it is empty! Step-by-step: > > Fixit# disklabel -r /ev/rwd3 > # /dev/rwd3: > type: unknown > disk: amnesiac > label: > flags: > ...some sh#t about HDD... > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 6185088 0 unused 0 0 # (Cyl. 0 - 6135) > > In fact, label is really empty (I saw it in 1-st physical sector). I don't > know who and how made it, but i need to repear that HDD. OK, you should be able to change this label with disklabel -e. The question is, do you recall how you partitioned the disk? If so, just recreate it. If not, one possible way to do this is to create a single a partition the same size as the disk. Do an fsck -n on it (don't write anything back, just see if it looks like it's finding a file system there). If it does, you can do an fsck -y and mount the file system. Then you'll find the real size of the file system, and you can modify the label and create another partition out of the rest of the disk. If you had swap on the disk, of course, you're going to have to know how big it was, or you'll have difficulty finding the next file system. > In man pages I saw something about in-core label... I wanna drag it > from, and drop it in 1-st physical sector, if it possible. Well, it's not a drag and drop business, and since the in-core label gets read from disk, you're out of luck once you reboot. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990929172939.B85028>