mount a image for linux & qnx
how to mount a image for linux & qnx ? I wasted some time on it recently. writing the note, hope it can help!
Step-by-step guide
mount a image with mutil parition on linux [losetup and kpartx is needed]
- losetup /dev/loop0 <your mutilparition image file>,
- kpartx -a /dev/loop0,
- then you can find all the parition in /dev/mapper/ eg /dev/mapper/loop0p1, /dev/mapper/loop0p2
- mount /dev/mapper/loop0p1 <your work directory>
- umount <your work directory>
- kpartx -d /dev/loop0
- losetup -d /dev/loop0
mount a image with single parition on linux
- mount -o loop <your single image file> <your work directory>
- or you can use "mount <your single image file> <your work directory>" directly in the glsdk
mount a image on qnx
- devb-loopback blk cache=256k,vnode=128,automount=lo0:<your work directory>:qnx6 loopback ro,blksz=2048,fd=<your single image file>
- umount <your work directory>
- slay devb-loopback to delete lo0 completely