how to unpack a img file's file system?
Hello friends,
I want to unpack a img file via some unpackers, for example, unyaffs. unfortunately, after several attempts, without success. Can anyone help me? any reply will be appreciated, Thank you all. by the way, How to detect the file system of a data file? Quote:
|
Hi,
usually (unless you have a corresponding fstab entry) mount requires both a device and a mount point as arguments. Have you tried something like the following? Code:
mkdir foo |
Hello evo2,
Yes, I have tried your code, I forgot to post it in the original thread. See the output: Quote:
Quote:
I only know it is a data file. Regards. |
Hi,
you should be able to get the filesystem type with fdisk. Eg Code:
fdisk -l OMG-German-4.0.4.img PS. When posting text from your terminal please use [code] tags. |
Hello evo2,
Actually, I also have tried this code: Code: Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8805/Sourcecode_PX-8805/fw_up# fdisk -l OMG-German-4.0.4.img Best Regards. |
Hi,
well, if it fdisk doesn't see a partition table, presumably mount won't either. Do you have dosfs-tools (or whatever the equivalent package is on your distro) installed? Evo2. |
Hello evo2,
The linux distribution I used: Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8805/Sourcecode_PX-8805/PX-8805 firmware updating# cat /proc/version Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8805/Sourcecode_PX-8805/PX-8805 firmware updating# dosfs Benjamin. |
Hi,
hmm, guess it is called dosfstools... use your package manager. Eg Code:
apt-cache search dosfstools Evo2. |
Hello evo2,
Yes, follow your command, I try to install this package. Code:
root@benjamin-virtual-machine:/home/benjamin# apt-get install dosfstools If dosfstools only contains dosfsck and dosfslabel, how are they used for unpacking the img file(OMG-German-4.0.4.img)? And I viewed the manual of dosfsck and dosfslabel: dosfsck - check and repair MS-DOS filesystems dosfslabel - set or get MS-DOS filesystem label Best regards Benjamin. |
Just for clarification and since an img can mean just about anything what exactly does it contain? How was it created?
If it is a disk image of some sort post the output of the file command using the -s option i.e.: file -s OMG-German-4.0.4.img The -s is used for examining block devices. |
hi, according to the results of the file command in the original post, it does not seem to be a bootable disk image backup however this mite help:
http://www.linuxquestions.org/questi...le-4175430554/ |
Quote:
Hello michaelk, Here is the output of 'file -s OMG-German-4.0.4.img': Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8805/Sourcecode_PX-8805/fw_up# file -s OMG-German-4.0.4.img Nothing valuable information extracted. |
Quote:
I looked through the post you adviced, unfortunately, it still not work. anyway, thank you all. Best regards Benjamin. |
Hello schneidz,
Some guys suggest using qemu to open .img file, if it is a disk image. Unfortunately, this image format does not support checks. Code:
root@gpl-vm:/GPL/test/ufsd/pearl/PX-8805/Sourcecode_PX-8805/fw_up# qemu-img check OMG-German-4.0.4.img Any ideas will be appreciated. Best regards Benjamin. |
Out of curiosity what is a PX-8805?
|
Hi,
I don't know what it exactly stands for, probably it stands for index, I guess. |
Quote:
|
If the image is an image of a device, such as a flash disk with multiple partitions, then the funky kpartx tool may be what you need. There is a bit of instruction on backreference.org.
--- rod. |
Why are bothering to check it? Use qemu -hd1 imagename.img
|
Hi,
It seems a index or something like that. |
^ you need to ask the people you got the image file from what it is and how to use it.
at this point we pretty much determined it is not a standard image backup. |
Hello friends,
I tried this utilities, got some information about this image: Code:
root@benjamin-virtual-machine:/GPL/PX-8805/Sourcecode_PX-8805/PX-8805 firmware updating# mkimage -l OMG-German-4.0.4.img |
All times are GMT -5. The time now is 10:59 PM. |