I'm having a bit of difficulty mounting some .img files that I myself didn't create (I've been able to mount ones I've created just fine).
This is what parted shows me for one particular file:
(parted) print
Model: (file)
Disk /dir/home/name/directory/imageFile: 16.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 1049kB 16.0GB 16.0GB primary ext3 boot
So, I did the following command:
sudo mount -o loop,offset=$((1049000*512)) -t auto imageFile mountTest/
But then I get:
mount: you must specify the filesystem type
What am I doing wrong here?
$((1049000*512))
to1049000
but I still get the same message asking to specify filesystem type.1049kB
in parted refers to 1049 kibibytes rather than kilobytes. Is that what you mean? Or do you mean the mount command is asking for the size in binary bytes? I'm a bit confused about the conversions here.