-   Linux - Newbie (
-   -   dual booting using windows boot manager? (

texasnoob 10-06-2004 01:02 AM

dual booting using windows boot manager?
I want to install Yoper linux and dual boot with windows/linux. I've already been through it once before...I installed windows, then yoper, and thinking that LILO is friendly with windows, I went ahead and installed it to the boot sector of my drive. Big mistake...

Anyway, long story and a couple days later, here I am with a new install of windows and no install of yoper. I found an interesting page where a guy describes how to dual boot using windows boot manager. The trouble is, I don't understand everything he's talking about. Here are the parts I'm having trouble with:


...therefore I place LILO (or other boot loader) in the boot record of /dev/hda2 partition which I mount as /boot.
I will most likely install yoper on hda2 (with windows on hda1). Do I have to create a boot record for it, or is it already installed when I install linux? How exactly do I mount it as /boot?


Copy the boot sector of /dev/hda2 partition into a file:
Where can I find the boot sector of the /dev/hda2 partition?


Copy the file bootsect.lnx to the windows partition
I guess he means any part of the partition, as long as I can access it from windows?


The rest is easy, it's just messing around with windows ;)

I'd like to get this figured out before I install linux again...Thanks for your help!

whansard 10-06-2004 01:12 AM

don't get mixed up between the master boot record which is at the beginning of the disk, and the boot record which is at the beginning of each partition.
install yoper, and let lilo install itself in the boot record of the root partition. the boot record will exist in the first 512 bytes of the partition, which you can copy with
dd if=/dev/hda2 of=/boot.sec bs=512 count=1
mount the windows partition before rebooting and copy that file to the windows partition. if it's an ntfs partition, instead copy it to a floppy.
mount /dev/fd0 /mnt/floppy
cp /boot.sec /mnt/floppy
boot into windows and edit the file c:\boot.ini to include:


texasnoob 10-06-2004 01:32 AM


Originally posted by whansard
let lilo install itself in the boot record of the root partition.
In this case, the boot sector of /dev/hda2?

In the example you gave me, where does the file "boot.sec" end up (filepath) after it is copied?

Does the extension matter? In your example you used .sec, but on the webpage the guy uses .lnx.

EDIT: Oh yeah, where does the file have to reside on the windows partition? Does it have to stay in C:\ ? Or can I put it somewhere else?

Demonbane 10-06-2004 02:57 AM

I have no experience with Yoper but in most distros you get to choose whether you want to install the bootloader(GRUB or LILO in most cases) into the MBR or into the partition bootsector, in your case you need to install it into the partition bootsector.

the boot.sec ends up in / because he specified absolute path, if you just have boot.sec without the leading slash it'll be created in your current working directory.

The extension shouldn't not matter, though I vaguely remember having issues with certain file extensions when using NT OS Loader. .lnx, .bin or .sec should certainly work.

The file has to reside on where your boot.ini, ntldr and are hidden system files)is, which is usually C:\. Therefore if its on a NTFS partition you'll need to copy the file onto a floppy disk, reboot into Windows then copy it.

whansard 10-06-2004 08:30 AM

the extension doesn't matter. you don't even need an extension. the path doesn't matter either. i have all mine in c:\work, so my boot.ini says c:\work\boot.sec or whatever name you choose.

texasnoob 10-06-2004 09:22 AM

OK, I think that clears things up. Thanks for the help, guys!

All times are GMT -5. The time now is 10:24 PM.