⇤ ← Revision 1 vom 2022-12-02 16:57:26
Größe: 1239
Kommentar:
|
Größe: 1335
Kommentar:
|
Gelöschter Text ist auf diese Art markiert. | Hinzugefügter Text ist auf diese Art markiert. |
Zeile 6: | Zeile 6: |
-rw-r--r-- 1 pi pi 1.8G Mar 23 18:54 2020-02-13-raspbian-buster-lite.img | -rw-r--r-- 1 hss hss 2009071616 Nov 4 18:14 2022-09-22-raspios-bullseye-arm64-lite.img |
Zeile 8: | Zeile 8: |
# 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 |
# fdisk -lu 2022-09-22-raspios-bullseye-arm64-lite.img Festplatte 2022-09-22-raspios-bullseye-arm64-lite.img: 1,89 GiB, 2009071616 Bytes, 3923968 Sektoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes Festplattenbezeichnungstyp: dos Festplattenbezeichner: 0x21e60f8c |
Zeile 16: | Zeile 16: |
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 |
Gerät Boot Anfang Ende Sektoren Größe Kn Typ 2022-09-22-raspios-bullseye-arm64-lite.img1 8192 532479 524288 256M c W95 2022-09-22-raspios-bullseye-arm64-lite.img2 532480 3923967 3391488 1,6G 83 Lin |
Zeile 22: | Zeile 22: |
# mount -t vfat -o loop,offset=$((8192 * 512)),sizelimit=$((524288 * 512)) 2020-02-13-raspbian-buster-lite.img /mnt/boot | # mount -t vfat -o loop,offset=$((8192 * 512)),sizelimit=$((524288 * 512)) 2022-09-22-raspios-bullseye-arm64-lite.img /mnt/boot |
Zeile 26: | Zeile 26: |
# mount -t ext4 -o loop,offset=$((532480 * 512)),sizelimit=$((3080192 * 512)) 2020-02-13-raspbian-buster-lite.img /mnt/root | # mount -t ext4 -o loop,offset=$((532480 * 512)),sizelimit=$((3391488 * 512)) 2022-09-22-raspios-bullseye-arm64-lite.img /mnt/root |
Eine Partition aus dem Image extrahieren
# ls -lh *.img -rw-r--r-- 1 hss hss 2009071616 Nov 4 18:14 2022-09-22-raspios-bullseye-arm64-lite.img # fdisk -lu 2022-09-22-raspios-bullseye-arm64-lite.img Festplatte 2022-09-22-raspios-bullseye-arm64-lite.img: 1,89 GiB, 2009071616 Bytes, 3923968 Sektoren Einheiten: Sektoren von 1 * 512 = 512 Bytes Sektorgröße (logisch/physikalisch): 512 Bytes / 512 Bytes E/A-Größe (minimal/optimal): 512 Bytes / 512 Bytes Festplattenbezeichnungstyp: dos Festplattenbezeichner: 0x21e60f8c Gerät Boot Anfang Ende Sektoren Größe Kn Typ 2022-09-22-raspios-bullseye-arm64-lite.img1 8192 532479 524288 256M c W95 2022-09-22-raspios-bullseye-arm64-lite.img2 532480 3923967 3391488 1,6G 83 Lin # mkdir /mnt/boot /mnt/root # mount -t vfat -o loop,offset=$((8192 * 512)),sizelimit=$((524288 * 512)) 2022-09-22-raspios-bullseye-arm64-lite.img /mnt/boot # ls /mnt/boot # mount -t ext4 -o loop,offset=$((532480 * 512)),sizelimit=$((3391488 * 512)) 2022-09-22-raspios-bullseye-arm64-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