LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grub not seeing grub-set-default change (https://www.linuxquestions.org/questions/linux-software-2/grub-not-seeing-grub-set-default-change-621406/)

bic 02-15-2008 12:28 PM

grub not seeing grub-set-default change
 
I have Fedora Core 6. It previously had .97 grub. Due to it not honoring grub-set-default changes, I put on grub .95. It's also not working. What can I do to debug this?

grub.conf

default saved
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title MythDora (2.6.20-1.2944.fc6)
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb
quiet
initrd /initrd-2.6.20-1.2944.fc6.img
savedefault 0

title TurnOff
savedefault 0
halt

default:
1
#
#
#
#
#
#
#
#
#
#
# WARNING: If you want to edit this file directly, do not remove any line
# from this file, including this warning. Using `grub-set-default\' is
# strongly recommended.

weisso5 02-15-2008 12:44 PM

the correct way to display title is:

title=MythDora (2.6.20-1.2944.fc6)

And then change:

default 0
timeout 10


then:

# grub

grub> root (hd0,0)
grub> setup (hd0,0)
grub> quit





-weisso

bic 02-15-2008 01:06 PM

Thanks, but something still isn't quite right

Code:

default saved
default 0
timeout 10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title=MythDora (2.6.20-1.2944.fc6)
        root (hd0,0)
        kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.20-1.2944.fc6.img
        savedefault 0

title=TurnOff
  savedefault 0
  halt

I did the setup in grub shell twice, plus several reboots as I realized Title for TurnOff also needed the =.

weisso5 02-15-2008 01:32 PM

Can you try this simple config and tell me if it boots:

default 0
timeout 10
title=MythDora
root (hd0,0)
kernel /vmlinuz-2.6.20-1.2944.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.20-1.2944.fc6.img

bic 02-15-2008 01:44 PM

Yep, that worked ok.


All times are GMT -5. The time now is 03:04 AM.