Noah Meyerhans <[EMAIL PROTECTED]> writes:
> I did something similar a number of years ago. If you know the layout
> of the old partition table, you can simply create a new identical table
> and everything should be good. If you don't know the layout, there are
> tools that can scan the disk looking for the beginnings of filesystems.
> I found one such tool on sunsite.unc.edu (no, wait, that's
> metalab.unc.edu... err, no, ibiblio.org. Silly name changes.)
Yes -- unless the filesystem program actually went to the trouble
of wiping bits, all it did was empty the partition table.
ext2 has a distinct magic number value at some offset into the
start of the partition. According to my local magic file, the magic
number is 0xEF53, offset 0x438 into a partition.
If you can't find the already existing C program, those numbers
can be turned into a perl scanner pretty quickly.
---
Send mail for the `bblisa' mailing list to [EMAIL PROTECTED]'.
Mail administrative requests to [EMAIL PROTECTED]'.