LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-04-2001, 01:16 PM   #1
mkhan
Member
 
Registered: Jun 2001
Posts: 30

Rep: Reputation: 15
Question bootloader


hi

i have 2 HD --> HDA = win2k, HDB = Mandrake 8.0.
Bootloader is LILO and I can boot both OS's.
i would like to use Win2k bootloader (boot.ini) to be able to choose which OS and NOT LILO.

Can someone tell me how i can achieve this?


thanks


m khan
 
Old 07-04-2001, 01:29 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
The way that I've done this with NT in the past (same as Win2K AFAIK) is to install LILO to the superblock of the Linux partition, then extract the superblock (and hence LILO) to a file using
Code:
dd if=/dev/hda3 of=/someDir/bootsect.lnx bs=512 count=1
This extracts the first 512bytes from /dev/hda3 (assuming this is your linux partition where you put LILO). Now get your bootsect.lnx file to c:\ under Windows and edit boot.ini to add a line that looks something like
Code:
C:\BOOTSECT.LNX="Linux"
(if you're doing this from the command line you'll need to remove the system and readonly setting of the file first, and replace them after [use 'attrib']). When you reboot you should see an option to boot 'Linux' - this will read bootsect.lnx, hence hit and execute LILO and you're away.

Just remember that you need to repeat this process everytime you reinstall lilo, which is something you'll do everytime you rebuild your kernel!

Have a read of http://www.linuxdoc.org/HOWTO/mini/Linux+NT-Loader.html for more details. I think there's another way to do it too...

HTH

Jamie...
 
Old 07-04-2001, 09:02 PM   #3
ctdp
Member
 
Registered: Sep 2000
Location: Michigan
Distribution: Redhat
Posts: 30

Rep: Reputation: 15
Jharris is correct. This may add to it. See item 3 at:
http://ctdp.tripod.com/os/linux/usersguide/index.html
It gives step by step instructions on how to set it up based on the mini howto mentioned above and more.
 
  


Reply



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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 09:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 08:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 12:22 PM
No Bootloader! JoshSmith41 Linux - Newbie 4 07-28-2003 03:24 AM
Bootloader Dumpsterm0uth Linux - General 6 05-26-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:37 PM.

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
Open Source Consulting | Domain Registration