- 使用fdisk -l <iso.file> 查看起始块位置
-
Disk Stick.img: 3984 MB, 3984588800 bytes 249 heads, 6 sectors/track, 5209 cylinders, total 7782400 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0004bfaa Device Boot Start End Blocks Id System Stick.img1 * 128 8015999 4007936 b W95 FAT32
起始块位于 128, 每块大小512byte, 起始偏移为: 128*512
-
使用 loop 类型挂载, 设置offset.
mount -o loop,offset=$((128*512)) Stick.img /mnt/tmp
转载于:https://my.oschina.net/u/4011257/blog/3022657