Eine Partition aus dem Image extrahieren
# ls -lh *.img -rw-r--r-- 1 pi pi 1.8G Mar 23 18:54 2020-02-13-raspbian-buster-lite.img # fdisk -lu 2020-02-13-raspbian-buster-lite.img Disk 2020-02-13-raspbian-buster-lite.img: 1.7 GiB, 1849688064 bytes, 3612672 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: 0x738a4d67 Device Boot Start End Sectors Size Id Type 2020-02-13-raspbian-buster-lite.img1 8192 532479 524288 256M c W95 FAT32 (LBA) 2020-02-13-raspbian-buster-lite.img2 532480 3612671 3080192 1.5G 83 Linux # mkdir /mnt/boot /mnt/root # mount -t vfat -o loop,offset=$((8192 * 512)),sizelimit=$((524288 * 512)) 2020-02-13-raspbian-buster-lite.img /mnt/boot # ls /mnt/boot # mount -t ext4 -o loop,offset=$((532480 * 512)),sizelimit=$((3080192 * 512)) 2020-02-13-raspbian-buster-lite.img /mnt/root # ls /mnt/root bin dev home lost+found mnt proc run srv tmp var boot etc lib media opt root sbin sys usr # umount /mnt/boot #umount /mnt/root