Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 1996 22:55:40 -0500 (EST)
From:      bah6f@viper.cs.virginia.edu
To:        questions@freebsd.org
Subject:   plea for disklabel help
Message-ID:  <9603150355.AA00225@viper.cs.Virginia.EDU>

next in thread | raw e-mail | index | archive | help
I'm smarter than this, really.  I was routinely upgrading to 2.2-SNAP,
when I did something catastrophically stupid.  This hasn't been my
week.

I was having trouble getting my machine to boot after I installed
2.2-SNAP.  I use an "incompatible" partition table on my scsi boot
disk, and I had written out a standard MBR during the SNAP install.
It didn't want to boot.  Let's not get into that.  I'll worry about
that later.  Here's my mistake:

I went into the sysinstall fdisk program and I re-wrote the partition
table.  I used the (W)rite option in fdisk.  Ugh.  I clobbered my
existing disklabel when I did that.  Up to that point my partition
table and disklabel had been fine, it just wouldn't boot.  Now I've
blow away my original disk label.  Of course, being the foolhardy guy
that I am, I don't remember precisely the size of the partitions I had
on the disk.  It was something like:
sd0s1a	    32Mb	/
sd0s1b	    32Mb	swap
sd0s1e     512Mb	/home
sd0s1f  the rest	/usr

I don't care about / or /usr (or swap, naturally).  All I need to
do is grope around on the disk, find the beginning of /home, and
create a disklabel entry for it.  If I can get /home off that disk,
I'll be fine and I can redo the rest from scratch.  Nothing valuable
lived anywhere but on /home.

So, anyone have a way I can grope the disk and find the beginning of
my /home partition?  Once I find that, how do I construct the
corresponding disklabel entry?  Isn't there a "magic" number for
superblocks?  Any quick-n-dirty way to scan the raw blocks looking for
that magic number?  Would that do it?

A six-pack of your favorite malted beverage to someone who can
help me get /home back. :)

Thanks in advance,
Mud
-- 
Paco Hope                                           Technical Support Staff
email: paco@cs.virginia.edu                  Department of Computer Science
WWW: http://www.cs.virginia.edu/~bah6f/              University of Virginia



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9603150355.AA00225>