Find the answer to your Linux question:
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 ...
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    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
    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
    But I think this has changed in RHEL 5 , I get some error in the mount command which says to specify the file system.
    How to go about it?
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...