LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 10-06-2004, 01:02 AM   #1
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
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:

Quote:
...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?

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

Quote:
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!
 
Old 10-06-2004, 01:12 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
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
sync
boot into windows and edit the file c:\boot.ini to include:

c:\boot.sec="linux"
 
Old 10-06-2004, 01:32 AM   #3
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
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?

Last edited by texasnoob; 10-06-2004 at 01:38 AM.
 
Old 10-06-2004, 02:57 AM   #4
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
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 ntdetect.com(these 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.
 
Old 10-06-2004, 08:30 AM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 52
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.
 
Old 10-06-2004, 09:22 AM   #6
texasnoob
LQ Newbie
 
Registered: Jun 2004
Location: Lubbock TX
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
OK, I think that clears things up. Thanks for the help, guys!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 12:04 PM
Dual dual booting with Suse 9.1 pro and windows 98SE UDflyer Linux - General 1 07-30-2004 03:37 PM
Problem dual booting.....Windows does not boot raj_verma Red Hat 7 06-11-2004 10:10 PM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 10:05 AM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 10:14 PM


All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration