Subject: Re: partition signatures
To: None <spberry@iastate.edu>
From: Perry E. Metzger <perry@piermont.com>
List: port-i386
Date: 10/12/1995 11:03:04
spberry@iastate.edu writes:
> I find myself in the unfortunate position of having disklabeled over the
> disklabel existant on my root drive.  I can still bring up the root partition
> at the beginning of the disk, but am unable to bring up the rest of the
> partitions.  I've just got three partitions, root, swap, and a /usr partition
> on the disk.  I was wondering if there was a signature I could look for at
> the beginning of that partition, so as to get the partitions right.  
> #sacrifice<{chicken}||{virgin}||{whatever}>
> Would really appreciate it.

Yes, the superblocks do indeed have a signature in them -- and I have
in the past written code to do exactly what you need to do now.

Its easy to do -- read /usr/include/ufs/ffs/fs.h for details... Yes,
the include file is very well commented.

Perry