LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2014, 10:15 AM   #1
gauravgoel1989
Member
 
Registered: Feb 2013
Posts: 42

Rep: Reputation: Disabled
Issue with the kernel update 'Error 15: File not found"


I have a RHEL6.0 server (kernel 2.6.32-37.el6.i686) installed on VMware. I wanted to learn how to updated kernel, so I downloaded kernel 2.6.32.62 package from https://www.kernel.org to /root/Desktop and run the following command respectively:

[root@RHEL6VM Desktop]# tar -xf linux-2.6.32.62.tar.xz
[root@RHEL6VM Desktop]# cd linux-2.6.32.62
[root@RHEL6VM linux-2.6.32.62]# make menuconfig
[root@RHEL6VM linux-2.6.32.62]# make dep
[root@RHEL6VM linux-2.6.32.62]# make clean
[root@RHEL6VM linux-2.6.32.62]# make bzImage
[root@RHEL6VM linux-2.6.32.62]# make modules
[root@RHEL6VM linux-2.6.32.62]# make modules_install
[root@RHEL6VM linux-2.6.32.62]# mv /boot/vmlinuz-2.6.32-37.el6.i686 /boot/vmlinuz-2.6.32-37.el6.i686.old
[root@RHEL6VM linux-2.6.32.62]# cp /root/Desktop/linux-2.6.32.62/arch/i386/boot/bzImage /boot/vmlinuz-2.6.32.62
[root@RHEL6VM linux-2.6.32.62]# Edited grub file and made changes as below
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/mapper/vg1_rhel6vm-LogVol001
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux (2.6.32-37.el6.i686)
root (hd0,0)
kernel /vmlinuz-2.6.32-37.el6.i686 ro root=/dev/mapper/vg1_rhel6vm-LogVol001 rd_LVM_LV=vg1_rhel6vm/LogVol001 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet

title Red Hat Enterprise Linux (2.6.32.62)
root (hd0,0)
kernel /vmlinuz-2.6.32.62 ro root=/dev/mapper/vg1_rhel6vm-LogVol001 rd_LVM_LV=vg1_rhel6vm/LogVol001 rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32.62.img
[root@RHEL6VM linux-2.6.32.62]#

[root@RHEL6VM linux-2.6.32.62]# dracut -f initramfs-2.6.32.62.img 2.6.32.62

Now when I restarted my server, it was booting successfully with the new kernel (2.6.32.62) but when I tried to boot it from old kernel (2.6.32-37) it was giving the below error

Error 15: File not found
Press any key to continue...

I would appreciate if somebody can answer my following questions.

Q1: How to save changes made to grub file?
Q2: What can be the issue behind the error with the old kernel? and what is the solution?
Q3: Did I follow the correct procedure for updating the kernel?
Q4: How can I change the default kernel as it is still booting with the old kernel by default?
 
Old 06-06-2014, 01:06 PM   #2
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Just run:

Code:
make modules bzImage
make modules_install
make install
regenerate the initrd or generate a new one for the new kernel (this might not be need it if 'make install' does it)
edit grub if 'make install' didnt (menu.lst)
Install first always the modules then the kernel image. Also in grub put the new kernel as first or change default to 1 or more depending on how many entries you got.
 
Old 06-09-2014, 05:03 AM   #3
gauravgoel1989
Member
 
Registered: Feb 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Hi Robert,

are you telling me that I should run the following commands in the listed sequence?

make menuconfig
make dep
make clean
make modules bzImage
make modules_install
make install

and how can I remove a particular kernel from the server?
 
Old 06-09-2014, 08:10 AM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,306

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Quote:
[root@RHEL6VM linux-2.6.32.62]# mv /boot/vmlinuz-2.6.32-37.el6.i686 /boot/vmlinuz-2.6.32-37.el6.i686.old
The above command renamed the old kernel, did you change it back to the original (removing the .old from the end)? Your grub entry for the old kernel shows the original kernel line which would explain why you get the 'file not found' message.
 
Old 06-10-2014, 02:57 AM   #5
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Depending on how the kernel was installed. If it's an rpm package, then search for the name:

Code:
rpm -qa|grep <kernel-pkg>
rpm -e <kernel-pkg>
Otherwise, if it's manually installed, then:

Code:
rm -fr /lib/modules/<kernel-version> /boot/{System.map,vmlinuz,config,initrd}-<kernel-version>
vim /boot/grub/menu.lst (remove the lines related to the kernel)
 
Old 06-10-2014, 06:17 AM   #6
gauravgoel1989
Member
 
Registered: Feb 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Hi Yancek,

I removed the .old from vmlinuz file and renamed it to vmlinuz-2.6.32-37.el6.i686. However upon rebooting, I am getting the following error.

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
 
Old 06-10-2014, 02:52 PM   #7
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
You most probably didn't generate an initrd image or something didn't go as it should, but hard to tell.
 
Old 06-11-2014, 06:39 AM   #8
gauravgoel1989
Member
 
Registered: Feb 2013
Posts: 42

Original Poster
Rep: Reputation: Disabled
Issue resolved!

Solution: initrd declaration was missing for the old kernel, added it and worked perfectly.
 
  


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
Upgraded kernel, trying to update grub but getting message "No volume groups found" slacker_ Linux - Newbie 6 09-10-2013 03:55 AM
GRUB boot fails returning "Error 15: File not found" on Centos 6.3 LittleMaster Linux - Server 2 05-24-2013 04:01 AM
preupgrade from F15 to F16 : "Error 15 : File not found" Moore Linux - General 10 12-05-2011 04:31 AM
[SOLVED] cannot open Places>Home Folder --- getting " error, file not found " uriri Linux - Newbie 1 01-13-2011 06:59 AM
DNS error : "localhost.zone file not found" rajat Linux - Server 2 04-25-2007 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:08 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