Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub /bzImage works but /boot/bzImage dont??
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
Crazy
n00b
n00b


Joined: 02 Jan 2003
Posts: 22

PostPosted: Thu May 01, 2003 1:28 am    Post subject: Grub /bzImage works but /boot/bzImage dont?? Reply with quote

I setup gentoo recently.. it works fine so far but weird thing is
that w/grub i have to make it /bzImage not /boot/bzImage ??

anywho just curious why, i followed the directions to the T.

thanks guys
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Thu May 01, 2003 1:42 am    Post subject: Reply with quote

The /boot part of the path only applies when your /boot partition is mounted.
When GRUB is loading the kernel, nothing has been mounted yet, and (hd0,0) is not called /boot yet.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Thu May 01, 2003 2:04 am    Post subject: Reply with quote

You should have a symlink going from /boot/boot to /boot that is created by the baselayout emerge. This will let grub find /boot/<bzImage...> correctly. However, if you mounted /boot after emerging baselayout, the symlink will be in the /boot directory and will be "hidden" by the /boot partition that is subsequently mounted.
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 652
Location: Wisconsin

PostPosted: Thu May 01, 2003 2:10 am    Post subject: Reply with quote

Indeed. If you followed the install docs, which it sounds like you did, you made a separate /boot partition. We'll say it's hd0,0 (as grub sees it) for simplicity's sake. When you installed the kernel, you had /boot mounted, but since it is a separate partition, it was placed at the base of that partition (not inside a subdirectory). This is kind of confusing if you don't already get what I'm talking about.
bzImage isn't inside a subdirectory on that partition. If you wanted to for some reason, you could mount it as /asdf/ and you'd have a nice /asdf/bzImage

This is why /boot/bzImage isn't what goes in grub. You have this specific partition declared in grub, so when grub looks there, it doesn't have to go inside a /boot to find the kernel image.

Had you decided you didn't want a separate partition for /boot, you would configure grub to use your / partition, in which case it would have to go inside the /boot subdir to find the kernel.undefined
Back to top
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Thu May 01, 2003 6:44 am    Post subject: Reply with quote

the simplest way around it is to not put the /boot in your kernel command line

Code:
kernel (hd0,0)/bzImage root=/dev/hda3


Or fix the symlink.


Brian
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