View previous topic :: View next topic |
Author |
Message |
martoni Apprentice
Joined: 16 Jan 2004 Posts: 244 Location: Tyresö, Sweden
|
Posted: Sat Apr 17, 2004 5:08 pm Post subject: More grub problems (weird one) |
|
|
I having a weird (at least I think so) problem with grub.
What is displayed in the boot menu doesn't correspond to what is in /boot.
My grub.conf looks like this:
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 3
# Nice, fat splash-image to spice things up
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo 2.4.26
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel (hd0,0)/kernel-2.4.26 root=/dev/hda3 acpi=on
The files in /boot is:
-rw-r--r-- 1 root root 637215 Mar 6 08:12 System.map-2.4.22ny
-rw-r--r-- 1 root root 656355 Apr 17 15:34 System.map-2.4.26
-rw-r--r-- 1 root root 39208 Mar 6 08:12 config-2.4.22ny
-rw-r--r-- 1 root root 37132 Apr 17 15:34 config-2.4.26
drwxr-xr-x 2 root root 168 Apr 17 17:53 grub
-rw-r--r-- 1 root root 1355304 Mar 6 08:12 kernel-2.4.22ny
-rw-r--r-- 1 root root 1375360 Apr 17 15:34 kernel-2.4.26
But none of the kernels appear in the Grub boot menu (after boot) which lists
kernel-2.4.22-gentoo-r7 and kernel-2.4.22nat, neither of which I can find on the box.
The boot line in the menu however, points to kernel-2.4.26
which grub fails to find.
The title on the boot menu is also incorrect stating Gentoo 2.4.22.
Any suggestions on how to sort this?
/M. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Apr 17, 2004 5:36 pm Post subject: |
|
|
martoni,
Did you remember to mount the boot partition on /boot before you coped the files?
Otherwise all the files go into the /boot directory on the root filesystem, whic is /dev/hda3, not /dev/hda1.
Look in /boot with and without /dev/hda1 mounted. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
martoni Apprentice
Joined: 16 Jan 2004 Posts: 244 Location: Tyresö, Sweden
|
Posted: Sat Apr 17, 2004 8:20 pm Post subject: |
|
|
OK, I'll look.
How do I fix it if that's the problem?
/M. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sat Apr 17, 2004 8:28 pm Post subject: |
|
|
martoni,
Copy the files from the unmouted /boot to a temporary location
Mount /boot
Copy the files from the temporary location to the mounted /boot
When boot is mouted it will have a lost+found directory, which will be missing when /boot is not mounted. lost+found is created in the top level of every partition fo fsck to put recovered file fragments into. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
martoni Apprentice
Joined: 16 Jan 2004 Posts: 244 Location: Tyresö, Sweden
|
Posted: Sun Apr 18, 2004 3:55 am Post subject: |
|
|
Yeah, I figured that out once I saw the problem.
I had forgotten to add /dev/hda1 to mtab ....
Interesting effect though .... how to hide files on the computer and so on.
Thanks,
Martin S. |
|
Back to top |
|
|
|