Installed Windows and Linux, but can't configure Dual Boot
Linux - NewbieThis 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.
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.
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 )
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.
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
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.
# 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
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)
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.
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?
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).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.