Red Hat Bugzilla – Bug 235327
FC6 -> FC7t3 upgrade can lead to incorrect grub config
Last modified: 2007-11-30 17:12:01 EST
Description of problem:
I tried to upgrade a FC6 machine to FC7t3 using the DVD. Anaconda didn't find
the grub config. I asked it to make a new installation of grub and the resulting
menu.lst had incorrect numbers for the HD, eg. (1,2) instead of (0,2).
The symptoms were: grub menu behaved erratically (unable to edit boot commands);
grub wasn't able to load a kernel, and the machine reset continually.
Version-Release number of selected component (if applicable):
Dell Inspiron 6000 (ICH6M SATA Controller, /dev/scd0, /dev/sda)
Haven't tried to reproduce it, but expect it will reproduce easily.
Steps to Reproduce:
1. FC6 machine with SATA disk as above
2. Upgrade from FC7t3 DVD
3. Observe non booting and grub misbehaviour
non booting and grub misbehaviour
successful upgrade, booting and grub functional
I used the rescue disc to boot and edited the /boot/grub/menu.lst to (0,x)
instead of (1,x) throughout, and the FC7t3 install was fine.
The edited (working) grub.comf. Note the comment still refers to root (hd1,2):
# grub.conf generated by anaconda
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,2)
# kernel /vmlinuz-version ro root=/dev/sdb7
# initrd /initrd-version.img
title Fedora (2.6.20-1.3040.fc7)
kernel /vmlinuz-2.6.20-1.3040.fc7 ro root=LABEL=/1 rhgb quiet
title Fedora (2.6.20-1.3023.fc7)
kernel /vmlinuz-2.6.20-1.3023.fc7 ro root=LABEL=/1 rhgb quiet
title Fedora-base (2.6.20-1.2933.fc6)
kernel /vmlinuz-2.6.20-1.2933.fc6 ro root=/dev/sdb7 rhgb quiet
And what were the contents of /boot/grub/device.map?
# cat /boot/grub/device.map
*** This bug has been marked as a duplicate of 229704 ***