PDA

View Full Version : Crazy GRUB??



Luis
11th December 2010, 06:15 PM
Hi folks,
I'm having a strange behaviour with GRUB, and I don't know much about it.
The problem is that GRUB is looking at the wrong place when it starts.

I have a /boot partition (/dev/sda1) with everything for booting and grub. This gets updated when I update, say, the kernel, grub, etc.
But I also have a /backups partition (/dev/sda4) with a directory /backups/boot/grub that is a copy of /boot/grub. The /backups/boot directory only has the /backups/boot/grub directory, not the kernels, etc.

If I delete the /backups/boot/grub directory, I get a "grub>" console at startup, and system doesn't boot.

SO: Why is grub looking at /backups/boot/grub instead of /boot/grub and how can I fix this?

This is my grub.conf, identical in both directories, and both pointing to /boot=/dev/sda1=(hd0,0):

================================================== ==
# grub.conf generated by anaconda
default=0
timeout=5
hiddenmenu
title Fedora (2.6.34.7-63.fc13.i686.PAE)
root (hd0,0)
kernel /vmlinuz-2.6.34.7-63.fc13.i686.PAE [...]
initrd /initramfs-2.6.34.7-63.fc13.i686.PAE.img
================================================== ==


and this is my device.map:
================================================== ==
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
================================================== ==

Thanks a lot for your help!!!
Cheers,
L.

fvangeirt
11th December 2010, 06:29 PM
To which file is the /boot/grub/menu.lst file linked?

sfystone
11th December 2010, 07:02 PM
It's crazy to do backup as cut and copy back.
Did that really happen?

Luis
11th December 2010, 09:15 PM
To which file is the /boot/grub/menu.lst file linked?

lrwxrwxrwx 1 root root 9 Oct 29 00:52 /boot/grub/menu.lst -> grub.conf

Thanks,
L.

---------- Post added at 05:20 PM ---------- Previous post was at 05:19 PM ----------


It's crazy to do backup as cut and copy back.
Did that really happen?

Sorry, I didn't understand your question...
I probably did some grub thing a while ago, and made a backup of the whole /boot partition in my /backups directory. Then, for some reason, GRUB is working with that one...

Thanks,
L.

---------- Post added at 06:13 PM ---------- Previous post was at 05:20 PM ----------

Never mind. I reinstalled grub in sda, and now works fine.

Thanks!!!
L.