index Previous Next



To change the timeout and some other global optons edit the file /etc/default/grub.
To change the distro or os diplaing order open the /etc/grub.d and add or change the umber
orders, 10_linux is for
your current linux distro, and the 35_otheros is for ther os added by grub2.and the 41_custom is for the custom menu.
edit the /etc/defualt/grub as:
GRUB_TIMEOUT=20
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_LINUX_RECOVERY="true
To bring the windows in the first of menu make a file 06_windows :
#!/bin/sh
exec tail -n +3 $0
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
menuentry "Windows 7 Ultimate" {
set root=(hd1,msdos1)
search --no-floppy --fs-uuid --set a6c29adac29aae55
chainloader +1
}
and change the 35_otheros for fedora as:
#!/bin/sh
exec tail -n +3 $0
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
menuentry "Fedora (2.6.32.23-170.fc12.i686) (on /dev/sda2)" {
set root=(hd0,msdos2)
search --no-floppy --fs-uuid --set cbe437b4-416e-4006-97ca-c9a1e9248d74
linux /boot/vmlinuz-2.6.32.23-170.fc12.i686 ro root=UUID=cbe437b4-416e-4006-97ca-c9a1e9248d74
LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /boot/initramfs-2.6.32.23-170.fc12.i686.img
}
For the changes to take effectt run the:
update-grub
when you install the grub2 on legacy grub run this command to change to the grub2:
upgrade-from-grub-legacy
