View previous topic :: View next topic |
Author |
Message |
damoncf Guru
Joined: 05 Oct 2004 Posts: 388 Location: US OH
|
Posted: Fri Feb 08, 2008 11:19 pm Post subject: grub missing files [solved] |
|
|
I am attempting to compile another kernel and install it but cannot find my menu.lst file or any other file in the /boot directory that has to do with grub.
For the record here is the current output of my /boot directory
Code: |
Damon boot # ls -la
total 8352
drwxr-xr-x 2 root root 4096 Feb 8 17:19 .
drwxr-xr-x 20 root root 4096 Jan 25 11:34 ..
lrwxrwxrwx 1 root root 27 Feb 8 17:19 System.map -> System.map-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 1332708 Feb 8 17:19 System.map-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 1332708 Feb 8 17:15 System.map-2.6.23-gentoo-r6.old
lrwxrwxrwx 1 root root 31 Feb 8 17:19 System.map.old -> System.map-2.6.23-gentoo-r6.old
lrwxrwxrwx 1 root root 1 Feb 1 16:43 boot -> .
lrwxrwxrwx 1 root root 23 Feb 8 17:19 config -> config-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 37134 Feb 8 17:19 config-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 37134 Feb 8 17:15 config-2.6.23-gentoo-r6.old
lrwxrwxrwx 1 root root 27 Feb 8 17:19 config.old -> config-2.6.23-gentoo-r6.old
lrwxrwxrwx 1 root root 24 Feb 8 17:19 vmlinuz -> vmlinuz-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 2885624 Feb 8 17:19 vmlinuz-2.6.23-gentoo-r6
-rw-r--r-- 1 root root 2885624 Feb 8 17:15 vmlinuz-2.6.23-gentoo-r6.old
lrwxrwxrwx 1 root root 28 Feb 8 17:19 vmlinuz.old -> vmlinuz-2.6.23-gentoo-r6.old
|
I was able to use make install and it found grub no problems. I guess what I want to know is will I be safe to reboot even though i cannot find those files?
Damon
Last edited by damoncf on Sat Feb 09, 2008 8:07 pm; edited 1 time in total |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Feb 08, 2008 11:33 pm Post subject: |
|
|
I have to ask: are you sure /boot is currently mounted? _________________ "You have to invite me in" |
|
Back to top |
|
|
damoncf Guru
Joined: 05 Oct 2004 Posts: 388 Location: US OH
|
Posted: Sat Feb 09, 2008 2:22 am Post subject: |
|
|
Still mounted :
Code: |
Damon / # mount /boot
mount: /dev/hda1 already mounted or /boot busy
mount: according to mtab, /dev/hda1 is already mounted on /boot
|
Damon |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Feb 09, 2008 5:22 am Post subject: |
|
|
Can you post the result of the command mount as a root user. |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Feb 09, 2008 7:19 am Post subject: |
|
|
Also, what's in the /boot directory when the /boot partition is not mounted?
Is it possible /boot wasn't mounted when grub was installed? _________________ "You have to invite me in" |
|
Back to top |
|
|
damoncf Guru
Joined: 05 Oct 2004 Posts: 388 Location: US OH
|
Posted: Sat Feb 09, 2008 8:01 pm Post subject: |
|
|
I still dont know what exactly happend but I was forced to reboot and it rebooted fine. Although I am still unable to find those files.
Damon |
|
Back to top |
|
|
damoncf Guru
Joined: 05 Oct 2004 Posts: 388 Location: US OH
|
Posted: Sat Feb 09, 2008 8:07 pm Post subject: |
|
|
I just mounted it and did a ls -la and the grub folder was there.
Thanx
Damon |
|
Back to top |
|
|
Darth Marley Tux's lil' helper
Joined: 25 Jan 2007 Posts: 107
|
Posted: Wed Feb 27, 2008 9:32 pm Post subject: |
|
|
Hopeless wrote: | Also, what's in the /boot directory when the /boot partition is not mounted?
Is it possible /boot wasn't mounted when grub was installed? |
I am chasing down some errors that became noticeable since the attempt to upgrade the kernel.
I have discovered that this is exactly what happened. That when /boot is "not mounted" (separate partition hdb1) there is the /boot/grub/grub.conf and the previous kernel in the non-mounted, yet still there directory.
I renamed the "unmounted" /boot to /boot1 and now get an Error 15.
Any suggestions on what to do going forward?
Should it work if I chroot in and run grub again, root & setup from the properly mounted /boot directory? |
|
Back to top |
|
|
BradN Advocate
Joined: 19 Apr 2002 Posts: 2391 Location: Wisconsin (USA)
|
Posted: Wed Feb 27, 2008 10:33 pm Post subject: |
|
|
Yeah, it should work fine then. |
|
Back to top |
|
|
|