View Issue Details

IDProjectCategoryView StatusLast Update
0006310CentOS-6kernelpublic2018-01-25 05:33
Reporterartop0420 
PriorityhighSeveritycrashReproducibilityalways
Status acknowledgedResolutionopen 
Platformi386OSCentosOS Version6.4
Product Version 
Target VersionFixed in Version 
Summary0006310: missing initramfs: kernel panic - not syncing: VFS: Unable to mount root partition after yum update.
DescriptionKernel Version : 2.6.32-279.22.1.el6.i686 (before yum update)
Kernel Version : 2.6.32-358.0.1.el6.i686 (after yum update)

I have to ibm x335 model server and centos6.3.
After you run the command yum update today, I have to reboot.

then....

Kernel panic message is output to the screen.
There was a message something like this.
"Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(0,0)
Pid : 1, comm: swapper Not tainted 2.6.32-358.0.1.el6.i686 #1
Call Trace:
 [<c08477af>] ? panic+0x63.0x122
 [<c0ac3e02>] ? mount_block_root+0x1ec/0x263
...
...
...


Partition information could not be found because it seems, to the previous version of the version of the kernel, after you have selected, start-up was successful.
TagsNo tags attached.

Relationships

related to 0006844 closedtoracat CentOS-6 Error after update kernel 2.6.32-431.1.2.0.1.el6.x86_64 
related to 0007827 closedIssue Tracker CentOS-6 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) 
related to 0013018 new CentOS-7 Kernal Fails to Boot after yum update of kernal due to missing drivers for RedHat virtio stack 
related to 0013456 closedtoracat CentOS-7 panic with kernel 3.10.0-514.21.2.el7.x86_64 

Activities

boniarco

boniarco

2013-03-12 08:17

reporter   ~0016665

Same problem with
HP DL380 G4
Disk Controller HP Smart Array 6i

No problem Booting with previous Kernel

Here datails about the hardware:
[root@ganjalf ~]# lspci
00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 0c)
00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 0c)
00:06.0 PCI bridge: Intel Corporation E7520 PCI Express Port C (rev 0c)
00:1d.0 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
00:1d.1 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
00:1d.2 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
00:1d.3 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
00:1d.7 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02)
01:03.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Rage XL (rev 27)
01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 01)
01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 01)
02:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
02:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
03:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
03:01.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
04:03.0 RAID bus controller: Compaq Computer Corporation Smart Array 64xx (rev 01)
05:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09)
05:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09)
boniarco

boniarco

2013-03-12 12:24

reporter  

2013-03-12_08.23.54.jpg (195,347 bytes)
2013-03-12_08.23.54.jpg (195,347 bytes)
boniarco

boniarco

2013-03-12 12:27

reporter   ~0016667

This is the grub.conf

[root@ganjalf ~]# cat /etc/grub.conf
# 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/cciss/c0d0p2
# initrd /initrd-[generic-]version.img
#boot=/dev/cciss/c0d0
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.0.1.el6.x86_64)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-358.0.1.el6.x86_64 ro root=UUID=ff42a261-0745-4f52-a9ab-2955a5d46380 rd_NO_LUKS LANG=en_US.UTF-8 KEYBOARDTYPE=pc KEYTABLE=it rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_NO_LVM rd_NO_DM
title CentOS (2.6.32-279.19.1.el6.x86_64)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-279.19.1.el6.x86_64 ro root=UUID=ff42a261-0745-4f52-a9ab-2955a5d46380 rd_NO_LUKS LANG=en_US.UTF-8 KEYBOARDTYPE=pc KEYTABLE=it rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_NO_LVM rd_NO_DM
    initrd /initramfs-2.6.32-279.19.1.el6.x86_64.img
title CentOS (2.6.32-220.7.1.el6.x86_64)
    root (hd0,0)
    kernel /vmlinuz-2.6.32-220.7.1.el6.x86_64 ro root=UUID=ff42a261-0745-4f52-a9ab-2955a5d46380 rd_NO_LUKS LANG=en_US.UTF-8 KEYBOARDTYPE=pc KEYTABLE=it rd_NO_MD quiet SYSFONT=latarcyrheb-sun16 rhgb crashkernel=auto rd_NO_LVM rd_NO_DM
    initrd /initramfs-2.6.32-220.7.1.el6.x86_64.img
redmo

redmo

2013-03-13 16:20

reporter   ~0016692

Same problem with
HP N40L (x86_64)
dwilmot

dwilmot

2013-04-24 13:57

reporter   ~0017288

Same issue with ASUS u46e-1awx
martinman3

martinman3

2013-04-24 16:33

reporter   ~0017297

The missing initrd line in grub.conf has also been seen by those using Fedora, see the following bug reports.

https://bugzilla.redhat.com/show_bug.cgi?id=748043
https://bugzilla.redhat.com/show_bug.cgi?id=725185

The missing line can be added in grub.conf if necessary.
toracat

toracat

2013-04-24 19:01

manager   ~0017300

Very intriguing problem. Cannot find relevant reports for EL5 in the upstream BZ.

artop0420, redmo, dwilmot: do you also have missing initrd line in grub.conf ? Which kernel did this happen with ?
artop0420

