永发信息网

gun grub里怎么设置系统的顺序?Ubuntu Linux高手进来看看

答案:4  悬赏:30  手机版
解决时间 2021-03-11 09:36
我的Vista电脑装了Ubuntu系统,开机出现了Gun Grub,把Ubuntu放在第一位,我想把Windows Vista放在第一位应该怎么做?e里的代码
最佳答案
grub1的修改
vi /boot/grub/grub.conf
把title Windows Vista那段移到title Ubuntu的上面
然后执行grub-install /dev/sda
grub2的修改
vi /boot/grub/grub.cfg
把menuentry "windows"那段移到menuentry "Ubuntu"的上面
然后执行grub-setup /dev/sda
全部回答
把/etc/default/grub里的GRUB_DEFAULT =0改为GRUB_DEFAULT="Windows Vista" 具体内容看下面 grub (/etc/default/grub) This file contains information previously found in the upper section of /boot/grub/menu.lst. It contains settings primarily affecting Grub's menu display. This file can be edited by root to make changes to these settings; they will be imported into grub.cfg when "update-grub" is executed. # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 GRUB_HIDDEN_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" # Uncomment to disable graphical terminal (grub-pc only) #GRUB_TERMINAL=console # The resolution used on graphical terminal # note that you can use only modes which your graphic card supports via VBE # you can see them in real GRUB with the command `vbeinfo' #GRUB_GFXMODE=640x480 # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux #GRUB_DISABLE_LINUX_UUID=true # Uncomment to disable generation of recovery mode menu entrys #GRUB_DISABLE_LINUX_RECOVERY="true" This file contains information formerly contained in the upper section of Grub Legacy's ''menu.lst'' and items contained on the end of the kernel line. The items in this file can be edited by a user with administrator (root) privileges. Grub developers have have placed explanatory comments within the file itself. * GRUB_DEFAULT=0 o Sets the default and pre-selected menu entry. Entries may be numeric or saved o GRUB_DEFAULT=0 + Sets the default menu entry by menu position. As with Grub Legacy, the first "menuentry" in grub.cfg is 0, the second is 1, etc. o GRUB_DEFAULT="Windows XP Professional (on /dev/sda1)" + Sets the default menu entry by name. o GRUB_DEFAULT=saved + Sets the default menu entry with either whatever was selected on the last boot (if SAVEDEFAULT=true is set and the entry itself contains savedefault), whatever the last grub-set-default command saved or the first entry if nothing has ever been saved or the saved entry can't be found. If the menu is displayed during boot, the previously selected option will be highlighted. If no action is taken, this is selection which will be booted at the end of the timeout, or if the menu is hidden. * GRUB_TIMEOUT=10 o No change from Grub Legacy. This is the number of seconds before the default entry is automatically booted. o Setting a value of -1 will display the menu until the user makes a selection (no timeout). * GRUB_HIDDEN_TIMEOUT=0 o The hidden timeout option is available to single-OS computers - if multiple OS's are known to Grub 2, this option is bypassed. o On single-OS systems, the menu will be hidden unless a # symbol is present at the beginning of this line. ( # GRUB_HIDDEN_TIMEOUT=0 ) o The default setting initially depends on the presence of other operating systems. + Another OS Detected: The menu will be displayed. ( The line will begin with a # symbol. ) + No other OS Detected: This setting is not used, as determined by the o For integers greater than 0, the system will pause, but not display the menu, for the entered number of seconds. o 0 The menu will not be displayed. There will be no delay. + The user may force displaying the menu as the computer boots by holding down the SHIFT key (single-OS computers only). # During boot, the system will check the SHIFT key status. If it cannot determine the key status, a short delay will enable the user to display the menu by pressing the ESC key. # If enabled, the splash screen designated in 05_debian_theme will be displayed even if the hidden menu feature is selected. * GRUB_HIDDEN_TIMEOUT_QUIET=true o true - No countdown is displayed. The screen will be blank. o false - A counter will display on a blank screen for the duration of the GRUB_HIDDEN_TIMEOUT value. * GRUB_DISTRIBUTOR=lsb_release -i -s 2> /dev/null || echo Debian o Determines the descriptive name in the menu entry. (Ubuntu, Xubuntu, Debian, etc.) * GRUB_CMDLINE_LINUX o If it exists, this line imports any entries to the end of the linux command line (Grub Legacy's "kernel" line) for both normal and recovery modes. This is similar to the "altoptions" line in menu.lst * GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" o This line imports any entries to the end of the 'linux' line (Grub Legacy's "kernel" line). The entries are appended to the end of the normal mode only. This is similar to the "defoptions" line in menu.lst. If you want a black screen with scrolling boot messages, remove "quiet splash". If you want a grub splash screen with limited messages underneath the Ubuntu logo, use only "splash". < This [only "splash"]will not work in Karmic during boot as the xsplash does not display the messages , but the messages at shutdown will be displayed. * #GRUB_TERMINAL=console o Uncomment to disable graphical terminal (grub-pc only). * #GRUB_GFXMODE=640x480 o Uncomment (remove '#' from beginning of the line) to change (increase) resolution of your boot loader. Use one of classic (4:3 rate): + GRUB_GFXMODE=640x480 (is used if isn't here a proper value) + GRUB_GFXMODE=800x600 + GRUB_GFXMODE=1024x768 + GRUB_GFXMODE=1600×1200 o or make experiments with some others nonstandards like widescreen (16:10 ratio in my case), here is list of most of commonly use Display resolution: + GRUB_GFXMODE=640x400 + GRUB_GFXMODE=800x500 + GRUB_GFXMODE=1024x640 + GRUB_GFXMODE=1280x800 + GRUB_GFXMODE=1680x1050 o If you don't know what modes are supported by your graphics card, go to the grub command line and run 'vbeinfo'. It will list all available modes. (You might need to run 'insmod vbe' first if the vbe module isn't loaded yet) * GRUB_GFXPAYLOAD_LINUX=640x480x8 [grub2 >= 1.98-1 (Lucid)] o Use this setting to set the framebuffer resolution (replaces the vga= kernel option). It uses the GFXMODE values with additional color depth. Use 'vbeinfo' from the grub command line to list what modes are available to you. * #GRUB_DISABLE_LINUX_UUID=true o Uncomment this line if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux. * GRUB_DISABLE_LINUX_RECOVERY=true o Add or uncomment this line to prevent "Recovery" mode kernel options from appearing in the menu. * GRUB_DISABLE_OS_PROBER=true o Enables/disables the os-prober check of other partitions for operating systems, including Windows, Linux, OSX and Hurd.
这是正常情况,第一项就是默认的。第二项是修复模式。你可以在/boot/grub/grub.conf中进行修改 defaulst=0就是第一项是默认 timeout=xxx是你不选几秒后进入默认 其它项再度娘查什么意思吧
sudo gedit /boot/grub/grub.conf 把vista那段放到ubuntu前面来。 那个叫gnu不是gun
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
康佳冰柜建议买吗?
想知道: 江门市 从鹤山汽车总站到水口镇怎么
英语三级在以后的招聘中有没有用?我外语不好,
俗话说:“找不到北了”,从地理学角度讲,这
S06/宿登高速公路(路口)在什么地方啊,我要过
丰县人素质怎么样?
银益茶都地址在哪,我要去那里办事
电气主接线有哪几种形式?主要应用在什么场合?
地铁里拍的证件照能用于马来西亚签证吗
女龙男蛇生哪年宝宝好
唐末五代,中央集权大为削弱。为扭转这一局面
我的松鼠好像不高兴的样子
长沙职业技术学校不是骗人的吧?为什么百度上
姥姥七十岁了,为什么睡觉的时候总放屁
2011年7月11日晚上8点44分出生的男孩姓肖中间
推荐资讯
享利定律中H称为溶解度系数单位是Kmol/m3.atm
求助,笔记本Y470不能进入系统也不能进
【星光漫步】加减乘除有什么作用
下列不属于叶的组成部分的是CA. 托叶B. 叶柄C
头痛伴喷射性呕吐多见于A.急性胃炎B.霍乱C.胆
恒久房产地址在哪,我要去那里办事
女朋友总说我不成熟,今天突然失望了,跟她说
再努拉阔拉地址在什么地方,想过去办事
煮阴米需不需要洗
英魂之刃绯雨剑星所有说的台词
翔顺二桥地址在哪,我要去那里办事
怎样骂小三,既文明,又显现出才华,最重要的
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?