LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-03-2003, 11:03 PM   #1
olivierrrrr
LQ Newbie
 
Registered: Oct 2003
Location: Toronto
Distribution: SuSE
Posts: 2

Rep: Reputation: 0
Dual booting on 2 hard drives


is it possible to boot an OS which is not on the promary hard drive?

i installed win xp first (with NTFS)
then went on to install linux on a second harddrive.
now, the first time i did that (and overwrote windows' boot loader) i couldn't load any OS after the install.

i reinstalled windows, re-installed linux, this time with linux on the primary hard drive.
linux boots fine, windows does not boot.

is it a requirement that windows/linux should be on the first HD?

is there any way to go around that?
also, i'd like not to change the MBR if that's possible.
 
Old 10-03-2003, 11:18 PM   #2
dalek
Senior Member
 
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
Windows likes to be on the first drive. Control I guess. You know Billy boy, he hates the compitition. Linux can be put anywhere. You can put in a IDE controller card and install it there as long as BIOS sees the card and drive.

If you are using Grub, switch to lilo or other way around if you are using Grub. When you install Linux make sure to check that it sees windoze. Should point to something like /dev/hda.

Hope that helps.

Are you using SuSE as your distro?

 
Old 10-03-2003, 11:26 PM   #3
Fugazi
Member
 
Registered: Oct 2003
Location: Denver
Distribution: Fedora 10
Posts: 53

Rep: Reputation: 15
Total newbie here, but I have almost the setup your describing. Win98 on the first hard drive & Linux on the second. Used Lilo during the setup & it didn't mess with my Windows at all.
 
Old 10-03-2003, 11:30 PM   #4
kkathman
Member
 
Registered: Sep 2003
Location: Coppell, Texas
Distribution: SUSE 10.1, Kubuntu 6.06 (Dapper)
Posts: 81

Rep: Reputation: 15
I am interested in the thread also, as I am preparing to Load RH9 on my system. What I have is two drives, the first is a 40gb drive where Windows is installed, and the second HDD is 100GB.

I have cleaned the 100gb drive off and removed all the partitions from it, and intend on installing RH9 there, but only using maybe 30GB. The remainder I will probably format using a FAT32 format so I can share files between my Windows and Linux systems. Currently I am runninb WIN XP Pro.

I am a little bit skiddish to use GRUB, so I'd like to boot linux from a floppy. I have been through the documentation in the RH9 manual, and it isnt clear on how to create this boot floppy.

I have heard there are probs with GRUB and Windows, that it clobbers the MBR in Windows.

Im looking for guidance on what to do, and what the procedure in the normal RH9 setup I should follow.

thanks,
Kork
 
Old 10-03-2003, 11:32 PM   #5
LinuxNoobie2676
LQ Newbie
 
Registered: Oct 2003
Location: In the USA, which is good enough
Distribution: na
Posts: 5

Rep: Reputation: 0
Hello I am fresh to linux, thus the name LnuBE2676, anyhow, I too have a problem running XP and Linux RH 9.0. XP has the first whole Hard Drive to itself, and Linux is on the larger second hardive. My boot loader is Grub, and I cannot get it to map, unhide, makeactive the first harddrive, let alone boot WINXP. I dont want to lose what I have on the first hard drive, so re-installing over it for now is not a option. I tried unplugging the second hard drive to just boot xp, and then repartition the second HD, but alas grub would not let me. I was promted with a Grub cant load error. what now?
Secondly is there a way that I could reformat or erase the second hard drive through Linux 9.0? if so I would love to know, but the GRUB problem still remains. Which is how the @# to load WINXP.

pleassssse help

LINuXNooBie2676
 
Old 10-03-2003, 11:49 PM   #6
kkathman
Member
 
Registered: Sep 2003
Location: Coppell, Texas
Distribution: SUSE 10.1, Kubuntu 6.06 (Dapper)
Posts: 81

Rep: Reputation: 15
Yeah its these problems that I keep hearing about that make me a little skiddish about installing. I absolutely dont want to lose my Win system...even though I have most everything backed up..it would still be a pain to reinstall all my software..

Im a little surprised that the Linux Community would support such an unpredictable tool (at least seemingly) as GRUB, if it keeps on messing up installs.

I want to remove that option completely, and NOT change my MBR just like the first post. Im intuitively thinking that has to do with LILO...and just putting in a boot floppy that has the filesystem on it...but I assume you would have to reset the BIOS to look at the floppy first. But again...has someone installed RH9 like this...with 2 hard drives, and used a boot floppy?
 
Old 10-03-2003, 11:53 PM   #7
KenCo
Member
 
Registered: Sep 2003
Location: RI
Distribution: SuSE 9.1 pers.
Posts: 65

Rep: Reputation: 15
Thumbs up

I had the same prob. w/ W2K and SuSE


you just have to get a program called,



are you ready for this???

.
.
.
.
.
.
.
..
.
.
.

..
.
.
.
.
.
.
.

Masterbooter

http://www.masterbooter.com/main/news.php?lang=en

get a floppy and just follow the directions!


p.s. setup Linux w/ "do not modify MBR (master boot record)


Last edited by KenCo; 10-03-2003 at 11:55 PM.
 
Old 10-04-2003, 03:29 AM   #8
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
To those of you having trouble already, I say stick with GRUB. Specifically, when you modify anything in GRUB you wont have to run ANYTHING in order to reboot with your new configuration. With Lilo you will have to (even if it isnt hard to do...forgetting to use lilo properly means you wont be able to boot!)

This said, I think that I remember reading about how GRUB can trick windoze into thinking that it is on the first disk. By the way, how are your harddisks connected to your computer? Are they connected to the first and second IDEs (as I would expect)? Are they master and slave (though I doubt that this would make a difference anyway)?

Anyway, as long as your BIOS detects the harddisks on startup and as long as they arent on some funky IDE controller (like HPT 372 or something) you should be fine.

Olivier,
To be safe, when you install Linux AFTER windoze make sure to make a boot disk. Then if you cant boot into linux (on your second hd) you can use the boot to get into linux to look at the file /boot/grub.conf
Then troubleshoot. Make sure that the entries in grub.conf are indicating the proper locations to boot from. I have installed RH9 on a hd where the first partition is XP without any problems.

Take that back...following the next link you should be able to install linux and then windows:
http://www.tldp.org/HOWTO/Linux+Win9...roc.html#AEN43

I bet that this works fine with XP too.

Or here...four systems

http://www.tldp.org/HOWTO/Multiboot-with-GRUB-2.html

Or just look around in the grub manual

http://www.gnu.org/manual/grub/html_mono/grub.html

It talks about using grub to trick windows into thinking it is on the first disk. Look around in Booting.

Finally, once you get into linux you can just type grub at the command line and that will allow you to type in new entries for grub. Look at the manual and you will understand exactly what you should try.

Finally, its not hard you just have to read a bit.
 
Old 10-04-2003, 09:09 AM   #9
olivierrrrr
LQ Newbie
 
Registered: Oct 2003
Location: Toronto
Distribution: SuSE
Posts: 2

Original Poster
Rep: Reputation: 0
thanks a lot! wow i'm impressed by the feedback i get
this is cool!

well, anyways, my setup is a master/slave configuration...
was on a HPT raid controller (was in RAID 0) but i figured linux would have trouble with that. the first install screwed up my partitions on RAID 0! lol
but it's ok

i'm gonna read and try to install now!
 
Old 10-04-2003, 09:43 AM   #10
icemncmth
Member
 
Registered: Oct 2003
Distribution: RH 9.2
Posts: 39

Rep: Reputation: 15
I have XP on my first drive....and RH9 on a second drive. The only way I could get it to work properly is put XP on the A drive and Linux on the B drive...the put the boot control on Linux...Lilo works fine.. had a problem with GRUB stalling. All GRUB would do is just show GRUB. When I reloaded the next time I did as above and lilo lets me pick either Linux or Dos to load..
 
Old 10-04-2003, 09:53 AM   #11
LinuxNoobie2676
LQ Newbie
 
Registered: Oct 2003
Location: In the USA, which is good enough
Distribution: na
Posts: 5

Rep: Reputation: 0
Question WixXp,Linux rh9.0, and one frustrated man

yeah, i have the hard drives set up as master (winxp) and second with Lin9.0. I have tried this {GRUB: map (hd0) (hd1) }
{GRUB: map (hd1) (hd0) } and nothing works. I get the error error 13: Rootnoverify (hd0,0)
Chain loader +1 I have a ton of my digital photography work on the first drive and WinXp. any other ideas?




:
:scratch
 
Old 10-04-2003, 11:39 AM   #12
Kroenecker
Member
 
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
LNoobie2827

I wont guarantee but take a look here:

http://www.gnu.org/manual/grub/html_...#DOS%2fWindows

I dont know specifically how your system is set up so Im not sure, but take a look around the grub manual. The above link tells you in some detail about dealing with windows in grub. Remember you can either use the command grub to edit what is in grub.conf (this has its advantages since you can hit tab to have stuff filled in for you or available options listed as you type) or you can open grub.conf with a text editor and do it yourself.

To be honest I dont think you have to use map in order to access windows since it is on the first hardrive. Rather as the error message says you should try to use rootnoverify (hd0,0), which indicates that the system is to boot from the first partition of the first hardrive.

so you want

title DOS
rootnoverify (hd0,0)
chainloader +1
makeactive

in your grub.conf file somewhere you can enter it using grub or using a text editor like i said.

good luck!

Last edited by Kroenecker; 10-04-2003 at 11:41 AM.
 
Old 10-04-2003, 12:22 PM   #13
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
Re: Dual booting on 2 hard drives

Quote:
Originally posted by olivierrrrr
is it possible to boot an OS which is not on the promary hard drive?

i installed win xp first (with NTFS)
then went on to install linux on a second harddrive.
now, the first time i did that (and overwrote windows' boot loader) i couldn't load any OS after the install.

i reinstalled windows, re-installed linux, this time with linux on the primary hard drive.
linux boots fine, windows does not boot.

is it a requirement that windows/linux should be on the first HD?

is there any way to go around that?
also, i'd like not to change the MBR if that's possible.
You didn't have to reinstall them, the bootloader was just not there. If you put in the cd or a boot floppy to get to linux it was still there then you could of went to the bootloader config then fix everything.

Here is my /boot/grub/menu.list file for some help.

# Modified by YaST2. Last modification on Fri Sep 5 13:13:37 2003


gfxmenu (hd1,2)/boot/message
color white/blue black/light-gray
default 0
timeout 8

title Windows 2000
root (hd0,0)
makeactive
chainloader +1

title Linux
kernel (hd1,2)/boot/vmlinuz root=/dev/hdb3 hdc=ide-scsi vga=791
initrd (hd1,2)/boot/initrd

title failsafe
kernel (hd1,2)/boot/vmlinuz.shipped root=/dev/hdb3 ide=nodma apm=off acpi=off vga=normal nosmp maxcpus=0 disableapic 3
initrd (hd1,2)/boot/initrd.shipped

title floppy
root (fd0)
chainloader +1

Last edited by Edward78; 10-04-2003 at 12:27 PM.
 
Old 10-04-2003, 02:00 PM   #14
LinuxNoobie2676
LQ Newbie
 
Registered: Oct 2003
Location: In the USA, which is good enough
Distribution: na
Posts: 5

Rep: Reputation: 0
Thumbs up

Thanks Kroenecker,
I will try that, Im leaving for the movies, but when I get back I check it out. I have tried to edit the command lines in grub, but with no avail. I havent tried the commands you posted so hopefully it will work. I will keep u all posted.



LN26
 
Old 10-10-2003, 11:21 AM   #15
LinuxNoobie2676
LQ Newbie
 
Registered: Oct 2003
Location: In the USA, which is good enough
Distribution: na
Posts: 5

Rep: Reputation: 0
Hey guys,
Am I screwed if I installed Grub to the MBR, instead of the first sector if I wish to recover my files on my first hard drive? Ive tried all your suggestions, and I cannot get them to work. It just keeps saying that there is a hard drive there, but it cannot read it, or there is no parition on it.


LinuxNOOB2676
 
  


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
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 05:44 PM
Dual Booting with two Hard Drives Memzback Linux - Newbie 3 04-13-2004 10:25 AM
Dual Booting with 2 hard drives bjs Linux - Newbie 3 04-06-2004 05:39 PM
dual booting with two hard drives? free_eire Mandriva 3 02-03-2004 07:28 PM
Dual booting w/ 2 hard drives SpC Linux - Newbie 11 06-21-2002 08:48 PM

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

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