[Arm-netbook] Dissecting the SD Card Image
Dominique Dumont
domi.dumont at free.fr
Sat Apr 21 09:41:12 BST 2012
Le Friday 20 April 2012 15:11:07, Paul Kench a écrit :
> If you uncompress the image, you can mount the individual partitions with
> the following commands (works on a wheezy system).
>
> sudo mount -o loop,offset=1048576 mele-ubuntu-lucid.img <your 1st target
> directory>
>
> sudo mount -o loop,offset=17825792 mele-ubuntu-lucid.img <your 2nd target
> directory>
Eeek, better not mess up the offset.
Here's a more "fat-finger" friendly way:
$ sudo kpartx -l armhf-2GB_20111122.img
loop0p1 : 0 124976 /dev/loop0 16
loop0p2 : 0 3737536 /dev/loop0 124992
loop deleted : /dev/loop0
$ sudo kpartx -a armhf-2GB_20111122.img
$ mkdir l1 l2
$ sudo mount -o loop /dev/mapper/loop0p1 l1/
$ sudo mount -o loop /dev/mapper/loop0p2 l2/
Yes, I've added this alternative way in the wiki :-)
Hope this helps
Dominique
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.phcomp.co.uk/pipermail/arm-netbook/attachments/20120421/57de3ccd/attachment.bin
More information about the arm-netbook
mailing list