Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub missing files [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Fri Feb 08, 2008 11:19 pm    Post subject: grub missing files [solved] Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Feb 08, 2008 11:33 pm    Post subject: Reply with quote

I have to ask: are you sure /boot is currently mounted?
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Sat Feb 09, 2008 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Feb 09, 2008 5:22 am    Post subject: Reply with quote

Can you post the result of the command mount as a root user.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Feb 09, 2008 7:19 am    Post subject: Reply with quote

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
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Sat Feb 09, 2008 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
damoncf
Guru
Guru


Joined: 05 Oct 2004
Posts: 388
Location: US OH

PostPosted: Sat Feb 09, 2008 8:07 pm    Post subject: Reply with quote

I just mounted it and did a ls -la and the grub folder was there.

Thanx
Damon
Back to top
View user's profile Send private message
Darth Marley
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2007
Posts: 107

PostPosted: Wed Feb 27, 2008 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Wed Feb 27, 2008 10:33 pm    Post subject: Reply with quote

Yeah, it should work fine then.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum