View previous topic :: View next topic |
Author |
Message |
aftershock n00b
Joined: 11 Mar 2003 Posts: 5
|
Posted: Tue Mar 11, 2003 8:32 pm Post subject: What exaclty is /boot/bzImage ? |
|
|
I tried to install Gentoo with Grub bootloader, and grub keeps complainig that kernel (hd0,0) /boot/bzImage root=/dev/hda3
Error 1: Filename must be either an absolute pathname or blocklist
well I booted off the liveCD and checked my /boot/ and I fail to see bzImage in there so I think thats whats cuasing my problems.
So I was wondering what is this bzImage and how do I create one?
I ran though the install gentoo install tutorial so I thought I had everything down.
Thanks, |
|
Back to top |
|
|
steveb Advocate
Joined: 18 Sep 2002 Posts: 4564
|
Posted: Tue Mar 11, 2003 8:35 pm Post subject: |
|
|
hello
bzImage is a bzip compressed kernel.
to get it, you need to download the kernel sources (read the gentoo documentation to see how to do that) and then you need to configure and compile that kernel sources (once again... read the install documentation found at the gentoo.org homepage).
cheers
SteveB |
|
Back to top |
|
|
aftershock n00b
Joined: 11 Mar 2003 Posts: 5
|
Posted: Tue Mar 11, 2003 8:43 pm Post subject: |
|
|
would this require me to run
emerge sys-kernel/gentoo-sources
then
# cd /usr/src/linux
# source /etc/profile
# make menuconfig
# make dep && make clean bzImage modules modules_install
# cp /usr/src/linux/arch/i386/boot/bzImage /boot
I ran though this already, and I would find it strange that bzImage was not created the first time I ran it. |
|
Back to top |
|
|
AkiAki007 Apprentice
Joined: 07 Feb 2003 Posts: 150 Location: New York, NY
|
Posted: Tue Mar 11, 2003 8:53 pm Post subject: |
|
|
I suspect if you've already done the whole Grub thing, you've already downloaded and configured and compiled your own kernel (at least once). Yes? No?
Also, do you have a seperate /boot partition in your hard drive? or is everything installed onto one big partition?
It matters, because by default your /boot partition will not be mounted and you will see nothing in the directory, and in order to see the contents of it, you have to mount the partition.
The code you posted is what you have to do to download/configure/compile/copy the kernel into the proper place and boot up into your system. But I just want to make sure that you don't do something that's not needed, and that you don't install your kernel into something that you will not be accessing. |
|
Back to top |
|
|
aftershock n00b
Joined: 11 Mar 2003 Posts: 5
|
Posted: Tue Mar 11, 2003 8:58 pm Post subject: |
|
|
I did download and compile the kernel, I am just not where to installed it to now since I thought /boot/ was the default.
I currently have 3 partitions, boot swap and a root.
Oh and yes, when I booted off the LiveCD, I did mount my boot partition inorder to check for the bzImage, which I could not find.
Update:
Okay so I recompiled my kernel and copied it over to my /boot partition, however grub is still having a fit and saying
"Error 15: File not found" even though the file bzImage is clearly there. I even used chmod 777 on that file just in case some properties of it where different.
Last edited by aftershock on Tue Mar 11, 2003 10:14 pm; edited 1 time in total |
|
Back to top |
|
|
aftershock n00b
Joined: 11 Mar 2003 Posts: 5
|
Posted: Tue Mar 11, 2003 9:58 pm Post subject: |
|
|
sorry about the 2x post |
|
Back to top |
|
|
herring Apprentice
Joined: 22 Jul 2002 Posts: 187 Location: Norway
|
Posted: Tue Mar 11, 2003 11:06 pm Post subject: |
|
|
aftershock wrote: |
Okay so I recompiled my kernel and copied it over to my /boot partition, however grub is still having a fit and saying
"Error 15: File not found" even though the file bzImage is clearly there. I even used chmod 777 on that file just in case some properties of it where different. |
3 suggestions:
1) Did you remember to mount /boot this time?
Try ls -lag /boot
Code: |
bash-2.05b# mount /boot
bash-2.05b# ls -lag /boot
total 774
drwxr-xr-x 4 root 120 Mar 6 20:49 .
drwxr-xr-x 17 root 384 Mar 5 22:12 ..
lrwxrwxrwx 1 root 1 Mar 5 22:12 boot -> .
-rw-r--r-- 1 root 788760 Mar 6 20:49 bzImage
drwxr-xr-x 2 root 480 Mar 9 11:45 grub
|
See, bzImage is located inside /boot, and there is a grub directory there as well
2) look at the symlink
Got that one ?
This symlink points back to /boot
so it doesn't matter if a) /boot is on own partition (your choice) or b) if it's a ordinary directory of / (not your choice)
Having an own boot partition makes
kernel (hd0,0)/bzImage root=/dev/hda3
the correct syntax
But with that symlink installed
kernel (hd0,0)/boot/bzImage root=/dev/hda3
would be correct for both case a) AND b)
3) It could be a typo, but make sure you don't have an extra space between (hd0,0) AND /boot
It should read
kernel (hd0,0)/boot/bzImage root=/dev/hda3 |
|
Back to top |
|
|
|