reorder grub

Asked by chistoph

i need to reorder my grub system so that windows is at the top for my wife and kids but dont know where to start any help will be awesome thank you!!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Mathias Uebelacker
Solved:
Last query:
Last reply:
Revision history for this message
Mathias Uebelacker (muebelacker) said :
#1

Hello,

edit the /boot/grub/menu.lst file. Put the Windows entry at the top of the list and thats it. You need root permissions to do that.

br
Mathias

Revision history for this message
chistoph (chistoph34) said :
#2

thank you but i am brand new to this system so i dont know where to go to edit that and how do i get root permission!!

Revision history for this message
Mathias Uebelacker (muebelacker) said :
#3

Hello Christoph,

open a terminal (Press Alt+F2 and type gnome-terminal) at the command prompt type sudo gedit /boot/grub/menu.lst

in that file you find a section like this and then cut the windows part and paste the part before the Ubuntu part.:

title Ubuntu, kernel 2.6.20-16-generic
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4a36e0ef-88f8-4d23-ba9b-72cc64a49286 ro quiet splash locale=de_DE
initrd /boot/initrd.img-2.6.20-16-generic
quiet
savedefault

title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,1)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=4a36e0ef-88f8-4d23-ba9b-72cc64a49286 ro single
initrd /boot/initrd.img-2.6.20-16-generic
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Home Edition
root (hd0,0)
savedefault
makeactive
chainloader +1

br
Mathias

Revision history for this message
chistoph (chistoph34) said :
#4

i did exactly what you said and it popped up a menu titled menu, lst (/boot/grub) - gedit but there is nothing in it. its a blank screen.

Revision history for this message
Best Mathias Uebelacker (muebelacker) said :
#5

Hello Christoph,

please check the spelling or use cut and paste and use this command line:

sudo gedit /boot/grub/menu.lst

br
Mathias

Revision history for this message
chistoph (chistoph34) said :
#6

Thanks Mathias Uebelacker, that solved my question.

Revision history for this message
Pete Ravenscroft (peteravenscroft) said :
#7

Hi, I've been trying this but get exactly the same - just blank screen even if I copy and paste the command. The previous posts are a few years old, maybe the process has changed a little since then?

Pete