[ale] how to mount an initrd file?

James P. Kinney III jkinney at localnetsolutions.com
Sun May 1 23:30:48 EDT 2005


On Sun, 2005-05-01 at 18:26 -0400, Christopher Bergeron wrote:
> I thought this was a straightforward task, but I'm having trouble 
> mounting an initrd.img file.  When I try:
> 
> mount -o loop initrd.img directory_to_mount_to
> 
> I'm getting a "must specify filesystem" error.  Does anyone have any 
> idea on what I'm doing wrong?  Can I not mount this initrd.img file or 
> am I in fact, not specifying the correct filesystem?  I've tried -t 
> ext2  and -t ext3 (and -t tmpfs and -t cramfs), but to no adeu.
> 
> Does anyone have any ideas?

1. run file initrd.img first. That will tell you what type of file it
is .

2. Most likely, you will need to uncompress it. Use zcat instead of
gunzip. The uncompressed file will be loopback mountable one.

Note: if you modify the mounted image file, you may have some fun
getting it to reclose. Unless there is some space left in the filesystem
created for it, you can't add anything. When you recompress it, you will
most likely need to use the max compression flag (--best) again with
zcat (or do a rename on the final file).
> 
> Thanks in advance,
> CB
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
-- 
James P. Kinney III          \Changing the mobile computing world/
CEO & Director of Engineering \          one Linux user         /
Local Net Solutions,LLC        \           at a time.          /
770-493-8244                    \.___________________________./
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part




More information about the Ale mailing list