S
student
Hello.
Problem: Partition Magic and Linux fdisk disagree
about what is the correct CHS settings on my boot
drive.
How things got this way I am not sure, but the
bottom line is that Windows sees my C partition
as "invalid media type" and won't boot.
Linux has no problems reading any of the partitions
on either of my two drives and everything seems to
be in place:
Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 261 2096451 b W95 FAT32
/dev/hdc2 262 2823 20579265 f W95 Ext'd (LBA)
/dev/hdc3 2824 3590 6160927+ 17 Hidden HPFS/NTFS
/dev/hdc4 3591 4865 10241437+ 7 HPFS/NTFS
/dev/hdc5 262 516 2048256 b W95 FAT32
/dev/hdc6 517 771 2048256 b W95 FAT32
/dev/hdc7 772 1026 2048256 b W95 FAT32
/dev/hdc8 1027 1281 2048256 b W95 FAT32
/dev/hdc9 1282 1536 2048256 83 Linux
/dev/hdc10 1537 2046 4096543+ 83 Linux
/dev/hdc11 2047 2053 56196 83 Linux
/dev/hdc12 2054 2184 1052226 82 Linux swap
/dev/hdc13 2185 2823 5132736 83 Linux
Disk /dev/hda: 6448 MB, 6448619520 bytes
15 heads, 63 sectors/track, 13328 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4438 2096923+ c W95 FAT32 (LBA)
/dev/hda2 4439 13328 4200525 f W95 Ext'd (LBA)
/dev/hda5 4439 13328 4200493+ b W95 FAT32
However, when Partition Magic sees my 1st drive it now says "Disk 2
(38166MB 77544c 16h 63s) appears to have partitions created using a
different drive geometry (255h 63s). This serious problem
can lead to data loss. No partition manipulations should be made
to this disk using this product or the operating system's products. You
should back up the data on this disk, delete all partitions, create new
partitions ***under the new drive geometry***. and then restore your
data using the backup."
I am not sure what "the new drive geometry" means but given that Linux
can read both drives with no problems, that advice seems a bit extreme
to me.
Question 1: Why not use Linux/fdisk xpert mode to set the CHS to what
Partition Magic thinks it should be (77544c 16h 63s)?
Linux/fdisk xpert mode now says this:
Expert command (m for help): p
Disk /dev/hdc: 255 heads, 63 sectors, 4865 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 260 63 4192902 0b
2 00 0 1 261 254 63 1023 4192965 41158530 0f
3 00 0 1 1023 254 63 1023 45351495 12321855 17
4 00 0 1 1023 254 63 1023 57673350 20482875 07
5 00 1 1 261 254 63 515 63 4096512 0b
6 00 1 1 516 254 63 770 63 4096512 0b
7 00 1 1 771 254 63 1023 63 4096512 0b
8 00 1 1 1023 254 63 1023 63 4096512 0b
9 00 1 1 1023 254 63 1023 63 4096512 83
10 00 1 1 1023 254 63 1023 63 8193087 83
11 00 1 1 1023 254 63 1023 63 112392 83
12 00 1 1 1023 254 63 1023 63 2104452 82
13 00 1 1 1023 254 63 1023 63 10265472 83
Expert command (m for help):
And if I now reset the CHS to what Partition Magic seems
to want, I get this:
Expert command (m for help): p
Disk /dev/hdc: 16 heads, 63 sectors, 77544 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 260 63 4192902 0b
Partition 1 does not end on cylinder boundary.
2 00 0 1 261 254 63 1023 4192965 41158530 0f
Partition 2 does not end on cylinder boundary.
3 00 0 1 1023 254 63 1023 45351495 12321855 17
Partition 3 does not end on cylinder boundary.
4 00 0 1 1023 254 63 1023 57673350 20482875 07
Partition 4 does not end on cylinder boundary.
5 00 1 1 261 254 63 515 63 4096512 0b
6 00 1 1 516 254 63 770 63 4096512 0b
7 00 1 1 771 254 63 1023 63 4096512 0b
8 00 1 1 1023 254 63 1023 63 4096512 0b
9 00 1 1 1023 254 63 1023 63 4096512 83
10 00 1 1 1023 254 63 1023 63 8193087 83
11 00 1 1 1023 254 63 1023 63 112392 83
12 00 1 1 1023 254 63 1023 63 2104452 82
13 00 1 1 1023 254 63 1023 63 10265472 83
Expert command (m for help):
Question 2: Do I need to worry about these
Partition does not end on cylinder boundary
messages, or is it safe for me to write the new partition table?
Question 3: Is there some other way to fix this problem?
Sorry for the long-winded post and thanks in advance
for your kind assistance, because until this problem is fixed,
I am basically screwed.
Problem: Partition Magic and Linux fdisk disagree
about what is the correct CHS settings on my boot
drive.
How things got this way I am not sure, but the
bottom line is that Windows sees my C partition
as "invalid media type" and won't boot.
Linux has no problems reading any of the partitions
on either of my two drives and everything seems to
be in place:
Disk /dev/hdc: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 261 2096451 b W95 FAT32
/dev/hdc2 262 2823 20579265 f W95 Ext'd (LBA)
/dev/hdc3 2824 3590 6160927+ 17 Hidden HPFS/NTFS
/dev/hdc4 3591 4865 10241437+ 7 HPFS/NTFS
/dev/hdc5 262 516 2048256 b W95 FAT32
/dev/hdc6 517 771 2048256 b W95 FAT32
/dev/hdc7 772 1026 2048256 b W95 FAT32
/dev/hdc8 1027 1281 2048256 b W95 FAT32
/dev/hdc9 1282 1536 2048256 83 Linux
/dev/hdc10 1537 2046 4096543+ 83 Linux
/dev/hdc11 2047 2053 56196 83 Linux
/dev/hdc12 2054 2184 1052226 82 Linux swap
/dev/hdc13 2185 2823 5132736 83 Linux
Disk /dev/hda: 6448 MB, 6448619520 bytes
15 heads, 63 sectors/track, 13328 cylinders
Units = cylinders of 945 * 512 = 483840 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4438 2096923+ c W95 FAT32 (LBA)
/dev/hda2 4439 13328 4200525 f W95 Ext'd (LBA)
/dev/hda5 4439 13328 4200493+ b W95 FAT32
However, when Partition Magic sees my 1st drive it now says "Disk 2
(38166MB 77544c 16h 63s) appears to have partitions created using a
different drive geometry (255h 63s). This serious problem
can lead to data loss. No partition manipulations should be made
to this disk using this product or the operating system's products. You
should back up the data on this disk, delete all partitions, create new
partitions ***under the new drive geometry***. and then restore your
data using the backup."
I am not sure what "the new drive geometry" means but given that Linux
can read both drives with no problems, that advice seems a bit extreme
to me.
Question 1: Why not use Linux/fdisk xpert mode to set the CHS to what
Partition Magic thinks it should be (77544c 16h 63s)?
Linux/fdisk xpert mode now says this:
Expert command (m for help): p
Disk /dev/hdc: 255 heads, 63 sectors, 4865 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 260 63 4192902 0b
2 00 0 1 261 254 63 1023 4192965 41158530 0f
3 00 0 1 1023 254 63 1023 45351495 12321855 17
4 00 0 1 1023 254 63 1023 57673350 20482875 07
5 00 1 1 261 254 63 515 63 4096512 0b
6 00 1 1 516 254 63 770 63 4096512 0b
7 00 1 1 771 254 63 1023 63 4096512 0b
8 00 1 1 1023 254 63 1023 63 4096512 0b
9 00 1 1 1023 254 63 1023 63 4096512 83
10 00 1 1 1023 254 63 1023 63 8193087 83
11 00 1 1 1023 254 63 1023 63 112392 83
12 00 1 1 1023 254 63 1023 63 2104452 82
13 00 1 1 1023 254 63 1023 63 10265472 83
Expert command (m for help):
And if I now reset the CHS to what Partition Magic seems
to want, I get this:
Expert command (m for help): p
Disk /dev/hdc: 16 heads, 63 sectors, 77544 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 260 63 4192902 0b
Partition 1 does not end on cylinder boundary.
2 00 0 1 261 254 63 1023 4192965 41158530 0f
Partition 2 does not end on cylinder boundary.
3 00 0 1 1023 254 63 1023 45351495 12321855 17
Partition 3 does not end on cylinder boundary.
4 00 0 1 1023 254 63 1023 57673350 20482875 07
Partition 4 does not end on cylinder boundary.
5 00 1 1 261 254 63 515 63 4096512 0b
6 00 1 1 516 254 63 770 63 4096512 0b
7 00 1 1 771 254 63 1023 63 4096512 0b
8 00 1 1 1023 254 63 1023 63 4096512 0b
9 00 1 1 1023 254 63 1023 63 4096512 83
10 00 1 1 1023 254 63 1023 63 8193087 83
11 00 1 1 1023 254 63 1023 63 112392 83
12 00 1 1 1023 254 63 1023 63 2104452 82
13 00 1 1 1023 254 63 1023 63 10265472 83
Expert command (m for help):
Question 2: Do I need to worry about these
Partition does not end on cylinder boundary
messages, or is it safe for me to write the new partition table?
Question 3: Is there some other way to fix this problem?
Sorry for the long-winded post and thanks in advance
for your kind assistance, because until this problem is fixed,
I am basically screwed.