NOTE: This article was written in 2004 and a lot of things may be outdated here.
You can set your computer to dual boot either with the Windows NT bootloader, Grub, LILO or any other bootloader.
My Windows partition is at
/dev/hda1 and Linux partition is at
/dev/hda2. The boot is at
Grub as the bootloader
I use Gentoo, so I'm listing the steps to install and configure Grub for Gentoo users.
First, emerge Grub with
title Gentoo root (hd0,1) kernel /kernel-2.6.15-gentoo-r4 root=/dev/hda4 vga=791 boot title Microsoft Windows XP rootnoverify (hd0,0) makeactive chainloader +1
NOTE: In my laptop,
/dev/hda1 is (hd0,0)
/dev/hda2 is (hd0,1)
LILO as the bootloader
If you want to let LILO be the bootloader, just click on 'yes' during the installation; thats what I did.
I selected graphical LILO as the bootloader for my computer at home and GRUB at work in the Plant Pathology dept where I worked (until 2002).
Windows NT bootloader as the default bootloader
However, if you want Windows NT bootloader as your default bootloader, follow the steps below.
- Windows 2000 has to Own the MBR - you can't install LILO in it.
- When you install linux, install LILO on the root install partition instead & make a boot disk when prompted.
- Then, when linux is done installing, boot it from the disk.
Mount a new msdos floppy and type:
dd if=/dev/hda6 bs=512 count=1 of=/linux.bin
(here, hda6 is the root partition, you can substitute it for your own linux root partition)
Now you need to copy the MBR to the floppy
mount -t msdos /dev/fd0 /mnt cp /linux.bin /mnt umount /mnt
- Remove the floppy from the drive and reboot in Windows 2000.
- Copy the linux.bin file from the disk you just used to the root of your C drive.
- Edit c:\boot.ini and add an entry at the end that looks something like this: c:\linux.bin="RedHat 7" or whatever you want to call it.
- The NT bootloader will now launch LILO when you choose RedHat from the menu.
Recovering a lost LILO
Boot into Linux using a Linux boot floppy and type
If you have Win 95/98, type
If you have Windows 2000, boot from the Windows 2000 CD and type
Or else, from Linux, type
Removing Grub (and installing LILO)
If you have Grub as your default bootloader and want to replace it with LILO, here is what you do.
To remove Grub, you have to create a
/etc/lilo.conf that describes your setup.
lilo -v to replace Grub with LILO.
Removing Grub (and installing Windows bootloader)
If you have Grub as your default bootloader and want to replace it with the Windows bootloader, you have two options.
fixboot command in Windows. It may work.
Or else, reinstall Windows.
- How to install Windows 7 on VirtualBox
- Windows Hacks, Tips and Tricks
- Hacking your Linksys WRT54G Wireless-G Router with DD-WRT firmware
- How to remove CTRL M characters
- Unix find command with examples and common usage
- How to find the IP address of the email sender in Gmail, Yahoo mail, Hotmail, AOL, Outlook Express, etc.
- Important and useful Linux and Unix commands
- How to rescue your files if Windows is busted
- How to Dual Boot with Linux and Windows XP
- How to rename multiple files in Unix or Linux
- How to change boot sequence between Windows and Linux
- HISTORY shell variable management in Unix/Linux
- How to install Debian GNU/Linux on your computer
- File transfer using Linux or Unix
- Installing X Window on Debian
- Parsing Web Server Logs
- How to uninstall the Microsoft Java Virtual Machine (JVM)
- My Linux Settings and Configuration Files
- Installing a webcam in Linux
- Play Prince of Persia on Ubuntu Linux using DOSBox
- Installing Multimedia in Debian
- Installing Applications and Servers in Debian GNU/Linux
- Install Ruby on Rails from source
- Upgrading the kernel in Debian
- I cannot insert a CD or DVD into my MacBook's slot load SuperDrive
- apt-get and dpkg commands in Debian
- Changing file system from Ext2 to Ext3 in Debian
- Installing Ubuntu Linux in VirtualBox
- Installing the networking in Debian
- How to eject CD/DVD from your MacBook or iMac
If you have any questions, please contact me at arulbOsutkNiqlzziyties@gNqmaizl.bkcom. You can also post questions in our Facebook group. Thank you.