Linux and Windows XP/2000 dual boot

  1. Use fdisk to partition your drive properly.
  2. Download an burn 3 Mandrake 8.2 CDs or your favorite distro
  3. Install Windows XP/2000 on the first partition, make sure you use fat 32 as your file system, not xp ntfs
  4. Start your Linux Installation and install the /root directory into the second partition.
  5. Install GRUB into the first sector of your boot partition (usually /boot) and not in the MBR. (Note there are reported problems with lilo)
  6. Make a boot disk during the Linux installation if possible so that you can boot into it.
  7. Now boot into Linux and copy the boot image from the boot sector. To do this run:
  8. dd if=/dev/hdan of=/bootsect.lnx bs=512 count=1
  9. , where /dev/hdan is the location of /boot and /bootsect.lnx is the Linux boot image.
  10. Copy this bootsect.lnx file to a safe location where you can reach it using Windows.
  11. Reboot into Windows XP/2000 and copy this bootsect.lnx file into the root directory (C:\).
  12. Edit c:\boot.ini and append the following line: c:\bootsect.lnx=”Linux”.
  13. Reboot your system and boot directly from the hard disk.
  14. The Windows XP/2000 boot loader should now give you the option of booting into either Windows XP/2000 or Linux.
  15. Try booting into both of them to see if you were successful.
  16. Troubles and shooting
  17. What to do if if the actual boot code is *not* installed in /boot, but in the MBR?
    When the system gets ready to make the boot sector, it creates a file in /boot
    called boot.xxxx where xxxx is some number. (In his case, it was 0300 again IIRC.) This file is 512 bytes long to match the boot sector size. Copy this file into the bootsect.lnx
    and boot into Linux.
  18. Your Master Boot Record (MBR) is toast
    type: lilo -u /dev/hda in linux to remove lilo
    Boot to MS-DOS and type fdisk /mbr

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: