Results 1 to 2 of 2
Hello
I am facing problems in mounting the image file of initrd.img in RHEL5 . Before in the previous versions of RedHat the initrd.img could be mounted as
Code:
cp ...
- 07-22-2009 #1
mounting initrd.img in RHEL 5
Hello
I am facing problems in mounting the image file of initrd.img in RHEL5 . Before in the previous versions of RedHat the initrd.img could be mounted as
But I think this has changed in RHEL 5 , I get some error in the mount command which says to specify the file system.Code:cp initr.<version>.img /tmp mv initr.<version>.img initr.<version>.img.gz gunzip initr.<version>.img.gz mount -o loop initr.<version>.img /some_dir
How to go about it?Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
- 07-23-2009 #2Just Joined!
- Join Date
- Sep 2007
- Location
- Lafayette, IN
- Posts
- 83
The initrd.img file is a cpio archive. So you could do something like:
cat initrd-<version>.img | cpio -idv
This would unpack everything into your current directory. It's not quite as clean as mount, since you'd have to repackage any changes, but it works.


Reply With Quote