Learning Academy

The Cure of Ignorance is to Question. MUHAMMAD (PBUH)

CentOS

How to change the order of the OSes from Linux being on top of Dual Boot

To change the order of the OSes from Linux being on top of dual boot to some other OS, e.g., Windows 7

Open a terminal and then cd /boot/grub

Now you need to edit your grub.conf file –

vi grub.conf
#or
vi menu.lst

 

 

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core [kernel: 2.4.22-1.2174.nptl]
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2174.nptl.img
title Fedora Core [kernel: 2.4.22-1.2166.nptl]
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2166.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2166.nptl.img
title Fedora Core [kernel: 2.4.22-1.2115.nptl]
root (hd0,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ rhgb
initrd /initrd-2.4.22-1.2115.nptl.img

 

default 0   #Can do job for us

chang default 0 to the number you want. Remember that Grub starts counting with 0, so the first entry will be “default 0”, the second will be “default 1” etc.

 

Muhammad Shaukat

Content Developer at LearnAcad.com

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest