请问如何在Ubuntu下面挂载有三个分区的TF卡镜像文件, 我需要修改里面的文件内容。
离线
谢谢大佬, 这招不错, 已经学到了
$ fdisk -l /mnt/hgfs/E/v3s_wifi_ap6212_debug.img
Disk /mnt/hgfs/E/v3s_wifi_ap6212_debug.img: 1996 MB, 1996488704 bytes
255 heads, 63 sectors/track, 242 cylinders, total 3899392 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: 0x00034daf
Device Boot Start End Blocks Id System
/mnt/hgfs/E/v3s_wifi_ap6212_debug.img1 2048 526335 262144 6 FAT16
/mnt/hgfs/E/v3s_wifi_ap6212_debug.img2 526336 3598335 1536000 83 Linux
$mount -v -o offset=$((2048*512)) -t vfat /mnt/hgfs/E/v3s_wifi_ap6212_debug.img /tmp/one
$mount -v -o offset=$((526336*512)) -t vfat /mnt/hgfs/E/v3s_wifi_ap6212_debug.img /tmp/two
挂载成功了。
离线