Deutsch English Français
Your feedback:
Did you like this page? vote3 Yes
vote2 Partly
vote1 No
Your comment?

Add your email address, if you want to get a response

Your name, if you like

Do not change this:
Feedback
Search

2004-10-05

Grub Goodies

LinuxDebianComputer
  • Be able to boot optionally from floppy without changing BIOS values
  • Preselect the entry that will be booted the next time
  • Shutdown

/boot/grub/menu.lst:
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default saved
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 15
#default grub root device
groot=(hd0,0)
# Boot Linux
title Linux
root (hd0,5)
kernel /vmlinuz root=/dev/md0 md=1,/dev/hda6,/dev/sda6 ro
savedefault
# Boot floppy
title Floppy
root (fd0)
chainloader +1
# Shutdown
title POWER_OFF
halt

/sbin/grub-reboot (Debian shellscript):
savedefault --once --default=$default
21-12-2004 15.55
Powered by PHP Created with Xemacs Valid rss 2.0! Valid XHTML 1.0! Valid CSS!