PDA

View Full Version : Grub Problems


Collins
31st March 2005, 03:25 AM
Hi all,
I recently obtained a FC3 box which had a 5400rpm hard-drive (primary) and a 7200rpm hard-drive (secondary), so all the system stuff was running off the slower hard-drive. Everything was configured well, grub was fine, with about 3 kernels listed in it (in /boot/grub/grub.conf). I decided to switch the hard-drives around and reinstall FC3 for performance reasons. During install I said remove all partitions on this system, and then said yes to all the partitioning defaults after that (i'm pretty sure all the boot stuff was being put on hda). Install was successful, but now there is no /boot/grub/ folder! I've searched arond everywhere (even with $locate grub) and can't find any grub settings at all. I've downloaded the latest kernel via up2date which sits in /boot but it hasn't been added to grub and I can't find the configuration files to adjust this! Anybody got any ideas?

Thanks in advance!
:)

sailor
31st March 2005, 04:43 AM
I am not quite following what you are asking..but the grub entries are in the mbr of the slower disk which you removed...upon reinstalling FC3 on the faster dirve, it should have specifically asked if you wanted to install grub(and would have put the grub on that HD's mbr)...
To install grub on the 1st HD use the following instructions:

1) Boot with your Fedora Core rescue disk or CD1.
2) Type "linux rescue" at the prompt.
3) Answer the questions about keyboard and language.
4) Tell the rescue mode to mount your FC3 partition
5) When you come to the console prompt type: chroot /mnt/sysimage
6) Run /sbin/grub-install /dev/hda
This command will install GRUB boot loader on the Master Boot Record (MBR) of the first drive.

BAshworth
31st March 2005, 05:18 AM

but the grub.conf file should still be in /boot/grub. No matter where grub itself is actually installed. Is there a link to it in /etc/ ?

Collins
31st March 2005, 05:21 AM
Theres a symbolic link to grub.conf in /etc/ but it points to nothing.

I tried your suggestion sailor.
This created /boot/grub. I added another entry to grub.conf, rebooted, but grub is still reading some other configuration file (from the old mbr?). Which means I cannot change kernel, it will only boot the standard FC3 one. Infact in my /boot/ only the ones I have downloaded are there - not the one which is being booted.

Collins
31st March 2005, 08:40 AM
Just did a reinstall, wiped the partitions and had the installer redo them to the defaults. Made sure that the mbr was going on hda etc etc. All boots up fine.. except now there is nothing at all in /boot :mad:
Any ideas??

Collins
31st March 2005, 09:32 AM
Ok I managed to solve the problem. It was a label problem, exactly the same as this users problem:
https://www.redhat.com/archives/fedora-list/2003-November/msg06724.html
Simply changed the label on hdb1 to /oldboot and all was fixed again! :)