Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Whats suposed to be in /boot? (file not found) [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
jamisnemo
n00b
n00b


Joined: 27 Jun 2004
Posts: 11

PostPosted: Mon Dec 10, 2007 8:48 pm    Post subject: Whats suposed to be in /boot? (file not found) [Solved] Reply with quote

Hi,

I've messed up my /boot directory and I need to try to get the default files back. Whats in there (can someone post their /boot (I'm using grub...)) and where do the files come from?

I accidently deleted the directory when I was trying to clean up some stuff left over from a slackware install...

Any help would be great!
thanks!
jamis


Last edited by jamisnemo on Mon Dec 10, 2007 9:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Mon Dec 10, 2007 8:53 pm    Post subject: Reply with quote

In /boot I have my kernels and grub. So copy your kernel again to /boot and reinstall grub and make an entry for your kernel in menu.lst
Back to top
View user's profile Send private message
jamisnemo
n00b
n00b


Joined: 27 Jun 2004
Posts: 11

PostPosted: Mon Dec 10, 2007 9:11 pm    Post subject: Reply with quote

I've tried reinstalling grub but since grub is able to boot, there's gotta be something else missing from the directory.
here's my listing of /boot:

Code:

livecd boot # ls
grub     kernel-2.6.22-hardened-r8
livecd boot #


shouldn't there be a link back to /boot using some link? like:
boot -> .

how would I make this link?

Thanks for the reply!
jamis[/code]
Back to top
View user's profile Send private message
hoacker
Guru
Guru


Joined: 04 Aug 2007
Posts: 505
Location: Bürstadt, Germany

PostPosted: Mon Dec 10, 2007 9:13 pm    Post subject: Reply with quote

Just follow the handbook, chapters:
- Configuring the kernel
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap7
- Configuring the bootloader
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap10

...and everything should be fine again.
Back to top
View user's profile Send private message
jamisnemo
n00b
n00b


Joined: 27 Jun 2004
Posts: 11

PostPosted: Mon Dec 10, 2007 9:22 pm    Post subject: [solved!] Reply with quote

Ah ha! I got it!

I think that because the link back to boot was missing i had to change the location of the kernel from:

kernel /boot/kernel-2.6.22-hardened-r8 root=/dev/hda3

to

kernel /kernel-2.6.22-hardened-r8 root=/dev/hda3


this is the second time I've had to make such a change so if you're having problems with grub not being able to find a file, try this.


I'll change the original post to [SOLVED]

but if I could get some info on making that boot link I'd be pretty happy. Thanks!

jamis
Back to top
View user's profile Send private message
hoacker
Guru
Guru


Joined: 04 Aug 2007
Posts: 505
Location: Bürstadt, Germany

PostPosted: Mon Dec 10, 2007 9:51 pm    Post subject: Re: [solved!] Reply with quote

jamisnemo wrote:

I think that because the link back to boot was missing i had to change the location of the kernel from:
kernel /boot/kernel-2.6.22-hardened-r8 root=/dev/hda3
to
kernel /kernel-2.6.22-hardened-r8 root=/dev/hda3
[...]
but if I could get some info on making that boot link I'd be pretty happy. Thanks!


You don't really need this link but you can create it with these commands:
Code:
cd /boot
ln -s . boot
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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