artop0420

2013-04-26 09:53

reporter   ~0017318

toracat: this is my grub.conf. Does not seem to be what was missing.
Version of the kernel panic is 2.6.32-358.



[root@localhost ~]# cat /etc/grub.conf
# 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/sda2
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-358.0.1.el6.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-358.0.1.el6.i686 ro root=UUID=047a0a95-9591-4b58-890a-a22f8c2d3f2b rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_LVM rd_NO_DM SYSFONT=latarcyrheb-sun16
title CentOS (2.6.32-279.22.1.el6.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.22.1.el6.i686 ro root=UUID=047a0a95-9591-4b58-890a-a22f8c2d3f2b rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_LVM rd_NO_DM SYSFONT=latarcyrheb-sun16
        initrd /initramfs-2.6.32-279.22.1.el6.i686.img
title CentOS (2.6.32-279.19.1.el6.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.19.1.el6.i686 ro root=UUID=047a0a95-9591-4b58-890a-a22f8c2d3f2b rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_LVM rd_NO_DM SYSFONT=latarcyrheb-sun16
        initrd /initramfs-2.6.32-279.19.1.el6.i686.img
title CentOS (2.6.32-279.14.1.el6.i686)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-279.14.1.el6.i686 ro root=UUID=047a0a95-9591-4b58-890a-a22f8c2d3f2b rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD quiet rhgb crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_LVM rd_NO_DM SYSFONT=latarcyrheb-sun16
        initrd /initramfs-2.6.32-279.14.1.el6.i686.img



root@localhost ~]# fdisk -l

Disk /dev/sda: 73.4 GB, 73402399232 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0004a312

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 32 256000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 32 685 5242880 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 685 1991 10485760 83 Linux
/dev/sda4 1991 8925 55696366+ 5 Extended
/dev/sda5 1991 3296 10485760 83 Linux
/dev/sda6 3296 3818 4194304 82 Linux swap / Solaris
/dev/sda7 3819 3949 1048576 83 Linux
/dev/sda8 3949 8924 39962624 83 Linux
martinman3

martinman3

2013-05-07 08:30

reporter   ~0017381

artop0420, You confused me, looking at the grub.conf you meant to say "Does seem to be what was missing."
toracat

toracat

2013-09-21 14:29

manager   ~0018040

Another similar issue (missing initramfs) was seen in :

http://bugs.centos.org/view.php?id=6583#c17823
toracat

toracat

2013-09-21 14:41

manager   ~0018041

Another incident seen here:

http://bugs.centos.org/view.php?id=6327#c16765
toracat

toracat

2013-09-21 14:44

manager   ~0018042

Added 'missing initramfs' to the Summary field.
toracat

toracat

2014-03-26 16:42

manager   ~0019562

Another case reported for CentOS 6.5:

https://www.centos.org/forums/viewtopic.php?f=13&t=44547&p=193789#p193789
artop0420

artop0420

2014-03-27 00:31

reporter   ~0019564

It was to solve this problem. Thank you. :-)
toracat

toracat

2014-03-29 18:17

manager   ~0019578

Yet another case reported:

https://www.centos.org/forums/viewtopic.php?f=14&t=45669
toracat

toracat

2014-10-24 15:40

manager   ~0021384

Yet another case, but this time with a C7 kernel:

https://bugs.centos.org/view.php?id=7780
artop0420

artop0420

2014-10-24 16:45

reporter   ~0021386

I have solved this problem. I do not know the cause, but after starting in the previous version, it will be start working normally after the upgrade again.
Updating will be assumed inappropriate.
Thank you :)
dlmiles

dlmiles

2015-10-06 23:09

reporter   ~0024541

Can those with this problem try:

# For me this version is missing /boot/initramfs-*.img
# dracut -f /boot/initramfs-2.6.32-573.1.1.el6.x86_64.img 2.6.32-573.1.1.el6.x86_64
/usr/share/dracut/modules.d/05nss-softokn/install: line 4: which: command not found
E: Failed to install /usr/lib/libfreeblpriv3.so
#

# ls -l /usr/bin/which
ls: cannot access /usr/bin/which: No such file or directory
# rpm -qa | grep ^which
which-2.19-6.el6.x86_64
# rpm -ql which-2.19-6.el6.x86_64
/etc/profile.d/which2.sh
/usr/bin/which
/usr/share/doc/which-2.19
/usr/share/doc/which-2.19/AUTHORS
/usr/share/doc/which-2.19/COPYING
/usr/share/doc/which-2.19/EXAMPLES
/usr/share/doc/which-2.19/NEWS
/usr/share/doc/which-2.19/README
/usr/share/info/which.info.gz
/usr/share/man/man1/which.1.gz

CAUSE: which is installed but the binary is missing.

My last kernel that worked ok: vmlinuz-2.6.32-504.23.4.el6.x86_64
My first kernel that failed is: vmlinuz-2.6.32-573.1.1.el6.x86_64

