Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
So I'm dual booting a machine with XP and Ubuntu. However, whenever I just turn on the computer it goes straight to XP but when I reboot or do anything after wards, then the GRUB menu shows up. The main hard drive (windows) is a SATA and the second hard drive (Linux) is an IDE set to slave. Any ideas as to why this would happen?
My current boot order is: Floppy, Cd-Rom, then hdd0. I tried changing it to hdd1 but that didn't work. Also I tried changing the setting "Boot Other Device" to enabled and disabled and that didn't seem to work. Should I try setting the IDE driver to master instead of slave?
I have a similar setup - XP is on a SATA drive and Kubuntu on an IDE drive. I put grub on the IDE drive and boot that drive first (boot order in BIOS). That way if something happens to the Linux drive, I just change the boot order to boot the SATA drive first and windows is none the wiser. The key thing this requires is for grub to make windows think it is on first drive
Here's an excerpt from my menu.lst file in /boot/grub - remember, grub is installed on the IDE drive
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Home Edition
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Distribution: Slackware64 14.2 and current, SlackwareARM current
Posts: 1,645
Rep:
I am not sure about master/slave settings -- I can only tell that I have both set to master or "cable select", but both are recognized as masters. My BIOS's boot sequence seems to put IDE (hdc in my setup) higher than SATA (sda). What looks your /boot/grub/devices.map like? It didn't matter how I changed the boot order in my BIOS, Grub set hdc as my first harddisk to hd(0).
No clue about Windows entry
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
In my BIOS the boot orders only go from hd0 up to like hd3. It's a pretty old motherboard, got it when sata was just starting off. I could have overlooked something in the BIOS but I didn't see anything.
Any idea on how to check what drive GRUB is installed on? It's been awhile since I installed it that I forgot which hard drive it is on (might be the SATA one with Windows on it).
You might have hit it with the drives - don't know how old your MB is but mine is a couple years old. My Award BIOS has, under "Advanced BIOS Features" a selection for "Hard Disk Boot Priority" where I could choose between drives or "Bootable Add-in Cards". The first, second, and third boot devices is listed separately on the "Advanced Bios Features" page and only shows Hard drive as a selection separate from optical, floppy, etc.. From my research at the time, it seems most MB's will boot the IDE controllers before any SATA controller (I assume you are using a SATA controller and not a SATA/IDEconverter connected to the IDE controller) but look around for a similar setting.
Your cold boot going to Windows without GRUB suggests your system is booting the SATA drive first unlike for most MB's (and grub is not there). But why your system picks up Grub on a "hot" reboot is inconsistent unless for some reason, it then boots the IDE drive first (Your Grub menu.lst suggests the IDE drive is booted first and that Grub is located on the IDE drive or hd0). I don't know why the boot order would change between a cold boot and a restart but that's the only thing that makes sense to me - maybe it has something to do with the IDE drive being set to slave. If it's the only drive on the controller, use the end connector on the cable and set the drive to cable select or master as suggested. Don't know if any of this helps - good luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.