Jianqing's Blog Archive

menu.lst备份

`pjq@localhost ~ $ cat /media/sda11/boot/grub/menu.lst

menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-doc/.`

gfxmenu (hd0,10)/boot/message.cristal

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’.

WARNING: If you are using dmraid do not use ‘savedefault’ or your

array will desync and will not let you boot your system.

default 0

timeout sec

Set a timeout, in SEC seconds, before automatically booting the default entry

(normally the first entry defined).

timeout 3

hiddenmenu

Hides the menu by default (press ESC to see the menu)

#hiddenmenu

Pretty colours

#color cyan/blue white/blue

password [’–md5’] passwd

If used in the first section of a menu file, disable all interactive editing

control (menu entry editor and command-line) and entries protected by the

command ‘lock’

e.g. password topsecret

password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/

password topsecret

## End Default Options

title Gentoo-2.6.24-r8 root (hd0,7) kernel /boot/kernel-2.6.24-r8 root=/dev/sda9 plash=silent,fadein,theme:gentoo vga=791 CONSOLE=/dev/tty1 ramdisk=8192 boot

title Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader +1

title Debian GNU/Linux, kernel 2.6.22-14-386 root (hd0,9) kernel /boot/vmlinuz-2.6.22-14-386 root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro quiet splash initrd /boot/initrd.img-2.6.22-14-386 boot

title Debian GNU/Linux, kernel 2.6.22-14-386 (recovery mode) root (hd0,9) kernel /boot/vmlinuz-2.6.22-14-386 root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro single initrd /boot/initrd.img-2.6.22-14-386 boot

title Debian GNU/Linux, kernel 2.6.22-14-generic root (hd0,9) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro quiet splash initrd /boot/initrd.img-2.6.22-14-generic boot

title Debian GNU/Linux, kernel 2.6.22-14-generic (recovery mode) root (hd0,9) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro single initrd /boot/initrd.img-2.6.22-14-generic boot

title Debian GNU/Linux, kernel memtest86+ root (hd0,9) kernel /boot/memtest86+.bin boot

END DEBIAN AUTOMAGIC KERNELS LIST

This is a divider, added to separate the menu items below from the Debian

ones.

#title Other operating systems: #root

This entry automatically added by the Debian installer for a non-linux OS

on /dev/sda1

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel 2.6.22-14-generic (on /dev/sda8) #root (hd0,7) #kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda8 ro #initrd /boot/initrd.img-2.6.22-14-generic #savedefault #boot

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda8) #root (hd0,7) #kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda8 ro single #initrd /boot/initrd.img-2.6.22-14-generic #savedefault #boot

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel memtest86+ (on /dev/sda8) #root (hd0,7) #kernel /boot/memtest86+.bin #savedefault #boot title Gentoo-2.6.24 ioot (hd0,7) kernel /boot/kernel-2.6.24 root=/dev/sda9 splash quiet boot #title Gentoo Alsa Sound #root (hd0,7) #kernel /boot/kernel-gen root=/dev/sda9 splash quiet #boot

# #title Gentoo-gen #root (hd0,7) #kernel /boot/kernel-gen root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda9 udev splash quiet #initrd /boot/initrd-gen

#title Gentoo install #root (hd0,6) #kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc acpi=ht looptype=squashfs loop=/image.squashfs udev nodevfs cdroot=/dev/hda7 doscsi vga=791 dokeymap splash=silent,theme:livecd-2007.0 #initrd /isolinux/gentoo.igz #boot title gentoo install root (hd0,6) kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz vga=791 splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 quiet initrd /isolinux/gentoo.igz boot ` pjq@localhost ~ $ cat /boot/grub/menu.lst

menu.lst - See: grub(8), info grub, update-grub(8)

grub-install(8), grub-floppy(8),

grub-md5-crypt, /usr/share/doc/grub

and /usr/share/doc/grub-doc/.`

#gfxmenu (hd0,10)/boot/message.cristal splashimage=(hd0,7)/boot/grub/splash.xpm.gz default 0

timeout 4

title Gentoo-2.6.24-r8 root (hd0,7) kernel /boot/kernel-2.6.24-r8 root=/dev/sda9 plash=silent,fadein,theme:gentoo vga=791 CONSOLE=/dev/tty1 ramdisk=8192 boot

title Ubuntu 7.10, kernel 2.6.22-14-generic root (hd0,10) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro initrd /boot/initrd.img-2.6.22-14-generic quiet

title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode) root (hd0,10) kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=310fe277-4520-4f33-99cc-53308864bc4a ro single initrd /boot/initrd.img-2.6.22-14-generic

title Ubuntu 7.10, memtest86+ root (hd0,10) kernel /boot/memtest86+.bin quiet

title Microsoft Windows XP Professional root (hd0,0) savedefault makeactive chainloader +1

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel 2.6.22-14-generic (on /dev/sda8) #root (hd0,7) #kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda8 ro #initrd /boot/initrd.img-2.6.22-14-generic #savedefault #boot

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda8) #root (hd0,7) #kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda8 ro single #initrd /boot/initrd.img-2.6.22-14-generic #savedefault #boot

This entry automatically added by the Debian installer for an existing

linux installation on /dev/sda8.

#title Debian GNU/Linux, kernel memtest86+ (on /dev/sda8) #root (hd0,7) #kernel /boot/memtest86+.bin #savedefault #boot title Gentoo-2.6.24 ioot (hd0,7) kernel /boot/kernel-2.6.24 root=/dev/sda9 splash quiet boot #title Gentoo Alsa Sound #root (hd0,7) #kernel /boot/kernel-gen root=/dev/sda9 splash quiet #boot

# #title Gentoo-gen #root (hd0,7) #kernel /boot/kernel-gen root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda9 udev splash quiet #initrd /boot/initrd-gen

#title Gentoo install #root (hd0,6) #kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc acpi=ht looptype=squashfs loop=/image.squashfs udev nodevfs cdroot=/dev/hda7 doscsi vga=791 dokeymap splash=silent,theme:livecd-2007.0 #initrd /isolinux/gentoo.igz #boot title gentoo install root (hd0,6) kernel /isolinux/gentoo root=/dev/ram0 init=/linuxrc dokeymap looptype=squashfs loop=/image.squashfs cdroot initrd=gentoo.igz vga=791 splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 quiet initrd /isolinux/gentoo.igz boot

Tags: