Download your favorite Linux distribution at LQ ISO.
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 06-20-2007, 05:05 PM   #1
LQ Newbie
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0

Hi there.

After compiling my kernel (by running make, make modules, make modules_install), I type the command : depmod -ae And then I made an initial image for preloaded modules : mkinitrd /boot/initrd-

However, when I run the command in linux- directory :
cp linux- /boot/vmlinuz.hmwk1

it is telling me that 'linux-' is not a file or directory...

why is it?

Old 06-20-2007, 05:38 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
I would think it would more like this.
cp /usr/src/linux- /boot/vmlinuz.hmwk1
If still and issue start at the / directory and cd down to it to know the correct path.

Now you are using a few commands from the 2.4 and previous kernel days.
In 2.6 kernels I do as follows.
make xconfig ( or use make menuconfig, make gconfig, or others to modify config0
make ( builds the kernel and modules )
make modules_install ( installs the modules in /lib/modules )
make install ( installs the kernel image to /boot and adds to grub or lilo )

Old 06-20-2007, 06:19 PM   #3
Registered: May 2007
Location: Chas, SC
Distribution: slackware, gentoo, fedora, LFS, sidewinder G2, solaris, FreeBSD, RHEL, SUSE, Backtrack
Posts: 430

Rep: Reputation: 67
Originally Posted by oliviapesayco
cp linux- /boot/vmlinuz.hmwk1

I am sorry but this looks like a school project by the ending of the cp command .hmwk1

Last edited by slimm609; 06-20-2007 at 06:20 PM.
Old 06-20-2007, 09:36 PM   #4
Registered: Apr 2005
Location: Fargo, ND
Distribution: Slackware, CentOS
Posts: 87

Rep: Reputation: 20
change -> cp linux- /boot/vmlinuz.hmwk1
to -> cp arch/i386/boot/bzImage /boot/vmlinuz.hmwk1

Understandable that you are a newbie the linux. Just keep in mind that you do not need to include the directory name if you are currently in the directory unless you are using the full path.


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
HELP bzImage NTK Debian 2 08-25-2006 07:01 AM
bzImage!!! BattleAxe_19 Linux - General 2 12-22-2003 09:57 AM
cant found bzImage mickdunde Linux - Newbie 4 07-09-2002 01:02 AM
bzImage.. help unmada Linux - Software 2 06-13-2002 11:59 PM
bzimage jnsc Linux From Scratch 13 04-16-2002 02:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 PM.

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