I do not update everytime a kernel arrives, but maybe if this is a system wide problem (your /usr/bin/which is missing) then these versions can help track the issue. If you also find /usr/bin/which is missing take a look in /boot/* and compare versions to find the last version that worked and the first version that is missing initramfs-*.img then report these two versions here.

TO FIX:

root$ yum reinstall which
root$ ls -l /boot
#### Look for any missing initramfs-*.img files and manually run dracut -f as per https://wiki.centos.org/TipsAndTricks/CreateNewInitrd
#### Then edit /boot/grub/grub.conf and manually add the like like:
# initrd /initramfs-2.6.32-573.1.1.el6.x86_64.img
#### for each kernel you installed and it is missing.
#### Then REBOOT as normal (this worked for me on kernel 2.6.32-573.7.1
toracat

toracat

2016-11-19 15:53

manager   ~0027930

This problem is still happening from time to time. Both CentOS 6 and 7. No apparent cause identified. Known upstream. For example:

https://access.redhat.com/solutions/57018
https://access.redhat.com/solutions/1592113
jition

jition

2017-03-12 06:08

reporter   ~0028837

Same problem with
kabe

kabe

2017-03-29 07:48

reporter   ~0028969

(transcribe from https://bugs.centos.org/view.php?id=13018)
Looking at --scripts of CentOS 6 kernel package, this seems to hold true for CentOS 6 also.

Did anybody having similar symptom
ever interrupted the kernel installation by Ctrl-C ?

If you interrupt the installaion during kernel package's %posttrans process,
grub.cfg is not updated properly and leaves with initrd line missing.

kernel package installation takes time, so it may seem to be freezing
and likely to be tempted to interrupt.

"rpm -qV kernel" doesn't report any error in this case, since
grub.cfg is dynamically written.

The easiest fix is to (force-)reinstall the kernel package.
toracat

toracat

2017-03-29 16:50

manager   ~0028973

It seems that this intriguing problem happens rather randomly for most people. It did happen to me once (out of gazillion times of kernel updates). Yes, I think the posttrans process gets messed up one way or another for unknown reason.
nupurpriyaHarman

nupurpriyaHarman

2017-05-02 10:43

reporter   ~0029203

This happens only when the installation is interrupted.
gmd

gmd

2017-05-31 16:19

reporter   ~0029377

This has happened to me twice in the last month when updating from Centos6.4 to 6.9.

On both occasions I initiated an update using gpk-update-viewer, whilst connected to the box via VNC/Gnome environment. During the update access to the VNC server on the box was lost, at which point the update appeared to be stalled.

The only way I could recover was to reboot into Centos6.4 kernel, as root I performed the following from the console (avoiding VNC).

1. yum-complete-transaction, erase all pending package updates
2. yum clean all
3. yum update

Due to the update failing I can confirm the grub.conf file was missing the initramfs line prior to performing steps 1,2,3 above.

Hope this helps...

Issue History

Date Modified Username Field Change
2013-03-12 00:41 artop0420 New Issue
2013-03-12 08:17 boniarco Note Added: 0016665
2013-03-12 12:24 boniarco File Added: 2013-03-12_08.23.54.jpg
2013-03-12 12:27 boniarco Note Added: 0016667
2013-03-13 16:20 redmo Note Added: 0016692
2013-04-24 13:57 dwilmot Note Added: 0017288
2013-04-24 16:33 martinman3 Note Added: 0017297
2013-04-24 19:01 toracat Note Added: 0017300
2013-04-24 19:02 toracat Status new => feedback
2013-04-26 09:53 artop0420 Note Added: 0017318
2013-04-26 09:53 artop0420 Status feedback => assigned
2013-05-07 08:30 martinman3 Note Added: 0017381
2013-09-21 14:29 toracat Note Added: 0018040
2013-09-21 14:41 toracat Note Added: 0018041
2013-09-21 14:44 toracat Note Added: 0018042
2013-09-21 14:44 toracat Summary kernel panic - not syncing: VFS: Unable to mount root partition after yum update. => missing initramfs: kernel panic - not syncing: VFS: Unable to mount root partition after yum update.
2014-03-26 16:42 toracat Note Added: 0019562
2014-03-27 00:31 artop0420 Note Added: 0019564
2014-03-29 18:17 toracat Note Added: 0019578
2014-10-24 15:40 toracat Note Added: 0021384
2014-10-24 16:45 artop0420 Note Added: 0021386
2015-06-02 16:20 toracat Project CentOS-5 => CentOS-6
2015-10-06 23:09 dlmiles Note Added: 0024541
2015-10-15 18:02 toracat Relationship added related to 0006844
2015-10-29 11:59 toracat Relationship added related to 0007827
2016-11-19 15:53 toracat Note Added: 0027930
2017-03-12 06:08 jition Note Added: 0028837
2017-03-27 13:41 toracat Relationship added related to 0013018
2017-03-29 07:48 kabe Note Added: 0028969
2017-03-29 16:50 toracat Note Added: 0028973
2017-05-02 10:43 nupurpriyaHarman Note Added: 0029203
2017-05-31 16:19 gmd Note Added: 0029377
2017-06-22 15:26 toracat Relationship added related to 0013456
2018-01-25 05:33 toracat Status assigned => acknowledged