Corrupt patition table
Hi!
It seems to be a corrupt table on one of my disks. Is there any advice on
how i can investigate and recover?
It used to be about 5-6 patitions on the disk. Now it looks like this:
# sfdisk -l /dev/hda
Disk /dev/hda: 77545 cylinders, 16 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
sfdisk: ERROR: sector 25579008 does not have an msdos signature
Warning: The partition table looks like it was made
for C/H/S=*/64/32 (instead of 77545/16/63).
For this listing I'll assume that geometry.
Units = cylinders of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 1989 1990- 2037744 7 HPFS/NTFS
/dev/hda2 1996+ 38165 36170- 37037744 5 Extended
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 1996+ 3492- 1497- 1532128+ 82 Linux swap
/dev/hda6 3492+ 12489- 8998- 9213088+ 83 Linux
Some minutes later, it looks like this:
# fdisk -l /dev/hda
Warning: ignoring extra data in partition table 7
Warning: ignoring extra data in partition table 7
Warning: ignoring extra data in partition table 7
Warning: invalid flag 0x6474 of partition table 7 will be corrected by
w(rite)
Disk /dev/hda: 40.0 GB, 40020664320 bytes
64 heads, 32 sectors/track, 38166 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1990 2037744 7 HPFS/NTFS
/dev/hda2 1997 38166 37037744 5 Extended
/dev/hda5 1997 3493 1532128+ 82 Linux swap
/dev/hda6 3493 12490 9213088+ 83 Linux
/dev/hda7 ? 97687 1010525 934745879+ 2e Unknown
History:
This IDE-disk was usually the only disk in my pc. The problem came during
an upgrade og my pc. I got an extra IDE disk, new Motherbord, cpu and 2 new
SATA discs.
I don't know how the table was corrupted:
The new motherboard has of course built in SATA controller with raid. I
tried all the different settings on raid-controller, in my attempt to set
up RAID0 on the 2 Sata-disks. I suppose this controller works just for the
SATA disks, and not for the IDE disks.
I did many attemts to install new os before i discovered i had to use Grub
instead of Lilo. I tried different disk settings, but i never changed the
partitions on the old disk, and i only tried to install the OS on the new
disks.
It was changing, how many partitions Mandriva Diskdrake was seeing on the
disk.
I wonder if the diskcontroller, or Diskdrake might have done changes on its
own.
Details:
Motherboard: Abit AV8
http://www.komplett.no/k/ki.asp?sku=302188&view=detailed
The disk with bad table: Western Digital Caviar 40GB
http://www.komplett.no/k/ki.asp?sku=104408&view=detailed
OS: Mandriva 2005, and -2006 beta.
|