Ubuntu

Comment 26 for bug 1061255

Phillip Susi (psusi) wrote :

It is actually the backup copy at the end of the disk that appears to be the problem. Zeroing out the last sector of the disk should fix it. To do this, you want to follow steps similar to this:

sudo fdisk -lu /dev/sda

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors

Note the sector count. Subtract one and that leaves 488397167, which you can then use with dd to dump that sector:

sudo dd if=/dev/sda bs=512 count=1 skip=488397167 | hd

At this point you should see somewhere on the screen the string "PRIVHEAD". If you do, that is the LDM label sector. You can then zero it out with:

sudo dd if=/dev/zero of=/dev/sda bs=512 seek=488397167 count=1

It is vital that the command be executed correctly or you can trash your whole disk, so triple check your typing and math before hitting enter.