[BootLoader] System dual boot by default

Last update on August 29, 2009 09:34 AM by jak58
Published by netty5

[BootLoader] System dual boot by default






From your "bootloader" to change the default system load up, proceed as follow:
(note that all these procedures are run under "root")

For Lilo


Edit configuration file /etc/lilo.conf.
substitute the value of the "default" variable by the "label" of the specific system you want to load.
e.g from the following file the default system loaded will be linux :

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=linux
prompt
timeout=50
message=/boot/message
 
other=/dev/hda1
        label=windows
        table=/dev/hda
 
image=/boot/vmlinuz
        label=linux
        root=/dev/hda4
        append=""
        read-only


To start on Windows you just have to change the default"variable to:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
default=windows
prompt
timeout=50
message=/boot/message
 
other=/dev/hda1
        label=windows
        table=/dev/hda
 
image=/boot/vmlinuz
        label=linux
        root=/dev/hda4
        append=""
        read-only 


After saving the file configuration /etc/lilo.conf, you need to restart lilo for the changes to take place.
Type in the following command in a terminal (under root):

/sbin/lilo

For Grub


Edit the configuration file base upon the version used:

/boot/grub/grub.conf or /boot/grub/menu.lst.

Substitute the value of the default variable par by the number corresponding to the specific system you want to load (note that it always begins with "0" )

From the following example the system loaded will be Linux :

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# section to load linux
# entry 0
title Linux (2.4.18-5.47)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-5.47 ro root=/dev/sda2
        initrd /initrd-2.4.18-5.47.img

# section to load Windows 2000
# entry 1
title windows
        rootnoverify (hd0,0)
        chainloader +1


To start up with Windows simply change the value of the default variable:

default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz

# section to load linux
# entry 0
title Linux (2.4.18-5.47)
        root (hd0,0)
        kernel /vmlinuz-2.4.18-5.47 ro root=/dev/sda2
        initrd /initrd-2.4.18-5.47.img

# section to load Windows 2000
# entry 1
title windows
        rootnoverify (hd0,0)
        chainloader +1


Just save your configuration. When using Grub changes are made automatically, no need to restart your system.
Best answers for « System dual boot by default » in :
Dual Boot Windows XP/Vista Show Dual Boot Windows XP/Vista Installing XP then Vista Installing XP over Vista If you don’t have the Vista Installation DVD If you have Vista Installation DVD Most new computers come with Windows Vista installed. Some users still...
Dual Boot Ubuntu/Vista GRUB Error 21 ShowDual Boot Ubuntu/Vista GRUB Error 21 Issue Solution Issue In the case that you are prompted with a GRUB error 21 on a Vista and Ubuntu dual booted PC, then it may be due to the fact that Linux mbr can't be found. Solution Use the...
Booting Windows XP in Safe Mode ShowBooting Windows XP in Safe Mode What is Safe Mode? How to get into Safe Mode with Windows XP How to get into Safe Mode with Windows XP Home edition How to get into Safe mode by the System Configuration Utility What is Safe...
Disk boot failure - Insert system disk and press Enter ShowDisk boot failure - Insert system disk and press Enter A new hard drive was installed The hard drive is unplugged Corrupted system files Damaged disk If it happens that you are prompted by the following error message "DISK BOOT...
Download GAG Graphical Boot Manager ShowGraphical Boot Manager is a management programs. The application is launche when your computer starts up and allows you to choose the operational system which you would like to use. The main features : - the possibility to booter from nine...