[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...
[Windows 7]Choose your default OS at startup Show[Windows 7]Choose your default OS at startup In the case that you have multiple OS installed , including Windows 7 ,you can configure the system that will run by default at startup. Here is the simple way to do it: Press the ...
NTLDR - Boot.ini - Missing NTDETECT ShowNTLDR - Boot.ini - Missing NTDETECT 1. Recovery Console 2. Repair XP 3. Recovery from the Windows CD 4. Recovery from a backup 5. Prevention method In the case that you have an error message warning you that one of these files is...
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...
The NTFS file system ShowThe NTFS file system The NTFS file system (New Technology File System) is based on a structure called the "master file table" or MFT, which is able to hold detailed information on files. This system allows the use of long names, but, unlike the...