LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-05-2014, 03:13 PM   #1
pnayak
LQ Newbie
 
Registered: Mar 2005
Posts: 4

Rep: Reputation: 0
CentOS 6.5 initrd cannot open root device


Hi All,

I need to build an install CD with a few customizations and need to add some file to initrd.img. But when I create an initrd.img using what came with the CentOS 6.5 install disk, even without any additions, simple extraction and re-packing it doesn't boot.

Here's what I did, please let me know if anyone knows what could be
wrong.

CentOS 6.5 mounted on /mnt/iso
Extracted the initrd.img that came with the CentOS install disk
$ mount -o loop CentOS-6.5-x86_64-bin-DVD1.iso /mnt/iso
$ mkdir tmp
$ cd tmp
$ cp /mnt/iso/isolinux/initrd.img initrd.img.xz
$ xz -d initrd.img.xz
$ cpio -id < initrd.img
$ rm initrd.img
$ find . -depth -print | cpio -o -H newc > ../initrd.img
$ cd ../
$ xz --format=lzma -9 initrd.img

This results in results in initrd.img.lzma. I copied all data from /mnt/iso into a new directory (release) (using rsync) and copied the above initrd.img.lzma as release/isolinux/initrd.img. And created a bootable disk using mkisofs.

The boot fails saying:
VFS: Cannot open root device "(null)" or unknown-block (253,0)

If I just copy the original initrd.img to the release/isolinux/initrd.img and create the install disk it boots fine. I can't quite understand what happens when I extract and re-pack the file that it starts booting.
 
Old 06-08-2014, 12:35 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
It may have something to do with the root option in your boot-loader. It needs to have the image defined as well.
 
  


Reply

Tags
boot failure, centos6, initrd


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
Cannot open root device? briandickens Linux From Scratch 9 01-06-2012 04:19 AM
Cannot open root device Crabillon Red Hat 2 10-26-2010 01:29 AM
Kernel 2.6.26.3: VFS cannot open root device, can't find root device dimm0k Linux - Kernel 1 09-21-2008 03:19 PM
VFS: Cannot open root device Mamour Linux - Software 8 04-20-2004 01:21 PM
Cannot open root device r2bit Linux - Software 1 01-08-2004 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration