|
Wednesday September 08th, 2010 0 Users Logged In 19 Users Total
Admin Status: |
|
reports :: linux-dual-boot
To dual boot Linux and Windows XP (and probably 2k), compile your kernel as
you normally would, then make /etc/lilo.conf look similar to this:
menu-scheme=Wb boot = /dev/hda5 # Set to exact partition, not MBR (/dev/hda) install = /boot/boot.b prompt map = /boot/System.map lba32 #if lba32 do not work, use linear delay = 5 #vga = normal # Normal VGA console vga = 792 # 32bpp 1024x768 # Linux bootable partition config begins image = /boot/bzImage root = /dev/hda5 label = Gentoo read-only # read-only for checking # Linux bootable partition config endsThen run: /sbin/lilo dd if=/dev/hda5 of=bootsec.lin bs=512 count=1Then take bootsec.lin and copy it to your windows C:\. The easiest way to do this, if you use FAT32, is to mount the drive from linux. mount -t vfat /dev/hda1 /mnt/win cp bootsec.lin /mnt/winIf you have it mounted, edit /mnt/win/boot.ini. If not boot Windows and use an editor to edit C:\boot.ini and make it similar to the following. [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP" /fastdetect c:\bootsec.lin="Linux"The next time you boot your computer you should have a menu to boot Microsoft Windows XP or Linux. Choose Linux and LILO loads.
|