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.
I have 2 harddrives. One has Windows XP on it, the other is blank. I installed Fedora Core 4 on the blank one tonight, and told it to install grub as the bootloader. After the installation, which said everything went fine, I rebooted my system. Upon doing this, my system simply booted into Windows as if nothing had changed, and upon holding some keys(such as F8, F9, etc.) I found that grub would simply not come up. What might the key to go into grub upon boot be(in case I just didn't hold the right one), and if that's not the problem, does anyone have any ideas?
Did you install grub on the right drive? It has to go on the FIRST drive (where windows is). If you didn't install it on the right one you have two options. One is to simply reinstall fedora. The other is to use a live distro and install grub manually.
The first harddrive would be hda ......... and the second one hdb........the partitions are hda/n where could be the partition number ex: hda1
Just in case you where wondering
I don't suppose changing the drive with FC4 on it to the master drive would help?
If not, then I'd like to address adz's first suggestion. How would reinstalling FC4 help? Would I need to tell it this time during the installation to put grub on the Windows drive? If so, how would I go about doing that?
I don't suppose changing the drive with FC4 on it to the master drive would help?
It might. It depends on how Fedora/GRUB was installed.
Quote:
How would reinstalling FC4 help? Would I need to tell it this time during the installation to put grub on the Windows drive? If so, how would I go about doing that?
Well I've never installed Fedora but in Debian it gives you the option of how (and where) you'd like to install grub. In this case you'd select to put GRUB on the master boot record on the first had drive. I would have thought that Fedora would ask you a similar question. That's all the reinstall of Fedora would achieve.
You probably chose to install grub to the root of the partition you were installing FC4 into. It's there, but the only way to access it is via a boot disk, or the install cd. You should have chosen the option to write grub to the MBR (the Master Boot Record) of the primary hard disk.
In that case, I beleive that FC is sufficiently well developed that it would have written a grub.conf to allow you to see in the grub menu, both FC and XP, and use the up/down arrow keys to select which to boot. Then press enter to boot that OS.
You have the option of either reinstalling FC, or boot from installation media, then re-install grub to write to the MBR. However, doing that after-the-fact probably will not re-write the grub.conf to include XP. You will probably have to do that manually.
If you haven't done a whole lot of configs in FC, I'd say reinstall, CAREFULLY, and watch for the option to write grub to the MBR, and let it write the grub.conf to include XP.
I tried running a repair thing(instead of reinstalling) and telling it to install grub to the MBR, but after going through all its things, it told me that it failed. I'll try actually reinstalling it tonight and get back to you. Thanks for the help by the way you guys xD
Ok, I reinstalled FC4 last night and told it in the advanced bootloader options to put it on the MBR(it was already doing this by default anyway), but it hasn't changed anything. I guess my next thing to try will be to get into FC4 via the install CD, how would I go about doing this?
EDIT: Ok, I tried switching my drives(making the slave the master and vice versa), but when I booted, my system didn't even detect my drives anymore ><
So, I switched them back and they were detected just fine.
Last edited by Dark_Oppressor; 10-28-2005 at 12:50 PM.
Well, let's try some command-line trickery to see if we can fix this thing.
Boot into FC from the installation cd: it should offer you a choice of booting from hard disk, rescue mode, and other choices. Choose one that get's you into FC.
Open a term window, type grub, and press enter, to get to the grub prompt.
Then enter this command:
grub> find /boot/grub/stage1 #grub> is the grub prompt. don't type that part.
It should return something like:
(hd1,0) #because grub is installed on the second disk, first partition.
Now type:
setup (hd0) # to write the grub first stage to the MBR of the master (first) drive.
It should return:
Run "embed /boot/grub/e2fs_stage1_5 (hd0)"
16 sectors are embedded.
Run "install /boot/grub/stage1 d (hd0) (hd0)1+16 p (hd1,0)/boot/grub/stage2"
Now inspect your grub.conf. Make sure the beginning of the kernel line reads something like:
kernel (hd1,0)/vmlinuz root=/dev/hdb1 , followed by other boot options.
Hopefully, that will get grub working: stage 1 in the MBR, with directions where to find the rest of itself.
Last edited by bigrigdriver; 10-28-2005 at 05:15 PM.
I tried what you mentioned, and once I've booted from the install CD I can only find a way to get into Linux Rescue or the installer. I was unable to find any way to boot in FC.
To be honest I would have just used the grub-install command and not bothered with all the tedious mucking about in the grub prompt. It's obvious that grub's not even installed (in the MBR) since windows boots. If grub was installed - but incorrectly - then your system wouldn't be bootable at all.
Try, for example, the command grub-install /dev/hda from the command prompt (not the grub prompt). I would have thought that was all that was necessary. Check that your /boot/grub/menu.lst file is what you want it to be. It's no biggie if it isn't entirely correct or complete as you can boot from the rescue disc any (and as many) time(s) as you want.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.