[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: grub savedefault and saved does not seem to work



Alan Chandler wrote:

> 
> Although I haven't tested it in about a month, it was certainly working well 
> for me when I had several kernels that I was trying to select during some 
> debugging (debian and home compiled).  Perhaps posting your menu.lst might 
> help.
> 

That's roughly the last time I was playing with it on my server, and I
*KNOW* it worked fine then.

Here's what my menu.lst looks like, as you can see it's pretty standard.

# grep -v '^#' /boot/grub/menu.lst |strings
default saved
timeout         15
color cyan/blue white/blue
title           Debian GNU/Linux, kernel 2.6.11.7
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11.7 root=/dev/hda2 ro ide=nodma
initrd          /boot/initrd.img-2.6.11.7
savedefault
boot
title           Debian GNU/Linux, kernel 2.6.11.7 (recovery mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11.7 root=/dev/hda2 ro ide=nodma single
initrd          /boot/initrd.img-2.6.11.7
savedefault
boot
title           Other operating systems:
root
title           Windows NT/2000/XP (loader)
root            (hd0,0)
savedefault
makeactive
chainloader     +1


For what it's worth, if anything, I tried entering the commands in
manually at the grub prompt (hitting "c" when the menu comes up).  The
first three lines I manually typed:
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11.7 root=/dev/hda2 ro ide=nodma
initrd          /boot/initrd.img-2.6.11.7
were able to be entered just fine.  When I entered "savedefault", I
received the feedback of "Error 27: Unrecognized command".

Interestingly, grub-reboot *does* work as expected.

# apt-cache policy grub
grub:
  Installed: 0.95+cvs20040624-17
  Candidate: 0.95+cvs20040624-17
  Version Table:
 *** 0.95+cvs20040624-17 0
        800 http://ftp.nl.debian.org unstable/main Packages
        700 http://mirror.ox.ac.uk testing/main Packages
        100 /var/lib/dpkg/status
     0.91-2 0
        -10 http://mirror.direct.ca stable/main Packages


I really have no idea at this point as to what else to check/try. It's
not particularly an option I *need*, per se, but it can be useful
sometimes. :)




Reply to: