GRUB and Linux using same partition number??
I had my Linux installed on /dev/hda9, but decided to delete two of the logical partitions before it. First I ensured that all of my fstab was UUID based, then I shut down Linux, and used a bootable CD to delete the 2 partitions. Now my Linux boot partition is /dev/hda7.
Since I had not made any changes to GRUB, it obviously failed to boot when I restarted the PC. So I used a GRUB disk to start up. The first command I used was:
> find /boot/vmlinuz
To my great surprise, it responded (hd0,7)! According to everything I have read about GRUB, if Linux calls the partition hda7 (the 3rd logical partition), GRUB should call it 8!
I then continued the boot process with:
> root (hd0,7)
> kernel (hd0,7)/boot/vmlinuz root=/dev/hda7
Incredible! It worked!! But how can this be?
Then I went into the PCLinuxOS Control Center to resave the GRUB definitions for boot, and when I tell it to use /dev/hda7 it automatically puts (hd0,8) in the GRUB configuration.
I did get around the problem by manually editing the file, but I would really like to know how this is possible.