2011年5月7日 星期六

[Computer] 改Ubuntu開機選單/Editing Grub2 Bootloader

menu.lst file will not be present in newer versions of grub.So if u try to open it you will get a blank file.
proceed as follows.
1.open /boot/grub/grub.cfg as root user.
2.type sudo gedit /boot/grubgrub.cfg in terminal to open it in write mode.
3.Now you can see something called menuentry which is nothing but different booting options like ubuntu generic,ubuntu memtest,windows etc. which is repeated 5 to 6 times in the format
###some text
menu entry
//some text related to menu entry
###some text
(Ctrl+f and type menuentry to find it)
4.Find the para which has menuentry with windows7/xp/vista(depending on your windows version).generally it will be the last entry.
5.Cut that para i.e., from
###some text
menuentry windows 7
//some related text
###some text
and paste it just before the para of ubuntu generic menuentry i.e., just above its ###.
6.save it.

Note:Keep a copy of the original file in case u want to restore the default.but by this technique u can change the boot order as u like.


From Ubuntu Geek

沒有留言:

張貼留言