LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2004, 10:24 AM   #1
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Rep: Reputation: 15
Kernel Update : vmlinuz-2.6.6 : no such file or directory


well i've installed a new kernel following those operations :

# rm linux | ln -s linux-2.6.6 linux
# make menuconfig
# make bzImage
# make bzdisk
# make modules
# make modules_install
# mv System.map /boot/System.map-2.6.6
# mv .config /boot/config-2.6.6
# mv /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.6.6

then update lilo.conf (no error via bash mode) but when reboot i can't see the new kernel...

then i started X and see throught the control center that the new kernel has got an error in the lilo.conf :


Boot image : /boot/vmlinuz-2.6.6
fatal : open /boot/vmlinuz-2.6.6: no such file or directory



?!?!?!?!?!?!?!?! help please!
 
Old 05-13-2004, 10:44 AM   #2
Grymme
Member
 
Registered: Apr 2004
Location: Sweden
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
I'll assume the file is really there.. (under /boot)

One thing that can be causing this problem is that you try to start from a different partition than where the kernel is to be found. Did you check that your lilo.conf was ok before you ran lilo?
 
Old 05-13-2004, 10:48 AM   #3
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
i've cheked the lilo conf via the control center, button : check configuration , and then it say kernel 2.6.6 no such file or directory!

i've done all the steps correctly (i hope so but indee something was wrong) and now seems that with that string of the lilo .conf no kernel image is associated!
 
Old 05-13-2004, 02:22 PM   #4
neondonkey
LQ Newbie
 
Registered: Apr 2004
Location: illinois
Distribution: home: slackware 11 and work: SLES 9 on zseries
Posts: 13

Rep: Reputation: 0
issue this command: ls /usr/src/linux-2.6.6/arch/i386/boot

this should tell you whether or not there is an actual bzImage there. if there is then just try to re copy the file (command i use is: cp /usr/src/linux-2.6.6/arch/i386/boot/bzImage /boot/vmlinuz-2.6.6). i use this instead of the mv command just because it's a personal preference.

otherwise, if the bzImage doesn't exist you'll need to recompile your kernel.

good luck!
 
Old 05-13-2004, 09:36 PM   #5
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
Tips on kernel building

Do not just assume that all is well after a kernel build.
It is not likely that you will be able to read the several THOUSAND lines that scroll by for the kernel build... One too many errors and you have no paddle up the creek

Better build suggestion....

cd /usr/src/linux #linux is the default sym link to ANY kernel sources make it that way with ln
make mrproper #for EVERY BUILD
make clean
# if you have a config file you want to use cp it to /usr/src/linux/.config
# edit MAKEFILE find EXTRAVERSION and set a name for it...
# This keeps a working kernel intact
# or you may use the sript below BEFORE you make modules_install
if OLDCONFIG then make oldconfig
make xconfig or menuconfig # to make your changes
else if
new kernel configure
make xconfig or make menuconfig
fi
make dep
# let us build a kernel and have a readable output file

nohup make bzImage &
tail -f nohup.out # if you want to watch
if you are building a kernel below 2.6 open a new term and

nohup make modules 1>modules.out 2>modules.err

after the builds are done you can read these files with less or more or a text ed
less nohup.out #kernel build
less modules.out #mod build
less modules.err #mod errors

if all is good
make modules_install

and here is a help script but you must edit for your own box
#!/bin/sh
cd /boot
mv vmlinuz-YOURS vmlinuz-YOURS.1
mv System.map-YOURS System.map-YOURS.1
mv config-YOURS config-YOURS.1
cd /lib/modules
cp MODULES_CURRENT MODULES_CURRENT.1
cd /usr/src/linux
make modules_install
cp System.map /boot/System.map-NEW
cp .config /boot/config-NEW
cp arch/i386/boot/bzImage /boot/vmlinuz-NEW
cd /boot
rm System.map
rm config
ln -s System.map-NEW System.map
ln -s config-NEW config
echo "Edit your /etc/lilo.conf and run lilo!!!"
echo "make sure you ID the former kernel with .1 and make a new boot for the NEW one"

Doing the above will save some headaches...

Yes I build LOTS of kernels.... I have a WULF....
 
Old 05-13-2004, 09:48 PM   #6
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Is the System.map and .config necessary to be in /boot?

I have NEVER done that before. And my system is working fine. Please tell me what is it about.
 
Old 05-13-2004, 09:54 PM   #7
Nichole_knc
Member
 
Registered: Mar 2004
Location: Georgia
Distribution: SlackWare 10.1+, FreeBSD 4.4-5.2, Amiga 1.3,2.1,3.1, Windors XP Pro (makes a fair answering machine)
Posts: 287

Rep: Reputation: 30
YES... For more info on this subject read the kernel HOWTOs
The System.map lays out locations for the kernel it does get checked on occations...
The config file is there more as a 'safe' keeping for your current configuration.
These are linux defaults and should be used.....
 
Old 05-14-2004, 02:41 AM   #8
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
alright, after copying System.map to /boot. Do I need to reinstall lilo and reboot?
 
Old 05-14-2004, 02:42 AM   #9
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
if ur lilo.conf was already updated with the new link to the new kernel, just reboot, else u'll have to update it!
 
Old 05-14-2004, 03:38 AM   #10
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
well ,i've made the file bzImage, that file is under /usr/src/linux-2.6.6/cd arch/i386/boot
i also copied it in this way :

# cp /usr/src/linux-2.6.6/arch/i386/boot/bzImage /boot/vmlinuz-2.6.6).

then i've to perform those 2 commands :

# make modules
# make modules_install

but from which directory ? i assume the directory is linux-2.6.6 right ?

from here i issued make modules and i got :

make[1] 'arch/i386/kernel/asm.offsets.s' is up to date
CC [M] drivers/net/dummy.mod.o
LD [M] drivers/net.dummy.ko

that's all
then make modules_install adn i got :
if [ -r System.map ]; then /sbin/depmod -ae - F System.map 2.6.6; fi

that's all.

are those commands right?
 
Old 05-14-2004, 03:49 AM   #11
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
kernel successfully compilated and installed!!! yahooooooooooooo


but now i got another problem ! ahahahah i'm starting to love linux!!!

the NTFS hard disk are not mounted (with the old kernel they were ok).... uhmmmm i'll make a gooogleeeee
 
Old 05-14-2004, 04:08 AM   #12
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Did you compile in NTFS support with the new kernel?
 
Old 05-14-2004, 04:41 AM   #13
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
uhmm i'm not sure... when i've done menuconfig i have not choose nothing.. only saved new configuration file!
 
Old 05-14-2004, 04:51 AM   #14
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
trying to recompile the kernel..
but i cand find any NTFS info in the menuconfig...

 
Old 05-14-2004, 04:56 AM   #15
kuol3m4
Member
 
Registered: May 2004
Location: Italian Hell
Distribution: Slackware 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
found it! i'm a dumb.
 
  


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
newbie -- have no vmlinuz.version.h file roshk Linux - Software 2 12-31-2004 08:27 PM
/usr/sbin/update-gdkpixbuf-loaders: No such file or directory ulaoulao Linux - Software 0 10-17-2004 06:44 PM
Taking Kernel from Kernel.org to vmlinuz hobbes567 Linux - Newbie 2 06-17-2004 04:47 PM
recompiled kernel and no vmlinuz.old or kernel module for Nvidia Bruce Hill Slackware 13 12-11-2003 01:36 AM
/boot/vmlinuz.autoconf.h: No such file or directory mike35 Linux - Distributions 1 11-02-2003 08:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:06 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration