Re: open image file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Tue, Feb 5, 2013 at 12:46 AM, horseriver <horserivers@xxxxxxxxx> wrote:
hi:)

  I have a image file ,after I input this command:

  ******
  sh> losetup /dev/loop0 xx.img
  sh>  mount -t tmpfs /dev/loop0 /mnt

  ******


 I find no content under /mnt ,But this image file contains a bootloader.
 What is the reason ? How can I check out the file tree structure  of this image ?


Determine the file type of your image file. 
I suspect you are trying to look into the initrd images. These image files are compressed gzip images.

You can try extracting the image file then examine it's content.

gunzip -c <path_to_image_file> | cpio -id
The above command would extract the content of the image file in the current directory.

Hope this solves your problem. 

thanks!


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux