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-29-2003, 11:43 PM   #1
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Rep: Reputation: 0
Installed Windows and Linux, but can't configure Dual Boot


Hi,

I'm pretty new to this, so bear with me. I originally had only a windows based machine. I partitioned my hard drive into 3 parts using partition magic. The partitions come in the following order:

"Windows" "Linux swap" "Linux"

I then installed Linux into the Linux partition, creating no further partitions. I installed GRUB during the Linux installation. When I turn the machine on, GRUB loads and asks me what partition to load, however only one of the two OS partitions is able to load if selected, the other does nothing. I can manually set the partition that I want to load active by using the partition magic rescue disks, but then only that partition will be bootable from GRUB.

I have been doing a little reading, and I think my problem may have something to do with not having a boot partition.

I later installed boot magic, but it has the same problem as GRUB.

How can I make my system dual boot properly? (A detailed explanation for a newbie would be much appreciated )

Thank you!
 
Old 07-30-2003, 02:55 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
I'm not sure if I understand you correctly, so bear with me if I'm wrong. Do you mean that your system won't dual boot, as in boot both systems at the same time? If so, then your system is fine. Dual boot means to be able to boot one system or another, on the same machine.

If I'm reading that wrong, and you mean you can only boot one operating system unless you reconfigure grub, then I'm sorry, I don't know what to do about that. However, I'm pretty sure that not having a /boot is not that problem.

A little more help on what version of windows, which linux distro, and the type of hardware you are using might help to fix your problem.
 
Old 07-30-2003, 03:48 AM   #3
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Which distribution are you using? I think GRUB should have no trouble booting windows and linux. Post your /boot/grub/grub.conf or /boot/grub/menu.lst here so that we can hav a better look on the problem.

Quote:
however only one of the two OS partitions is able to load if selected
Which is able to load and which is not?

Last edited by koyi; 07-30-2003 at 03:50 AM.
 
Old 07-30-2003, 09:10 AM   #4
n3w27inux
LQ Newbie
 
Registered: Jul 2003
Location: the usa
Distribution: red hat linux 9
Posts: 7

Rep: Reputation: 0
i run both rh9 and win 98 II on the same comp and grub v 0.93 and it works fine . do you have xp? ive heard that xp wont allow you to install another os.
 
Old 07-30-2003, 09:15 AM   #5
n3w27inux
LQ Newbie
 
Registered: Jul 2003
Location: the usa
Distribution: red hat linux 9
Posts: 7

Rep: Reputation: 0
ps on my sys grub lives in dev/hda0 my windoze hard drive not my mbr(master boot record)
 
Old 07-30-2003, 02:11 PM   #6
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Here is my grub.conf file

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=LINUX hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Windows
rootnoverify (hd0,0)
chainloader +1




Any suggestions?
 
Old 07-30-2003, 02:22 PM   #7
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
"root (hd0,1)"
Isn't this referring to your swap partition?
 
Old 07-30-2003, 02:26 PM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
If your swap partition is sandwiched between your Windows and Linux partitions like you said, it would be (hd0,1). Your Linux partition should be (hd0,2)
 
Old 07-30-2003, 02:31 PM   #9
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Clarification

Sorry about being unclear. I now have Win 98 SE and Linux Red Hat 9 on my hard drive.

If I use partition magic to set my windows partition active, then reboot, GRUB comes up and asks me if i want to boot Linux or Windows. If I select windows, it boots fine. However if I instead try to boot Linux, Linux won't boot at all.( I am not trying to run the two OS at the same time).

The converse is also true. If I manually set the Linux partition active with partition magic, then it will be bootable from GRUB, but windows will not be.

Any suggestions?

Thanks!
 
Old 07-30-2003, 02:34 PM   #10
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Should I set the Linux partition to (hd0,2) in my grub.conf file?
 
Old 07-30-2003, 02:35 PM   #11
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Try switching all references to (hd0,1) in grub.conf to (hd0,2), and make your windows partition active. Why would your booting stuff be on your swap partition?
 
Old 07-30-2003, 02:40 PM   #12
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Is the partition Numbering scheme based on location of the partition relative to the beginning of the drive, or the order in which the partitions were created?

If it's based on the order of partition creation, then Linux is (hd0,1) and the swap is (hd0,2). If it's based on the order of the partitions relative to the beginning of the drive then Linux is (hd0,2) and the swap is (hd0,1).
 
Old 07-30-2003, 02:46 PM   #13
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
It's relative to the location of the partition. I'm assuming that they're all primary.
 
Old 07-30-2003, 02:53 PM   #14
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
Ah, ok then. I'll try changing it like you said then.

Thank you for your help aaa!
 
Old 07-30-2003, 07:53 PM   #15
albert106
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
It didn't work

Well, I tried your suggestion aaa, but now Linux isn't bootable at all, regardless of whether I set it's partition active manually or not.

In fact, when I turn the comp on a little line at the top of the page says "loading grub" but then grub doesn't load. I can still get into windows if I manually set the windows partition active, but there's no GRUB menu anymore.

Problem now is that, since I can't boot Linux, I can't change my grub.conf file back to the way it was.

What should I do?

Thanks
 
  


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
Dual Boot With Linux Already Installed computergee Linux - Newbie 13 02-05-2005 12:32 PM
Configure grub (dual boot) with 2 OP installed already fere Linux - Newbie 2 06-07-2004 10:58 PM
Has anybody successfully installed a windows/linux dual boot system on a Compaq PC? bugsbunny Linux - Newbie 16 04-03-2004 01:24 PM
Dual Boot, linux already installed primal Linux - Newbie 2 01-19-2004 06:35 PM
Dual-boot with Windows, installed Linux first trusted_content Linux - General 10 06-06-2003 01:38 PM

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

All times are GMT -5. The time now is 01:46 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