I was trying to install Fedora, but had the same trouble that most of the people: Misaligned partitions, it said.
After I told it to ignore and proceeded to the partitioning screen I was shocked to see that it thought my entire >90Gb /home partition was free space. So, I quit the installer and dug up a solution from this forum:
I tried setting the drive to LBA in bios, didn't work.
So, I booted with a livecd, unomounted all the drives and gave this command, as suggested:
sfdisk -d /dev/hda | sfdisk --no-reread -H255 /dev/hda
It said : "Successfully wrote the new partition table"
Though after that it said something like this: "Re-reading the partition table ...
BLKRRPART: Device or resource busy
The command to re-read the partition table failed
Reboot your system now, before using mkfs"
They didn't say what it was supposed to tell me after that, so i rebooted.
Didn't work. Still saw it as free space.
But now, even Mandrake, the distro I'm trying to switch out of, sees that partition as free space!
It didn't until I entered that sfdisk command.
I have the /home mounted, it works. It's ext3. But to every disk tool I can use it's seen as free space. Here's what fdisk -l says:
Disk /dev/hda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 1286 88357+ 83 Linux
/dev/hda3 1287 1352 530145 82 Linux swap
/dev/hda4 1353 14596 106382430 f W95 Ext'd (LBA)
/dev/hda5 1353 2635 10305666 83 Linux
/dev/hda6 2636 14596 96076701 0 Empty
So.... How can I repair the damages?
Edit: Gah.. Doesn't seem like the right forum after all. Someone move to general?