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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-29-2003, 11:43 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Rep:
|
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!
|
|
|
07-30-2003, 02:55 AM
|
#2
|
Member
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
|
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.
|
|
|
07-30-2003, 03:48 AM
|
#3
|
Member
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421
Rep:
|
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.
|
|
|
07-30-2003, 09:10 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Location: the usa
Distribution: red hat linux 9
Posts: 7
Rep:
|
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.
|
|
|
07-30-2003, 09:15 AM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: the usa
Distribution: red hat linux 9
Posts: 7
Rep:
|
ps on my sys grub lives in dev/hda0 my windoze hard drive not my mbr(master boot record)
|
|
|
07-30-2003, 02:11 PM
|
#6
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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?
|
|
|
07-30-2003, 02:22 PM
|
#7
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
"root (hd0,1)"
Isn't this referring to your swap partition?
|
|
|
07-30-2003, 02:26 PM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
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)
|
|
|
07-30-2003, 02:31 PM
|
#9
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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!
|
|
|
07-30-2003, 02:34 PM
|
#10
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
Should I set the Linux partition to (hd0,2) in my grub.conf file?
|
|
|
07-30-2003, 02:35 PM
|
#11
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
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?
|
|
|
07-30-2003, 02:40 PM
|
#12
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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).
|
|
|
07-30-2003, 02:46 PM
|
#13
|
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
It's relative to the location of the partition. I'm assuming that they're all primary.
|
|
|
07-30-2003, 02:53 PM
|
#14
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
Ah, ok then. I'll try changing it like you said then.
Thank you for your help aaa!
|
|
|
07-30-2003, 07:53 PM
|
#15
|
LQ Newbie
Registered: Jul 2003
Posts: 10
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|