LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-31-2004, 03:39 AM   #1
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Rep: Reputation: 15
WinXP + Linux on seperate drives


I currently have WinXP installed on my primary drive. I have recently bought a second hard drive, which I haven't physically installed yet, and on which I plan to install Linux (Slackware). This is how I plan to do it:

1) Make the recently bought drive the primary master.
2) Make the current drive with WinXP the primary slave.
3) Install Slackware Linux on the primary master.

My first question is, are there any inherent problems with my plan?

My second question concerns LILO, since at some point in the install process, I will install/setup/configure LILO: should I install LILO to my Linux root partition or to the MBR? I can't see that it makes any difference in my case. But I don't fully understand the MBR.
 
Old 07-31-2004, 03:52 AM   #2
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
That should work fine.

You may find that you cant boot into windows, however this is just because you will have to do some configuring of your lilo.conf file.

If you cant login to windows and you are desperate you can simply remove the linux drive and reboot and windows will launch.

Don't know about the MBR stuff
 
Old 07-31-2004, 03:53 AM   #3
Hjalte
LQ Newbie
 
Registered: May 2004
Location: Denmark
Distribution: Debian
Posts: 28

Rep: Reputation: 15
Your plan should work perfectly fine, as see it

http://en.wikipedia.org/wiki/MBR

There's a description of the MBR...
So, your could just as well install it in the MBR.

I don't know how Slackware handles the LILO configuring point, but I'd guess it will autodetect the partitions on your winxp drive, and make them bootable, and an option in LILO...
 
Old 07-31-2004, 07:30 AM   #4
mdg
Member
 
Registered: Sep 2003
Distribution: Slackware
Posts: 626

Rep: Reputation: 38
Just one issue there, I've always understood that windows needs to be on the primary drive in a dual boot setup, or it won't boot. If anybody has windows running as a slave to linux, feel free to correct me.

As for the second question, I always set up lilo in MBR and I've never had problems.
 
Old 07-31-2004, 07:58 AM   #5
rsrsharma
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian 3.1 (Sarge)
Posts: 15

Rep: Reputation: 0
Actually, I have WinXP Pro running as primary slave right now. However, I am using GRUB, not LILO. The configuration for WinXP on slave in GRUB is the following:
Quote:
title Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
makeactive
boot
 
Old 07-31-2004, 09:12 AM   #6
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
I also have windows running as primary slave, however like rsrsharma I am running grub
 
Old 07-31-2004, 09:19 AM   #7
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
here's the scenario:
WinXP WILL boot as slave, but it must THINK it's the master.
You can do this by editing your lilo.conf/grub.conf whichever you choose to use.
your easiest bet: install lilo/grub on the MBR of your XP disc (primary master)
this way you make every OS happy
 
Old 07-31-2004, 12:50 PM   #8
rsrsharma
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian 3.1 (Sarge)
Posts: 15

Rep: Reputation: 0
Yes, scuzzman, that's right. Those two map commands tell GRUB to make XP feel like it's on the master harddrive.
 
Old 07-31-2004, 04:48 PM   #9
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Personally, I'd just leave Windows as the primary master, and install Linux on the slave. Within LILO, you can specify which OS should be the default, and functionally, it doesn't make a bit of difference which OS is on the master drive and which is on the slave. Just to be clear, the instructions listed already in terms of steps you can take to fool Win into thinking it's on the master are perfectly accurate and will work.... I personally don't see any value in making things more complicated than they need to be.

As for installing LILO in the MBR vs other places - suffice it to say that you can find just as many people saying you should always install it into the MBR as you can find who say that you should never install it into the MBR. Personally, I've always installed it into the MBR, and have never had any problems with it.

Lastly, if LILO is a relatively new topic for you, be advised that the term "lilo" is somewhat interchangable, and can refer both to the lilo.conf file (in /etc) in addition to the lilo program (in /sbin) Not be confusing, but changes to lilo (meaning the file) will only take effect once you re-rerun lilo (meaning the program). To clarify, after you edit lilo.conf and save your changes, you will need to become root and run: /sbin/lilo

The only reason I mention this is because frequently, a person will make a change to lilo.conf and discover that nothing has changed, and the solution to that issue is to run /sbin/lilo. In any event, good luck with it -- J.W.
 
Old 07-31-2004, 05:38 PM   #10
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for your responses. Of course, I only have more questions.

1) If I install LILO on the MBR of my winxp disk, won't WinXP complain or just overwrite that? I thought WinXP (unlike Win98, for example) had problems when aliens invaded their MBRs.

2) Now, with the primary master having Linux on it (and LILO on its MBR), and the primary slave having WinXP on it, I need to edit lilo.conf and fool WinXP into thinking it's on the primary master (heheh, stupid WinXP). You've kindly given me the grub version of this trick. Anyone know the lilo version? I'll look for it myself later today, and if I find it, I'll post the answer back in this thread.
 
Old 07-31-2004, 05:51 PM   #11
cragwolf
Member
 
Registered: Jan 2004
Location: arse-end of the world
Distribution: Zenwalk 2.8
Posts: 73

Original Poster
Rep: Reputation: 15
Ha, I found the answer to my second question. Just add these lines to your lilo.conf file:

Code:
other=/dev/hdb1
label=WinXP
table=/dev/hdb
map-drive = 0x80
to = 0x81
map-drive = 0x81
to = 0x80
I need to look up exactly what these commands are doing. But it seems fairly obvious. Will try this out in a few days!
 
Old 08-03-2004, 10:36 AM   #12
rsrsharma
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian 3.1 (Sarge)
Posts: 15

Rep: Reputation: 0
Good work. In case someone else is looking for an explaination (or you aren't able to figure it out yourself) here's what those commands do:

other=/dev/hdb1
This sets the partition to boot from.

label=WinXP
This sets the label for the menu.

table=/dev/hdb
This sets what partion table should be sent to the OS (or maybe it chainloads, I'm not sure...)

map-drive = 0x80
to = 0x81
These commands map the drive at hex address 0x80 (primary master) to 0x81 (primary slave).

map-drive = 0x81
to = 0x80
These commands map the drive at hex address 0x81 (primary slave) to 0x80 (primary master).

Of course, you might just want to install GRUB anyway. It makes changing over to custom built kernels so much easier...
 
  


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
linux and windows 2000 on seperate hard drives domon#1 Linux - Hardware 3 07-07-2005 02:43 PM
Sharing drives from Linux to WinXP codepoet Linux - Networking 3 06-25-2005 04:12 PM
Dual boot RedHat and WinXP on Seperate Drives Nicko Linux - Software 4 08-21-2003 08:34 AM
windows 2000 and linux on seperate hard drives kidquestion Linux - Newbie 0 08-07-2003 08:39 AM
seperate drives phil75 Linux - Software 2 05-09-2001 02:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration