On Fri, 6 Oct 2006, Joachim Breitner wrote:
> I tried to modify the table with windows (deleting a partition that is
> not used), so the table should be fine with windows... very strange.
No. Windows respects the existing geometry in the partition table but Linux
tools don't. That's the problem. Windows won't fix it (if the geometry was
broken then it leaves broken, if it was good then it leaves good), only
Linux tools can fix it. This also explains why a full Windows reintall won't
work on a broken partition table.
Linux tools should behave exactly they same as the Windows fdisk, and change
the geometry only if it's explicitely asked. But they think they know better
which is not true as it's experienced regularly.
Maybe this fixes your problem:
sfdisk -d /dev/hda | sfdisk --no-reread -H240 /dev/hda
The head value could be 255 or something else, it depends on your BIOS, BIOS
disk access mode settings and your hardware. The fix must be really
extremely simple, just writing a few bytes to the rigth places.
If you can't get further I suggest save a working and a non-working
partition table and compare them byte-by-byte. The partition table format is
very simple, it's only 64 bytes but you won't need to check more than a few.
Szaka
|