hjg1988 发表于 2013-1-28 18:56:25

ubuntu 10.04增加命令模式启动的菜单

有时候启动只是想做简单的事情,如果启动桌面速度太慢,希望可以通过直接进入命令行的模式来启动,所以在启动菜单中加入命令行模式
sudo chmod +w /boot/grub/grub.cfgsudo vim /boot/grub/grub.cfg
复制第一段menuentry,修改后如下(把quiet splash改为text)
### 命令启动菜单menuentry "Ubuntu, Linux 2.6.32-24-generic (command mode)" {insmod ntfsset root='(hd0,5)'search --no-floppy --fs-uuid --set 61ff56044fc32f90loopback loop0 /ubuntu/disks/root.diskset root=(loop0)linux /boot/vmlinuz-2.6.32-24-generic root=/dev/sda5 loop=/ubuntu/disks/root.disk ro   textinitrd /boot/initrd.img-2.6.32-24-generic}
再修改最后面的启动菜单显示时间为如下
### BEGIN /etc/grub.d/30_os-prober ###if [ ${timeout} != -1 ]; thenif keystatus; then    if keystatus --shift; then      set timeout=-1    else      set timeout=3    fielse    if sleep --interruptible 3 ; then      set timeout=3    fififi### END /etc/grub.d/30_os-prober ##
页: [1]
查看完整版本: ubuntu 10.04增加命令模式启动的菜单