Quote:
Originally posted by igu
Of course they disagree because we want to change the wrong 255 to 240. But it seems you have a broken sfdisk too.
So do this:
1. sfdisk -d /dev/hda > hda.pt
2. edit hda.pt and remove the warning line completely
3. sfdisk --no-reread -H240 /dev/hda < hda.pt
Afterwards the head count should be 240 in the partition table and booting should work.
If it still doesn't boot then send the output of 'xxd /dev/hda2 | head'. That contains the right value (mostly it's 240 but not always).
|
Ok I was able to do this finally using MEPIS. However this is what it said:
Warning: HDIO_GETGEO says that there are 255 heads
Disk /dev/hde: 14593 cylinders, 240 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Old situation:
Units = cylinders of 7741440 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hde1 0+ 541 542- 4097488+ 1b Hidden W95 FAT32
end: (c,h,s) expected (541,239,63) found (510,29,63)
/dev/hde2 * 542 10065- 9524- 71994352+ 7 HPFS/NTFS
start: (c,h,s) expected (542,0,1) found (510,30,1)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde3 10065+ 15505- 5440 41126400 5 Extended
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde4 0 - 0 0 0 Empty
/dev/hde5 12285+ 13096 812- 6138688+ 83 Linux
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde6 13097+ 13244 148- 1118848+ 82 Linux swap
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde7 13245+ 15504 2260- 17085568+ 83 Linux
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde8 10065+ 11174- 1110- 8385867 83 Linux
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
/dev/hde9 11174+ 12284- 1111- 8393931 83 Linux
start: (c,h,s) expected (1023,239,63) found (1023,254,63)
end: (c,h,s) expected (1023,239,63) found (1023,254,63)
Warning: given size (82252800) exceeds max allowable size (68462415)
sfdisk: bad input
hmm I wonder why it doesnt accept 82252800.