From owner-freebsd-questions Thu Apr 22 12:26:41 1999 Delivered-To: freebsd-questions@freebsd.org Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (Postfix) with ESMTP id 88DC71508B for ; Thu, 22 Apr 1999 12:26:36 -0700 (PDT) (envelope-from patseal@hyperhost.net) Received: from p44.a8.du.radix.net (p44.a8.du.radix.net [207.192.132.172]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id PAA08178; Thu, 22 Apr 1999 15:23:56 -0400 (EDT) Date: Thu, 22 Apr 1999 15:23:53 -0400 (EDT) From: Patrick Seal To: Doug White Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Hard drive failure In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Everything was gone Includinng fdisk info and diskinfo stuff. One interesting tidbit though: patseal@foobar{51}# fdisk ******* Working on device /dev/rwd0 ******* parameters extracted from in-core disklabel are: cylinders=16383 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=16383 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 16514001 (8063 Meg), flag 80 (active) beg: cyl 0/ sector 1/ head 1; end: cyl 1023/ sector 63/ head 15 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: Before I refdisk'd the drive the : sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 16514001 (8063 Meg), flag 80 (active) beg: cyl 0/ sector 1/ head 1; end: cyl 1023/ sector 63/ head 15 stuff was under partition 4 (probably a bit different though). Maybe that's why I was having all the trouble. Somehow all the drive info had shifted or was corrupt or something. I guess that the only left to do is to just guess the sizes of /usr and /var and swap. Any other thoughts? Thanks, ------------------------------------ _____________________________________ Patrick Seal |"Microsoft isn't evil, they just make | really crappy operating systems." Hyperhost - http://www.hyperhost.net| -Linus Torvalds hosting and Design http://www.freebsd.org - http://www.linux.org On Thu, 22 Apr 1999, Doug White wrote: > On Wed, 21 Apr 1999, Patrick Seal wrote: > > > I deleted doug's reply to this, but he said there was almost no hope to > > recover the data myself. > > > > For the heck of it I just re-fdisk'd the disk and then mounted wd0s1 on > > /mnt > > > > everything seems to be there. (at least the root slice) but everything > > under /usr and /var only show the immediate directory structure. I guess > > this is because I mounted the compatibility slice?? How can I get the > > stuff under /usr? I would just re-label the drive, but will that destroy > > my data? I also can't remember exactly how many MB are in each slice, so > > that would be a problem too. > > > > If anyone knows how I can get this stuff it would be *very* appreciated. > > If not, I only lost a weeks worth of code :( > > Well, you grabbed the root directory. Can you mount /dev/wd0s1e or > /dev/wd0s1f? Those shuld contain /var and /usr, respectively, assuming > the disklabel wasn't completely spammed. > > If you feel lucky, you can try relabling the slice, as long as you have > the *exact* sizes of the partitions. > > Doug White > Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve > http://gladstone.uoregon.edu/~dwhite | www.freebsd.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message