个人工具
登录
查看“关闭GRUB互动编辑”的源代码 - Ubuntu中文
页面
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“关闭GRUB互动编辑”的源代码
来自Ubuntu中文
←
关闭GRUB互动编辑
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== 关闭GRUB互动编辑 == <pre><nowiki> grub grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup sudo gedit /boot/grub/menu.lst </nowiki></pre> *搜寻这一段文字 <pre><nowiki> ... # 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' # 例如 password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret ... </nowiki></pre> *在这下面新增下面这一行 <pre><nowiki> password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (这是编码过的密码) </nowiki></pre> *搜寻这一段文字 <pre><nowiki> ... title Ubuntu, kernel 2.6.10-5-386 (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single initrd /boot/initrd.img-2.6.10-5-386 savedefault boot ... </nowiki></pre> *用下面这几行取代 <pre><nowiki> #title Ubuntu, kernel 2.6.10-5-386 (recovery mode) #root (hd0,1) #kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single #initrd /boot/initrd.img-2.6.10-5-386 #savedefault #boot </nowiki></pre> *保存编辑过的文件 ([http://www.ubuntuguide.org/sample/menu.list_disableinteractiveeditinggrub 范 例])
返回至
关闭GRUB互动编辑
。