Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-19-2004, 12:41 PM   #1
Registered: May 2004
Location: Tacoma, Wa
Distribution: Gentoo
Posts: 94

Rep: Reputation: 15
Cannot cp the bzImage. Help plz first time compiling kernel

this is my first time trying to compile the kernel myself. Im using Gentoo. When i try

livecd linux # ls arch/i386/boot/bzImage

livecd linux# cp arch/i386/boot/bzImage /boot/linux-2.6.7-gentoo
cp: cannot create regular file '/boot/linux-2.6.7-gentoo' : No such file or directory.

Does anyone know what i need to do? Im logged in as root. i get the same error if i try to mkdir in /boot
Old 07-19-2004, 12:49 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Does /boot exist and is it writable? Can you post the output from:
ls -l /
Old 07-19-2004, 12:59 PM   #3
Registered: May 2004
Location: Tacoma, Wa
Distribution: Gentoo
Posts: 94

Original Poster
Rep: Reputation: 15
its there this is what i get with

livecd /# ls -l

dr-xr-xr-x 42root root 0 Jul 19 07:38 boot

livecd /# mount
warning can't open /etc/mtab: No such file or directory

Last edited by sendas4; 07-19-2004 at 01:19 PM.
Old 07-19-2004, 09:06 PM   #4
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
Try to post "cat /proc/mounts"
Old 07-19-2004, 10:33 PM   #5
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
I have been playing with gentoo for about 2 months,it is something else,one thing I know you need to do is make your /ect/fstab,good luck I play around with it when I want to beat myself up.
Old 07-19-2004, 11:23 PM   #6
Registered: May 2003
Location: The States
Distribution: Gentoo
Posts: 245

Rep: Reputation: 30
It looks as if you are unable to write to /boot at this time. You probably should do a chmod 7?? ... I dont know what the appropriate setting is. Maybe 755. Just make sure that when you ls -lah /boot you see that root has permission to write to the directory ie drwx and not dr-x. That should solve your problem.
Old 07-20-2004, 12:48 AM   #7
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
I don't know if anyone else has noticed, but the prompts given have "livecd" in them. That's an awfully weird username or system name... unless of course the system is running off a CD-based distribution. Live CDs run in a read-only filesystem, which also seems to make sense.

If you are running in a CD-based version of Linux, then you probably shouldn't be compiling a kernel anyway. There are at least two problems with this:
1. The filesystem is read-only; even if you made it read-write, the whole filesystem is in RAM, and it would not survive a reboot. You could never test your new kernel.
2. Even if you mounted your /boot filesystem as read/write, chances are good the files on your hard drive and the ones on CD are different. Compiling a kernel with the CD's system files & environment and placing it on your hard disk probably will not work

If your doing this for practice, then consider the attempt successful. You will only be able to finish the installation running on your normal setup (i.e. not from a live CD).

If you are running from the hard drive, my mistake. It's just odd to see "livecd" and have a read-only /boot filesystem on a "normal" installation.

I'm not familiar with Gentoo... If you compile the kernel as part of the install process, then point #2 no longer applies. In that case, you would need to copy bzImage to the mount point for you hard drive /boot filesystem; not the /boot that the Gentoo install CD uses.

Last edited by Dark_Helmet; 07-20-2004 at 12:50 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a Kernel for the first time? RodWC Debian 12 10-31-2005 06:55 AM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 04:14 PM
Problems compiling kernel (make bzImage) omegaworks Linux - General 3 08-18-2004 06:54 PM
compiling kernel/first time...issue wr3ck3d Linux - General 3 02-28-2003 09:27 PM
Compiling the kernel...bzImage.. celtic32 Linux - General 11 08-28-2002 02:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration