embeded/raspberry pi2016. 9. 2. 15:38

fdisk로 파일명을 넣어주고 나서 offset 이용해서 마운트하면 되는구나...


$ fdisk -l whatever.img

Device         Boot     Start       End  Blocks  Id System

whatever.img1            8192    122879   57344   c W95 FAT32 (LBA)

whatever.img2          122880   5785599 2831360  83 Linux


$ mount -v -o offset=4194304 -t vfat whatever.img /mnt/img/one

$ mount -v -o offset=62914560 -t ext4 whatever.img /mnt/img/two


1st partition 512 * 8192 = 4194304

2nd partition 512 * 122880 = 62914560


[링크 : http://raspberrypi.stackexchange.com/.../how-can-i-mount-a-raspberry-pi-linux-distro-image]

Posted by 구차니