Recovering a lost partition table

Roger McCalman roger at
Sat Oct 28 01:23:57 BST 2000

I have managed this.

By locating the super blocks of the filesystems and then
handcrafting the fdisk info I can now fsck and mount
all the file systems. Tomorrow I will attempt a re-boot on the
recovered file systems.

If anyone is interested in some C code to find super blocks - I have some.

Cheers, Roger

On Fri, Oct 27, 2000 at 10:21:46PM +0100, Roger McCalman wrote:
> Hi folks,
> I have managed to corrupt the partition table on my primary
> IDE hard disk. I was trying to put another disk in and the BIOS
> zeroed out the first few blocks of the drive.
> Is there anywhere that a copy is saved?
> I looked though the disk for the FS_MAGIC and then verified that
> the rest of the data was sensible and then used fdisk
> to create a partition. So I have managed to mount (read-only)
> the root filesystem.
> What I want now is a way of rembering what sizes the partitions
> and BSD slices were.
> Any help would be much appreciated.
> OS on duff disk is FreeBSD 4.0. I have another drive on the machine
> running FreeBSD 3.3 and so can do most things to the disk.
> Cheers, Roger
> ------ FreeBSD UK Users' Group  -  Mailing List ------

More information about the Ukfreebsd mailing list