Re: Filesystem marker.

2004-01-14 Thread Dag-Erling Smørgrav
David Gilbert <[EMAIL PROTECTED]> writes: > Is there a set of bytes at some offset in a block that is common to > any instance of a BSD ufs filesystem? Yes, you should find copies of the superblock for each file system at regular intervals. On a little-endian machine, each superblock will contain

Re: Filesystem marker.

2004-01-14 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> David Gilbert <[EMAIL PROTECTED]> writes: : Is there a set of bytes at some offset in a block that is common to : any instance of a BSD ufs filesystem? I ask because recently my home : machine erased it's fdisk block _and_ the bsdlabel with it. It : cer

Re: Filesystem marker.

2004-01-14 Thread Brooks Davis
On Wed, Jan 14, 2004 at 02:20:55PM -0500, Robert Watson wrote: > > On Wed, 14 Jan 2004, David Gilbert wrote: > > > Is there a set of bytes at some offset in a block that is common to any > > instance of a BSD ufs filesystem? I ask because recently my home > > machine erased it's fdisk block _and

Re: Filesystem marker.

2004-01-14 Thread Robert Watson
On Wed, 14 Jan 2004, David Gilbert wrote: > Is there a set of bytes at some offset in a block that is common to any > instance of a BSD ufs filesystem? I ask because recently my home > machine erased it's fdisk block _and_ the bsdlabel with it. It > certainly didn't have time to erase the whole

Re: Filesystem marker.

2004-01-14 Thread Alexander Kabaev
Look for ffsfind.c elsewhere on Internet. I used one when I incidentally relabeled a device from under a host on our SAN array. Had to modify it slightly to recognize superblocks UFS2 on FreeBSD side, but on a bright side, it worked pretty much unchanged on Solaris box. Just in any case, I saved m

Filesystem marker.

2004-01-14 Thread David Gilbert
Is there a set of bytes at some offset in a block that is common to any instance of a BSD ufs filesystem? I ask because recently my home machine erased it's fdisk block _and_ the bsdlabel with it. It certainly didn't have time to erase the whole disk, but I'm having trouble guessing where the par