使用bzip2 -d -f 把*.sdcard.bz2解压成sdcard文件
在命令行中使用mount挂载 ,umount卸载
offset=16384*512=8388608
marvin@ubuntu:~/Desktop$ sudo mount -o loop,offset=8388608 fsl-image-validation-imx-imx8mmevk.sdcard /mnt
marvin@ubuntu:~/Desktop$ sudo umount /mnt
marvin@ubuntu:~/Desktop$ sudo fdisk ./fsl-image-validation-imx-imx8mmevk.sdcard
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk ./fsl-image-validation-imx-imx8mmevk.sdcard: 3.9 GiB, 4177941504 bytes, 8160042 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
Disklabel type: dos
Disk identifier: 0xe119d371
Device Boot Start End Sectors Size Id Type
./fsl-image-validation-imx-imx8mmevk.sdcard1 * 16384 186775 170392 83.2M c W95 FAT32 (LBA)
./fsl-image-validation-imx-imx8mmevk.sdcard2 196608 8160041 7963434 3.8G 83 Linux
Command (m for help): q
marvin@ubuntu:~/Desktop$ sudo mount -o loop,offset=100663296 fsl-image-validation-imx-imx8mmevk.sdcard /mnt
marvin@ubuntu:~/Desktop$ sudo umount /mnt
offset=196608*512=100663296