Re: [SLUG] Win2000 dual boot

From: Paul Legato (pjlegato@tampabay.rr.com)
Date: Tue Jul 03 2001 - 03:12:25 EDT


Win2k is extremely problematic. This is the procedure I've been able to
gather from various newsgroups and web pages (though I haven't actually tried
this yet because my #*@! win2k partition won't boot because I swapped a
CD-ROM and a hard drive on the IDE chain. Apparently Win2k records data about
each mass storage device in the registry, and if something's moved when it
boots from where it thinks the stuff should be, it bsod's with
INACCESSIBLE_BOOT_DEVICE. Anyone know how to fix that, btw?) But I digress..

Best bet is to install Win2k first, leaving some unpartitioned space
available for Linux. Most Linux installation programs are much less
beligerent towards other operating systems than Windows' tend to be. Then,
once Windows is up and running, install Linux on the remaining free drive
space.

Dual booting with Windows 2000 is a royal pain in the ass, probably by
design. If you alter the master boot record, Win2k won't boot, so you can't
use LILO as your main boot loader. Install LILO into the boot sector of your
root Linux partition rather than in the MBR. Then use dd to copy the first
512 bytes of that partition into a file on your Windows partition. Then edit
boot.ini on the windows partition to make it boot the Linux bootsector image.

For example.. my setup:
/dev/hda1 - Windows 2000 FAT32 partition
/dev/hda2 - Linux swap partition
/dev/hda3 - Linux / partition

so install everything, and make a Linux bootdisk just in case. Install LILO
like:

   /sbin/lilo /dev/hda3 # <-- Installs to the boot sector of partition 3

then:

   mkdir /mnt/win # make a mount point for the Windows partition
   mount -t vfat /dev/hda1 /mnt/win # mount it
                                        # (alternately, edit /etc/fstab so you
                                        # don't have to do this by hand every
                                        # time you reboot the computer)
   dd if=/dev/hda3 of=/mnt/win/bootsect.lnx bs=512 count=1
    # ^^^ copy first 512 bytes (i.e. boot sector) to a file in /mnt/win/
   joe /mnt/win/boot.ini # edit boot.ini

and add a line such as

c:\bootsect.lnx = "Linux"

into the [operating systems] sectlion.

After that, you should have a new menu entry in your Windows 2000 boot loader
that will boot Linux.

You'll need to reinstall LILO and redo that dd every time you recompile your
kernel, to update the boot sector image on the Windows partition...

Good luck... Win2k is a fickle hellcat.

-Paul

On Tuesday 03 July 2001 02:42 am, you wrote:
> Hello all,
>
> What is the best way to dual boot Windows2000 and linux on the same hard
> disk? If you have a link to a helpful webpage, I would be much abliged.
>
> Thanks,
> Rich



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:24:09 EDT