2
1
I have an image file: kali-linux-1.0.9a-armhf.img
. It's an image of Kali Linux ARMH build
.
I am trying to extract the contents of the image, but to no avail. I have tried to mount the image, but I keep getting an error that the filesystem type is wrong.
I've tried with:
sudo mount -o loop -t iso9660 kali-linux-1.0.9a-armhf.img /mnt/kali
sudo mount -o loop -t ext3 kali-linux-1.0.9a-armhf.img /mnt/kali
sudo mount -o loop -t ext4 kali-linux-1.0.9a-armhf.img /mnt/kali
The error I get is:
mount: wrong fs type, bad option, bad superblock on /dev/loop0
Is this because I am trying to mount an image created for a different architecture?
The only command that gets close to working is when mounting as iso9660
. That command outputs:
mount: block device /mnt/hgfs/Downloads/kali-linux-1.0.9a-armhf/kali-linux-1.0.9a-armhf.img is write protected, mounting read only
mount: wrong fs type, bad option, bad superblock on /dev/loop0
So it appears to mount, but it doesn't and I then get an error. When using a filesystem other than iso9660
I only get the warning.
What are my options for extracting the contents of this image?
Is the
-P
a typo? The manpage forlosetup
only shows a-p
option for--pass-fd <num>
. – James Jeffery – 2014-11-13T17:16:02.583@LOLKAT: It's not a typo. The short alias of
--partscan
is upper-case-P
. If you don't see it, your distro is too old to have it. (Might be the case on Debian, which only recently pushed a util-linux update to jessie after many years of maintainership problems.) – user1686 – 2014-11-13T17:33:39.520Works, thank you. I had to use
kpartx
, which is no big deal. – James Jeffery – 2014-11-13T18:25:32.357