Martin McCormick wrote: > When looking at the boot paragraphs, I see an interesting > thing that I don't quite understand. Both the possible boot > methods have the savedefault line as their last line. Here they > are. > > title Debian GNU/Linux, kernel 2.4.27-2-386 > root (hd0,0) > kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hda1 ro > console=ttyS1,9600n81 > initrd /boot/initrd.img-2.4.27-2-386 > savedefault > boot > > title Debian GNU/Linux, kernel 2.4.27-2-386 (recovery mode) > root (hd0,0) > kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hda1 ro > console=ttyS1,9600n81 > single > initrd /boot/initrd.img-2.4.27-2-386 > savedefault > boot > > > The savedefault line is supposed to determine which boot method > is 0 as far as I understand, so what do multiple savedefaults do?
Suppose you selected the recovery mode option from the boot menu. The "savedefault" in that stanza will cause grub to default to the recovery mode at next boot. If each stanza has its own savedefault, then the next-boot default is always reset to the most recent stanza booted ... provided that you enable this behavior by setting this: default saved in menu.lst. The next-boot default is stored in /boot/grub/default. I eliminate "savedefault" from stanzas that I rarely use (like win2k), so that the default is not updated. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]