Xithix Apprentice
Joined: 31 Dec 2004 Posts: 228
|
Posted: Sun Feb 13, 2005 6:12 am Post subject: Grub and fdisk don't agree on where partitions are |
|
|
This all started when I reinstalled Windows on partition 1. Before the reinstall, fdisk would display this:
/dev/hda1 NTFS (my windows drive)
/dev/hda2 Windows Extended Partition
/dev/hda5 NTFS (my swap partition for Windows, a logical partition)
/dev/hda6 reiserfs (my / mount point)
/dev/hda7 swap
After the reinstall:
/dev/hda1 NTFS (my windows drive)
/dev/hda2 NTFS (my swap partition for Windows .. which is now a primary partition?)
/dev/hda3 Windows Extended Partition
/dev/hda5 reiserfs (my / mount point)
/dev/hda6 swap
The weird part, is that Grub still uses the old partitions. To boot gentoo I have to run:
Code: | root (hd0,5) #location of old /
kernel=/boot/kernel-2.6.9 root=/dev/hda5 #location of new / |
Any other configuration does not boot. I also had to change my fstab to use /dev/hda5 for / and /dev/hda6 for swap. It would not boot with the fstab pointing to the old values, which grub still recognizes in its own notation.
Perhaps it's because I had to reinstall grub after Windows? Because as we all know, Windows installers kill grub.
This problem really doen't affect me too much, as I can boot with these values. I just want to know how this happened and why fdisk and Grub interpret the new partitions differently.
I'll reply tomorrow with cylinder numbers from the new fdisk (don't have any from old) |
|