LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   WinXP + Linux on seperate drives (https://www.linuxquestions.org/questions/linux-newbie-8/winxp-linux-on-seperate-drives-211760/)

cragwolf 07-31-2004 03:39 AM

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.

jax8 07-31-2004 03:52 AM

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

Hjalte 07-31-2004 03:53 AM

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...

mdg 07-31-2004 07:30 AM

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.

rsrsharma 07-31-2004 07:58 AM

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

jax8 07-31-2004 09:12 AM

I also have windows running as primary slave, however like rsrsharma I am running grub

scuzzman 07-31-2004 09:19 AM

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

rsrsharma 07-31-2004 12:50 PM

Yes, scuzzman, that's right. Those two map commands tell GRUB to make XP feel like it's on the master harddrive.

J.W. 07-31-2004 04:48 PM

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.

cragwolf 07-31-2004 05:38 PM

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.

cragwolf 07-31-2004 05:51 PM

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!

rsrsharma 08-03-2004 10:36 AM

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...


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