[dundee] FAT32 Image mounten
Andrew Clayton
andrew at digital-domain.net
Tue Nov 17 17:08:44 UTC 2009
On Tue, 17 Nov 2009 16:14:15 +0100, Axel wrote:
>
> Hello,
>
> I try to mount a disk image file. This image file contain a FAT32
> partition and unallocated space.
>
> By use:
> mount -t vfat -o loop disk.img /mnt
> I get this error: wrong fs type, bad option, bad superblock
> on /dev/loop0
>
> So I need the mount option offset. How I find the right offset value?
>
> Everyone an idea?
When dealing with a image with partitions, you need to use kpartx
# kpartx -a disk.img
Then look in
/dev/mapper
You should see files like
brw-rw---- 1 root disk 253, 0 2008-06-04 15:43 loop0p1
representing the partitions in the image.
To mount them
# mount -t vfat /dev/mapper/loop0p1 /mnt/image
To clean up
# umount /mnt/image
# kaprtx -d disk.img
> Cheers
> Axel
Andrew
More information about the dundee
mailing list