From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Tue, 05 Feb 2013 12:03:43 -0500 Subject: open image file In-Reply-To: Your message of "Tue, 05 Feb 2013 04:59:42 +0800." <20130204205942.GE2553@debian.localdomain> References: <20130203020300.GA2454@debian.localdomain> <510E7191.1050103@gmail.com> <283ab658-1a16-49a3-ad9b-b04200dd47c4@email.android.com> <20130204191642.GA2553@debian.localdomain> <20130204205942.GE2553@debian.localdomain> Message-ID: <14594.1360083823@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, 05 Feb 2013 04:59:42 +0800, horseriver said: > hi: > > It is not a cpio archive , so that command can not work . > > its file system type is tmpfs. Umm. No. It's not tmpfs. tmpfs is a specific ram/swap based filesystem - basically, take enough 4K pages for the size= parameter and do it in memory. Major user-visible difference from the older 'ramfs' is that tmpfs pages can move to swap space, and ramfs pages are nailed down in RAM. mount -t tmpfs /dev/loop0 /mnt This never actually looks at /dev/loop0 *at all*. You could even say this: mount -t tmpfs none /mnt and it would work just fine. Try leaving the '-t tmpfs' off entirely and let the mount command figure out what type it is, and see if that works any better for you. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 865 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130205/70699028/attachment.bin