Linux - ISO-Image bearbeiten (RPI): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Nick (Diskussion | Beiträge) |
Nick (Diskussion | Beiträge) |
||
| Zeile 7: | Zeile 7: | ||
Ausgabe: | Ausgabe: | ||
Device Boot Start End Blocks Id System | Device Boot Start End Blocks Id System | ||
raspbian.img1 '''8192''' | raspbian.img1 '''8192''' 524288 524288 c W95 FAT32 (LBA) | ||
raspbian.img2 '''122880''' | raspbian.img2 '''122880''' 3661823 3129344 83 Linux | ||
= Partitionen einhängen (mount) = | = Partitionen einhängen (mount) = | ||
| Zeile 15: | Zeile 15: | ||
Einbinden der Partitionen. | Einbinden der Partitionen. | ||
sudo mount -o loop,offset=$((512 * '''8192''')),sizelimit=$((512 * | sudo mount -o loop,offset=$((512 * '''8192''')),sizelimit=$((512 * 524288)) raspbian.img /mnt/img1/ | ||
sudo mount -o loop,offset=$((512 * '''122880''')),sizelimit=$((512 * 2831360)) raspbian.img /mnt/img2/ | sudo mount -o loop,offset=$((512 * '''122880''')),sizelimit=$((512 * 2831360)) raspbian.img /mnt/img2/ | ||
Version vom 9. Juni 2021, 12:44 Uhr
Einbinden und bearbeiten von Disk-Images (img) wie z.B. Rapberry OS - raspbian.
Partitionen
Auflistung der Partitionen des Disk-Images (raspian.img).
fdisk -l raspian.img
Ausgabe:
Device Boot Start End Blocks Id System raspbian.img1 8192 524288 524288 c W95 FAT32 (LBA) raspbian.img2 122880 3661823 3129344 83 Linux
Partitionen einhängen (mount)
Anlegen der mount-Ordner.
sudo mkdir /mnt/img1 /mnt/img2
Einbinden der Partitionen.
sudo mount -o loop,offset=$((512 * 8192)),sizelimit=$((512 * 524288)) raspbian.img /mnt/img1/ sudo mount -o loop,offset=$((512 * 122880)),sizelimit=$((512 * 2831360)) raspbian.img /mnt/img2/
Danach kann in /mnt/img1/ oder /mnt/img2/ Dateien bearbeitet werden.
Partitionen aushängen (umount)
umount /mnt/img1/ umount /mnt/img2/