themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to mount a partition from a full binary image with an offset

$ sudo fdisk -lu sda.img
...
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
...
  Device Boot      Start         End      Blocks   Id  System
sda.img1   *          56     6400000     3199972+   c  W95 FAT32 (LBA)

$ mount -o loop,offset=$((56 * 512)) sda.img /mnt