LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 07-18-2007, 03:13 PM   #1
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Rep: Reputation: 16
Filesystem type of initrd-2.6.9-42.0.3.EL.img


What's the filesystem type of the initrd-2.6.9-42.0.3.EL.img that's in the /boot folder of a Red Hat Enterprise Linux 4 installation? When I try to mount it with the following command to poke around inside, it gives an error saying wrong filesystem type.

mount -o loop /boot/initrd-2.6.9-42.0.3.EL.img /loop -t ext3

Is there any real difference between that file and the similarly named initrd-2.6.9-42.EL.img, apart from minor version numbers?

Thanks.
 
Old 07-19-2007, 09:38 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
It is a gzip file type which has a cpio archive of a file by the same name. Yes, there is a real difference just as there is a real difference between the two kernels. Both .img files hold the specific drivers required to start booting the system into the kernel with the same version number.
 
Old 07-19-2007, 02:11 PM   #3
veeruk101
Member
 
Registered: Mar 2005
Distribution: Ubuntu 12.04 LTS
Posts: 249

Original Poster
Rep: Reputation: 16
What commands could I use to mount the file successfully as a loopback device so I can see what's inside? What commands would I have to run? First I'd have to unzip the file, after which...? I'm a newbie
 
Old 07-19-2007, 08:29 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
One does not mount the compressed cpio archive file.

As root type something like;
mkdir test
cd test
cp /boot/initrd-2.6.9-42.0.3.EL.img initrd-2.6.9-42.0.3.EL.img
gunzip -S .img initrd-2.6.9-42.0.3.EL.img
cpio -i -d < initrd-2.6.9-42.0.3.EL
 
  


Reply



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
Failed to symbolic-link boot/initrd.img-2.6.18-4-486 to initrd.img Scotteh Linux - Software 8 06-01-2007 11:24 PM
Initrd.img spaguzz Slackware 4 12-16-2004 03:35 AM
Initrd.img spaguzz Linux - Software 1 12-09-2004 03:21 PM
What's an initrd.img? hotel-lima Linux - Newbie 2 06-11-2004 05:50 PM
initrd.img php_rocks Linux - Newbie 1 08-31-2003 11:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 06:37 PM.

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