View previous topic :: View next topic |
Author |
Message |
Crazy n00b
Joined: 02 Jan 2003 Posts: 22
|
Posted: Thu May 01, 2003 1:28 am Post subject: Grub /bzImage works but /boot/bzImage dont?? |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Thu May 01, 2003 1:42 am Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Thu May 01, 2003 2:04 am Post subject: |
|
|
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 |
|
|
bssteph l33t
Joined: 26 Feb 2003 Posts: 652 Location: Wisconsin
|
Posted: Thu May 01, 2003 2:10 am Post subject: |
|
|
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 |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Thu May 01, 2003 6:44 am Post subject: |
|
|
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 |
|
|
|