ubuntu 10.04增加命令模式启动的菜单
有时候启动只是想做简单的事情,如果启动桌面速度太慢,希望可以通过直接进入命令行的模式来启动,所以在启动菜单中加入命令行模式
sudo chmod +w /boot/grub/grub.cfg sudo vim /boot/grub/grub.cfg
复制第一段menuentry,修改后如下(把quietsplash改为text)
### 命令启动菜单
menuentry "Ubuntu, Linux 2.6.32-24-generic (command mode)" {
insmod ntfs
set root='(hd0,5)'
search --no-floppy --fs-uuid --set 61ff56044fc32f90
loopback loop0 /ubuntu/disks/root.disk
set root=(loop0)
linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro text
initrd /boot/initrd.img-2.6.32-24-generic
}再修改最后面的启动菜单显示时间为如下
### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=3
fi
else
if sleep --interruptible 3 ; then
set timeout=3
fi
fi
fi
### END /etc/grub.d/30_os-prober ## 相关推荐
tianyafengxin 2020-10-08
WenCoo 2020-09-16
CoderMannul 2020-09-07
taomengxing 2020-09-07
了凡 2020-08-17
jackadmi 2020-08-03
一世为白 2020-08-03
dongfangxiaozi 2020-08-02
老甘的可读区 2020-07-18
kehanxin 2020-07-05
liusarazhang 2020-07-04
zlsh00 2020-06-28
Jieen 2020-06-28
leodengzx 2020-06-28
Fightingxr 2020-06-26
fenxinzi 2020-06-25