Fedora Linux Support Community & Resources Center
  #1  
Old 10th June 2012, 10:36 AM
markf Offline
Registered User
 
Join Date: Dec 2009
Posts: 8
linuxchrome
FIXED: F16 kernel 3.3.7-1 missing initramfs? (upgraded to newer version)

I updated to kernel 3.3.7-1 yesterday and after a reboot it panics out.
looking in /boot, i see there's no initramfs-3.3.7-1.fc16.x86_64.img

i've tried looking for this file in the rpm, but although the archive reports it available, it seems to be missing, i tried this:

Code:
yumdownloader --destdir /tmp/ kernel

rpm -qpl /tmp/kernel-3.3.7-1.fc16.x86_64.rpm  | while read f; do if [[ ! -f "$f" && ! -d "$f" ]] ; then echo "could not find $f"; fi; done
> could not find /boot/initramfs-3.3.7-1.fc16.x86_64.img

rpm2cpio /tmp/kernel-3.3.7-1.fc16.x86_64.rpm | cpio -ivd
find . -name init\*
> ./lib/modules/3.3.7-1.fc16.x86_64/kernel/drivers/scsi/initio.ko
so it's not extracting the file initramfs-3.3.7-1.fc16.x86_64.img even though rpm -qpl is saying it's in the archive.

At the moment i'm having to boot to previous kernel, but is there anything wrong with either the kernel rpm, or how can i fix my problem if i can't extract the file from the archive?

thanks,

Last edited by markf; 10th June 2012 at 12:57 PM. Reason: Marked as fixed by upgrading
Reply With Quote
  #2  
Old 10th June 2012, 10:42 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: F16 kernel 3.3.7-1 missing initramfs?

Try

Code:
su
dracut -v -f -H /boot/initramfs-3.3.7-1.fc16.x86_64.img 3.3.7-1.fc16.x86_64
Reply With Quote
  #3  
Old 10th June 2012, 10:57 AM
markf Offline
Registered User
 
Join Date: Dec 2009
Posts: 8
linuxchrome
Re: F16 kernel 3.3.7-1 missing initramfs?

Thanks for that, it created the initramfs file (after lots of dependency warnings), but it still didn't boot.

Here's the run of the command:

Code:
$ dracut -v -f -H /boot/initramfs-3.3.7-1.fc16.x86_64.img 3.3.7-1.fc16.x86_64
I: *** Including module: dash ***
I: *** Including module: i18n ***
I: *** Including module: rpmversion ***
I: *** Including module: plymouth ***
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: kernel-modules ***
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
E: FATAL: Could not load /lib/modules/3.3.7-1.fc16.x86_64/modules.dep: No such file or directory
I: *** Including module: lvm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: resume ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: *** Including module: biosdevname ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: Skipping program jfs_fsck as it cannot be found and is flagged to be optional
I: Skipping program reiserfsck as it cannot be found and is flagged to be optional
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be optional
I: *** Including modules done ***
I: Wrote /boot/initramfs-3.3.7-1.fc16.x86_64.img:
I: -rw-r--r--. 1 root root 6531927 Jun 10 11:01 /boot/initramfs-3.3.7-1.fc16.x86_64.img
Looking at the generated file, it's very small compared to the others in my boot dir:

Code:
-rw-r--r--.  1 root root  17M Apr 29 23:02 initramfs-3.3.2-6.fc16.x86_64.img
-rw-r--r--.  1 root root  17M May 11 20:56 initramfs-3.3.4-3.fc16.x86_64.img
-rw-r--r--.  1 root root 6.3M Jun 10 10:43 initramfs-3.3.7-1.fc16.x86_64.img
There's plenty of space on my /boot partition (387M), so not a disk full issue.

The error I'm getting on boot (for completeness) is:

Code:
loading initial ramdisk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)
Pid: 1, comm: swapper/0 Not tainted 3.3.7-1.fc16.x86_64 #1
Call Trace:
...
Any other way I can get a valid initramfs for 3.3.7-1?

Thanks,

Last edited by markf; 10th June 2012 at 11:02 AM.
Reply With Quote
  #4  
Old 10th June 2012, 11:01 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: F16 kernel 3.3.7-1 missing initramfs?

Quote:
Originally Posted by markf View Post
Thanks for that, it extracted the file (after lots of dependency warnings), but it still didn't boot.
Looking at the extracted file, it's very small compared to the others in my boot dir:

Code:
-rw-r--r--.  1 root root  17M Apr 29 23:02 initramfs-3.3.2-6.fc16.x86_64.img
-rw-r--r--.  1 root root  17M May 11 20:56 initramfs-3.3.4-3.fc16.x86_64.img
-rw-r--r--.  1 root root 6.3M Jun 10 10:43 initramfs-3.3.7-1.fc16.x86_64.img
There's plenty of space on my /boot partition (387M), so not a disk full issue.

The error I'm getting on boot (for completeness) is:

Code:
loading initial ramdisk
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (0,0)
Pid: 1, comm: swapper/0 Not tainted 3.3.7-1.fc16.x86_64 #1
Call Trace:
...
Any other way I can pull this file out?

Thanks,
Try reinstalling the kernel
Code:
su
yum reinstall kernel-3.3.7-1.fc16.x86_64

Last edited by Yellowman; 10th June 2012 at 12:05 PM.
Reply With Quote
  #5  
Old 10th June 2012, 11:45 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,088
linuxfirefox
Re: F16 kernel 3.3.7-1 missing initramfs?

Don't bother with this and try kernel 3.3.8 ;-)

Code:
yum --enablerepo=updates-testing update kernel
Or try to remove the old kernel and then reinstall kernel-3.3.7-1.fc16.x86_64.rpm which does contain /boot/initramfs-3.3.7-1.fc16.x86_64.img
Reply With Quote
  #6  
Old 10th June 2012, 12:56 PM
markf Offline
Registered User
 
Join Date: Dec 2009
Posts: 8
linuxchrome
Re: F16 kernel 3.3.7-1 missing initramfs?

Thanks all, I've upgraded to test version 3.3.8-1 and it's booting fine again.
Reply With Quote
Reply

Tags
f16, initramfs, kernel, missing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
missing initramfs gerdinio Using Fedora 7 13th April 2012 01:11 AM
initramfs jvillain F16 Development 1 17th July 2011 05:16 AM
[SOLVED] kernel update doesn't edit grub.conf vmlinuz and initramfs missing justforgetme Using Fedora 2 23rd December 2010 05:37 PM
F11 dracut and new 32.9 kernel initramfs SlowJet Using Fedora 9 4th March 2010 12:06 AM
initramfs created instead of initrd - can't boot new kernel Jongi Fedora 12 Alpha, Beta & Release Candidates 12 9th November 2009 01:17 AM


Current GMT-time: 21:25 (Saturday, 29-04-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat