RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
UbuntuGRUB開機選項如何修改

这篇文章给大家分享的是有关Ubuntu GRUB開機選項如何修改的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。

成都创新互联公司是一家集网站建设,伍家岗企业网站建设,伍家岗品牌网站建设,网站定制,伍家岗网站建设报价,网络营销,网络优化,伍家岗网站推广为一体的创新建站企业,帮助传统企业提升企业形象加强企业竞争力。可充分满足这一群体相比中小企业更为丰富、高端、多元的互联网需求。同时我们时刻保持专业、时尚、前沿,时刻以成就客户成长自我,坚持不断学习、思考、沉淀、净化自己,让我们为更多的企业打造出实用型网站。

Introduction為什麼需要更改Ubuntu GRUB呢?
1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.
2.Ubuntu GRUB預設開機為Ubuntu,你可以想將預設開機改成Windows.
3.修改預設Ubuntu GRUB等待時間.
4.預設不顯示GRUB menu,直接進入Windows.

假如你有以上需求,就得手動修改Ubuntu GRUB開機選項.Solution開啟Ubuntu GRUB開機選項檔sudo gedit /boot/grub/menu.lstQ1.當Ubuntu更新新的kernel後,Ubuntu GRUB會自動加上新的kernel開機選項,導致開機選項越來越多,想將不必要的開機選項刪除.

A1.以下為我所要的開機選項,不需要者可自行刪除之End Default Options

title        Ubuntu, kernel 2.6.20-16-generic  root        (hd0,6)  kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro quiet splash  initrd        /boot/initrd.img-2.6.20-16-generic  quiet  savedefault   title        Ubuntu, kernel 2.6.20-16-generic (recovery mode)  root        (hd0,6)  kernel        /boot/vmlinuz-2.6.20-16-generic root=UUID=b923ef76-3246-411c-8095-7bca666b13a5 ro single  initrd        /boot/initrd.img-2.6.20-16-generic   # This entry automatically added by the Debian installer for a non-linux OS  # on /dev/sda1  title        Microsoft Windows XP Professional  root        (hd0,0)  savedefault  makeactive  chainloader    +1

Q2.Ubuntu GRUB預設開機為Ubuntu,你可以想將預設開機改成Windows.A2.修改

## default num  # Set the default entry to the entry number NUM. Numbering starts from 0, and  # the entry number 0 is the default if the command is not used.  #  # You can specify 'saved' instead of a number. In this case, the default entry  # is the entry saved with the command 'savedefault'.  # WARNING: If you are using dmraid do not change this entry to 'saved' or your  # array will desync and will not let you boot your system.

default  2預設default為 0,表示開機用Ubuntu開機,因為在我的電腦Windows為第三個選項,故default為2Q3.修改預設Ubuntu GRUB等待時間.A3.修改

## timeout sec  # Set a timeout, in SEC seconds, before automatically booting the default entry  # (normally the first entry defined).

timeout 3預設為10秒鐘,我改成等待3秒鐘Q4.預設不顯示Ubuntu GRUB menu,直接進入Windows.

## hiddenmenu  # Hides the menu by default (press ESC to see the menu)  hiddenmenu

預設會顯示Ubuntu GRUB menu,若你不想顯示menu,要當按下ESC才顯示,請將hiddenmenu前的#拿掉

感谢各位的阅读!关于“Ubuntu GRUB開機選項如何修改”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,让大家可以学到更多知识,如果觉得文章不错,可以把它分享出去让更多的人看到吧!


分享标题:UbuntuGRUB開機選項如何修改
URL链接:http://sczitong.cn/article/gdhhdh.html