LinuxQuestions.org
Register a domain and help support LQ
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 07-14-2003, 02:29 AM   #1
XDude
LQ Newbie
 
Registered: Jul 2003
Location: USA BABY!
Posts: 5

Rep: Reputation: 0
Mandrake on primary HD, Win on secondary, dual boot?


Ok well apparantly when you install Mandrake 9.1 it doesn't let you choose a secondary hard drive, at least I didn't see how and online I couldn't find out how. I just switched harddrives and now I have Mandrake on my primary hard drive and Windows ME on my secondary hard drive.. I want to dual boot though and I have no idea where to begin.. I know I need to do something with LILO but I don't know what.

Heres info that may be important, I'm not sure:
Hard drive with windows:
New devfs device: ‎/dev/ide/host0/bus2/target0/lun0/disc
Old device file: ‎/dev/hde

Harddrive with Mandrake:
New devfs device: ‎/dev/ide/host0/bus0/target0/lun0/disc
Old device file: ‎/dev/hda

I wasn't sure which of those lines, if either, was important, but there they are anyways.

Can anyone help me setup a dual boot system here? In detail, because I'm one extreme
 
Old 07-14-2003, 02:36 AM   #2
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Welcome to LQ

Well, windoze cannot stand to be second, you either need to swap the drives back, or you need to trick windoze into thinking it's first. This can be done with the map= lines in lilo.
So just below your entry for win in your /etc/lilo.conf file add this:
Code:
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
Remember to run lilo after to save the changes, then reboot.

Your other option is to swap drives back and install to the MBR of your first drive. You'll need to go into rescue mode to do this since the MBR will be confused after the drive swap. To get into rescue mode:
Plop in your Mandrake install CD, and when you "press enter to continue or F1 for help" press F1, type "rescue" without the quotes and follow the instructions to re-install LILO to the MBR.

Cool
 
Old 07-14-2003, 03:29 AM   #3
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 30
I have a question here. If I want to install windows onto the first harddisk and Linux on the second, is the Linux installation process able to install Linux onto /dev/hdb (second harddisk) and is it able to put the lilo to the MBR or the first harddisk?
Thanks
 
Old 07-14-2003, 04:23 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sure is. Linux doesn't really care which partition it's installed to, as long as the root and image are correct in lilo, it will be happy to install anywhere. As for in the MBR, sure, it's at the top portion of your lilo.conf file. The device is listed, to install to the MBR it should list as /dev/hda (assuming a standard drive layout).

Cool
 
Old 07-14-2003, 07:50 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i'd always recommend putting linux on the master and swapping them in the bios like masterc suggested. this way, if you're not too hot on linux, removing it entirely is simply a case of physically changing the drives back, as the mbr is not on the same drive as the windows machine.
 
Old 07-14-2003, 08:39 AM   #6
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 30
Hello Chris. I undertood that the windows should be on the "primary" disk when booting, so the MBR is likely to be put on the disk where windows resides. When swap the order in BIOS, accordingly I need to do the physical exchange. Is that right?
Thank you.
 
Old 07-14-2003, 08:53 AM   #7
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
What he's suggesting is to physically move your drives, if you can do this from within the bios, all the better. However, do whatever you need to do to get your hdb be your windoze drive. Then, in the event you want to switch back, you don't have to worry about fixing the MBR at all, you simply physically switch the drives back and there is virtually no evidence of linux.

HTH

Cool
 
Old 07-14-2003, 09:19 AM   #8
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 30
Oh, thanks a lot. Master
By putting the windows as hdb, you mean by installing Linux boot loader to hda? Consequently either harddisk has its own bootloader: hda has LILO, hdb has NTLDR (win2000). By switching windows disk to the "prime", it utilizes NTLDR, and Linux turns behind the door. Is that correct?
 
Old 07-14-2003, 09:55 AM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Xdude

Just put Windows on your primary master drive and Linux on your primary slave or secondary master.

Linux recognises drives like this:

primary master..................../dev/hda
primary slave......................./dev/hdb

secondary master.............../dev/hdc
secondary slave.................../dev/hdd


Install Windows first then Linux second - when installing Linu x you'll get a choice as to where you want to install it to - in your case it will be either

/dev/hdb or
/dev/hdc

depnding on whther you want it on the primary slave or secondary master.
 
Old 07-14-2003, 12:27 PM   #10
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Quote:
Originally posted by captainstorm
Oh, thanks a lot. Master
By putting the windows as hdb, you mean by installing Linux boot loader to hda? Consequently either harddisk has its own bootloader: hda has LILO, hdb has NTLDR (win2000). By switching windows disk to the "prime", it utilizes NTLDR, and Linux turns behind the door. Is that correct?
In a nutshell, it sure is

Cool
 
Old 07-15-2003, 01:42 AM   #11
XDude
LQ Newbie
 
Registered: Jul 2003
Location: USA BABY!
Posts: 5

Original Poster
Rep: Reputation: 0
Well what I ended up doing was leaving the linux drive as primary and I just went into the Mandrake Control Center and found where you configure LILO and added the other harddrive, now it works fine. Thanks though.
 
Old 07-15-2003, 01:44 AM   #12
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Sweet deal

Glad to hear you got it all working.

Cool
 
Old 07-15-2003, 01:50 AM   #13
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Congrats Xdude
 
  


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
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 09:16 PM
dual boot for win2000 as primary and linux as secondary Carmela Linux - Newbie 4 10-26-2004 01:22 PM
Dual Boot with win xp pro and mandrake 9.1 INSUREDBYHK Linux - Hardware 1 02-26-2004 07:55 PM
Dual boot Win XP and Mandrake 9.1 appolyon Linux - Newbie 2 11-04-2003 05:34 AM
problem with dual boot (Win XP and Mandrake 8.2) ywxf Linux - Newbie 2 04-07-2003 10:25 PM


All times are GMT -5. The time now is 09:01 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