LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 07-19-2004, 01:41 PM   #1
sendas4
Member
 
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
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, 01:49 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Does /boot exist and is it writable? Can you post the output from:
ls -l /
mount
 
Old 07-19-2004, 01:59 PM   #3
sendas4
Member
 
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 02:19 PM.
 
Old 07-19-2004, 10:06 PM   #4
osvaldomarques
Member
 
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, 11:33 PM   #5
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
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-20-2004, 12:23 AM   #6
Kroenecker
Member
 
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, 01:48 AM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
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.

<edit>
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.
</edit>

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


Reply


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 07:55 AM
Kernel compiling process problem. make bzimage fails. RJARRRPCGP Linux - Newbie 2 08-24-2004 05:14 PM
Problems compiling kernel 2.6.8.1 (make bzImage) omegaworks Linux - General 3 08-18-2004 07:54 PM
compiling kernel/first time...issue wr3ck3d Linux - General 3 02-28-2003 10:27 PM
Compiling the kernel...bzImage.. celtic32 Linux - General 11 08-28-2002 03:29 AM


All times are GMT -5. The time now is 12:47 AM.

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