menu.lst

来自百合仙子's Wiki
跳转到导航 跳转到搜索

Ubuntu 的 menu.lst

default		0
timeout		5
color light-green/black light-red/black
title		Debian GNU/Linux, kernel 2.6.28-13-generic
root		(hd0,9)
kernel		/boot/vmlinuz-2.6.28-13-generic root=UUID=951dd0ca-32f5-43f6-9e54-ed422274fc74 ro splash vga=791
initrd		/boot/initrd.img-2.6.28-13-generic
title		Debian GNU/Linux, kernel 2.6.28-13-generic (recovery mode)
root		(hd0,9)
kernel		/boot/vmlinuz-2.6.28-13-generic root=UUID=951dd0ca-32f5-43f6-9e54-ed422274fc74 ro single
initrd		/boot/initrd.img-2.6.28-13-generic
title		Other operating systems:
root
title		Microsoft Windows XP Professional
rootnoverify	(hd0,0)
savedefault
makeactive
chainloader	+1

内核参数

指定 init=/bin/bash,可以直接启动 bash 而不是 init

Ubuntu 硬盘启动的命令

title Ubuntu 8.10 LiveHD (DVD)
root (hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-8.10-dvd-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd /initrd.gz
title Ubuntu 9.04(beta) LiveHD (DVD)
root (hd0,0)
kernel /vmlinuz boot=casper iso-scan/filename=/ubuntu-9.04-dvd-i386.iso ro quiet splash locale=zh_CN.UTF-8
initrd /initrd.gz

Windows XP 一键还原的 menu.lst

default 4
timeout 5

splashimage /boot/load/deepin.xpm.gz
fontfile /boot/load/fonts.gz

title                    ☆ 深度技术论坛 一键还原工具 ☆                    
clear

title --------------------------------------------------------------------
clear 
title  启动 一键还原 Ghost v11.0
map --mem /boot/load/ghost.img (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
title --------------------------------------------------------------------
clear
title  启动本机硬盘的 WINDOWS NT/2003/XP 系统
map (hd0) (hd0)
map (hd0) (hd1)
root (hd0,0)
chainloader (hd0,0)+1
boot
rootnoverify (hd0,0)
chainloader +1
clear
title  启动本机硬盘上 VISTA 系统(如果存在)
find --set-root /bootmgr
chainloader /bootmgr
clear
title --------------------------------------------------------------------
clear
title  从第二硬盘启动系统(from 2nd hd)
fallback 6
root (hd0,1)
chainloader +1
title  从光驱启动系统(from CD-ROM)
cdrom --init
map --hook
chainloader (cd0)
boot
title --------------------------------------------------------------------
clear
title  重启计算机(Restart)
reboot
clear
title  关闭计算机(Shutdown)
halt

其它示例

寻找并载入已有的 Linux 安装的 grub

title find and boot Linux with menu.lst already installed
fallback 5
find --set-root /sbin/init
savedefault --wait=2
configfile /boot/grub/menu.lst

参见