六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 45|回复: 0

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

[复制链接]

升级  92%

10

主题

10

主题

10

主题

童生

Rank: 1

积分
46
 楼主| 发表于 2013-1-28 18:56:25 | 显示全部楼层 |阅读模式
有时候启动只是想做简单的事情,如果启动桌面速度太慢,希望可以通过直接进入命令行的模式来启动,所以在启动菜单中加入命令行模式
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 ]; 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  fifi### END /etc/grub.d/30_os-prober ##
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表