Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-06-2006, 11:32 AM   #1
Registered: Sep 2005
Location: SAC CA
Posts: 31

Rep: Reputation: 15
2 hard drives

I have an emachines T6528. i currently have xp home on the primary master hard drive. i have linux simplymepis installed on another hard drive that was in another pc. i'll disconnect the xp hard drive and install the linux one to master primary. after i get it set with the command path to allow me to choose which hard drive i want to boot to when both hard drives are in the pc, should i make it master slave or secondary master with xp being primary master? I heard that a bootup command path has to be changed in the linux hard drive so the bootup program can give a
choice of which hard drive i want to boot to.
i would go into the command prompt program in linux, like DOS in windows (i dont remember what its called right now).
what is the command path i would need to type so that i would get the choice of which hard drive i want to boot into?
Old 06-06-2006, 11:52 AM   #2
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
i'll disconnect the xp hard drive and install the linux one to master primary.
since you are ditatching linux hard drive from 2nd machine and trying to install it on 1st machine, there is no asurity that your linux will work on that machine.
Because it has taken the configuration of the 2nd machine. Same could be the case with windows hard drive.
What i would do....
install the linux drive as secondary master and then re-install linux on it. Install the bootloader of linux in the MBR of primary drive.

Old 06-06-2006, 11:54 AM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
I suggest that you make the Windows drive either the primary slave, or the secondary master. Make the linux drive the primary master. Install linux. In the the linux drive you should have a directory '/boot/grub'. In that directory, you shoould have a file 'grub.conf'. You will need to edit that file.

If you have made the Windows drive the primary slave, it will be known to grub as hd1. Depending on what other drives are installed (CDs, DVDs, etc), it may be known as hd1, hd2 or hd3 if you attach it to the other bus.

You will need to add an entry to grub.conf, that loks like this:

title Windows XP
        rootnoverify (hd1,0)
        map (hd0) (hd1)
        map (hd1) (hd0)
        chainloader +1
Put this right at the end of grub.conf

Reboot, select 'Windows XP' to run Windows. Select the other to run linux.

Run 'info grub' to see how to make other changes to the boot menu (eg. defaults, timeouts, etc).

--- rod.
Old 06-06-2006, 12:11 PM   #4
Registered: Apr 2004
Location: Statesboro, GA
Distribution: Arch Linux 2007.05 "Duke" (Kernel 2.6.21)
Posts: 447

Rep: Reputation: 30
Not to contradict theNbomr, but (at least on my machine - I could be in the minority here) what he refers to as /boot/grub/grub.conf is actually /boot/grub/menu.lst His entry is correct, as is his logic - but what may need to be clearer is grubs naming scheme.

Grub starts all drives from 0 as well as all partitions. So the first partition on your first IDE drive (your primary master drive) is hd(0,0) to grub.
Second partition, Primary Master: hd(0,1)
First partition, Primary Slave: hd(1,0)
Second partition, Primary Slave: hd(1,1)

This continues up for the Secondary Master and Slave and for successive partition numbers. Remember also that extended partitions start a hda5 (or hd(x,4) for GRUB) and that Primarys will use hda1, hda2, hda3 and hda4 (where hda is the primary master and the numbers indicate partition numbers - starting with one)

Don't want to sound like I'm speaking down to you if you know this - but I know I had a hard time understanding (and still mess this up on the first boot of my arch systems just about everytime.)
Old 06-06-2006, 12:50 PM   #5
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
is a link to
. theNbomr is not incorrect. I edit grub.conf.

Here is a link to the GRUB manual that should be read before editting grub.conf or menu.lst.
Old 06-06-2006, 01:45 PM   #6
Senior Member
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
on some distros its /boot/grub/menu.lst and on some its /etc/grub.conf



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
2 hard drives, XP on my main sata drives, 10.2 on my IDE LILO doesnt show on boot up Dachy Slackware 14 01-03-2008 07:01 AM
two hard drives slinky2004 Linux - Hardware 2 12-26-2004 11:32 PM
External Hard Drives/Hard Drives ddrfreak Mandriva 1 12-16-2004 06:12 PM
Upgrading hard drives on Software raid 1 boot drives. linuxboy123 Linux - General 0 12-11-2003 03:28 PM
2 Hard Drives Randy-RH7 Linux - Newbie 2 10-05-2001 06:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration