<br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 12:46 AM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi:)<br>
<br>
I have a image file ,after I input this command:<br>
<br>
******<br>
sh> losetup /dev/loop0 xx.img<br>
sh> mount -t tmpfs /dev/loop0 /mnt<br>
<br>
******<br>
<br>
<br>
I find no content under /mnt ,But this image file contains a bootloader.<br>
What is the reason ? How can I check out the file tree structure of this image ?<br>
<br></blockquote><div><br></div><div>Determine the file type of your image file. </div><div>I suspect you are trying to look into the initrd images. These image files are compressed gzip images.</div><div><br></div><div>
You can try extracting the image file then examine it's content.</div><div><br></div><div>gunzip -c <path_to_image_file> | cpio -id</div><div>The above command would extract the content of the image file in the current directory.</div>
<div><br></div><div>Hope this solves your problem. </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
thanks!<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br>