LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-31-2005, 01:32 AM   #1
eklitzke
LQ Newbie
 
Registered: Aug 2004
Distribution: Fedora Core 3
Posts: 11

Rep: Reputation: 0
Master/Slave HDD Question


Right now I have a computer with two hard drives, and FC3 is on the first and the second is unused. I'm planning on doing a Windows install on the second drive sometime in the next few days, but since I'm doing it in a sort of weird way, I wanted to ask if anyone knows if what I am doing will cause any problems. Since Windows wants to be on the first drive, I was thinking of just switching my master/slave drives in my BIOS so that the unused drive is the master drive, and then installing Windows on it. My primary concern is whether Fedora will be ok with this after I get it back up. In particular, right now it thinks it is on hda and the other drive is on hdb, and I'm worried that the system could get confused after I switch the drives in the BIOS. I'm also confused about what GRUB will call the hard drives. In a more general sense, my question has to do with the way that the kernel determines whether it is on the "first" or "second" drive. It seems like there are two ways that Linux could determine which is the "first" hard drive - it could just look at the I/O addresses or there could just be some way of asking the BIOS. But maybe when I switch my master/slave configuration the BIOS changes the I/O addresses. I don't know enough about how the kernel (or my BIOS) works, but I'm guessing that this is implemented in a fairly standard way, so I was hoping someone could help tell me understand what the effects of this will be.
 
Old 03-31-2005, 02:12 AM   #2
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
normally it doesn´t matter where your os will be placed.
if you install xp on hd2, it will overwrite your mbr on hd1 and you can not start fc3 via bootmenu.
i would 1st install xp (whereever) and then install fc3. till now i were not in such a situation, but there are many howtos, how to install linux after windoze.
think the following should also work:
-unplug hd1
-install xp on hd2
-plug hd1
-boot into fc3
-edit grub where to find xp
...but never tried ;-)
 
Old 03-31-2005, 11:50 AM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Quote:
think the following should also work:
-unplug hd1
-install xp on hd2
-plug hd1
-boot into fc3
-edit grub where to find xp
...but never tried ;-)
I've tried something very similar (debian/lilo instead of fc/grub); it works like a charm, except for the I'm-Windows-so-I-MUST-be-on-the-first-disk thing that micro$oft has going.

How to fix it for Lilo:
http://www.anandtech.com/guides/viewfaq.html?i=138
I hope you can learn the trick for grub from this (and, of course, the grub manual).

thread where I was tipped to that site, just in case you care:
http://www.linuxquestions.org/questi...hreadid=200333

hth --Jonas Kölker
 
Old 03-31-2005, 11:39 PM   #4
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
you can install xp on the second drive, the only thing M$ do, is changing MBR of disk1.
and the normal boot-files xp need are:
ntdetect.com, ntldr, boot.ini

and due to the fact that boot.ini describes where (drive,partition) xp is installed, an ntfs-formatted floppy with this files satisfies to boot into xp.
so if the ´other OS-entry´ in grub is correct, it should work....
 
Old 04-01-2005, 03:19 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
What you're planning is fine - so long as you are prepared to flip-flop the primary drive in the BIOS whenever you want to change O/S. That way each disk has an MBR, and sees itself as primary for that boot.
Not something I'd do, but others have.

If you make your unused drive the (BIOS) primary, windows will install successfully on that disk, and will not affect the MBR of the other disk. It will see the FC3 disk as D:

After that, go back into the BIOS and make the FC3 disk the primary, and it will boot happily. It will see the windows disk as hdb (or sdb if SATA).

Once both are installed, *BOTH* boot-loaders can be used to boot either and/or both, without having to swap the drives in the BIOS. If you choose to use ntldr to do this, it will have to be the primary drive *permanently*, and you'll need to update the FC3 fstab as it (FC3) will now be on /dev/hdb (or sdb if SATA).
 
  


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
DNS named.conf master/slave question pao Linux - Networking 5 11-12-2004 04:50 AM
slave not authenticating when master is down spyghost Solaris / OpenSolaris 3 10-04-2004 11:12 AM
Slave to Master? s9722 Linux - General 6 02-23-2004 10:34 PM
Slave to Master Question tkman Linux - General 2 11-23-2003 11:37 PM
Do 2 harddrives have to be Master/Slave? RAL Linux - Newbie 22 08-10-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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