Subject: Re: I mangled my root drive's disklabel. I need advice!
To: None <netbsd-help@NetBSD.ORG>
From: David Eckhardt <David_Eckhardt@piper.nectar.cs.cmu.edu>
List: netbsd-help
Date: 05/11/1998 21:59:24
Christos Zoulas wrote:
Try scanning the disk for the ffs magic number every sector
magic = 0x011954. Have the program print the sectors that
it finds that, and then attempt to mount this. The tricky
thing is to find the size of the partition...
I believe you will find multiple superblocks ("struct fs" in
/usr/include/ufs/ffs/fs.h) in each partition. If I recall, newfs
tends to put one at sector 64 (63?) as well as sector 0.
Dave