个人工具

GrubHowto/ChangeDefaultOS

来自Ubuntu中文

跳转至: 导航, 搜索

How to change default Operating System boot-up for GRUB menu

如何更改GRUB引导菜单中默认启动的操作系统

Use this if you have multiple partitions and operating systems on your computer and want to change the default operating system that will boot up when you turn on your computer.

如果您的计算机已经分好了多个分区,并且装有多个操作系统。而您又想在计算机启动的时候默认进入其中的一个操作系统,那请您按照以下步骤操作:

  • Copy each line into the terminal and press enter.
  • 在终端中运行以下命令:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
sudo gedit /boot/grub/menu.lst
  • Find this line in the document that was just opened

... default 0 ...

在 打开的 文件中找到....default 0...这一行

  • Replace the 0 with the number on the startup list that is the option you want, remembering to start counting from 0. For example, if you have a list like this one and want to change to Windows XP:
  • 然后根据您的 需要 设置default之后的 数字,这个数字从0开始。例如:如果您的启动列表如下所示,并且您 想更改默认启动的操作系统为 Windows XP
  • Ubuntu
    Ubuntu Recovery
    Ubuntu Kernel 2.5.4.43
    Windows XP Home

...you would change the number to 3.

...那么您需要设置default后的 数字为3。

  • Save the edited file
  • 保存设置好的文件
  • You can also change the number of seconds the menu waits before booting to the default operating sytem by changing the number in this line:
  • 您还可以依照一下的方式更改默认启动系统时等待的时间
  • .
...
timeout     3
...

.

----
原文出处:wiki.ubuntu.org.cn
原文作者:
授权许可:[http://creativecommons.org/licenses/by-sa/2.0/ 创作共用协议Attribution-ShareAlike 2.0]
[http://www.gnu.org/copyleft/fdl.html GNU自由文档许可证]
翻译人员:x5yw
校对人员:
贡献者:
适用版本:
文章状态:[[翻译完毕]]
----