Linux - ISO-Image bearbeiten (RPI): Unterschied zwischen den Versionen

Aus Nicki Wiki
Zur Navigation springen Zur Suche springen
Zeile 7: Zeile 7:
Ausgabe:
Ausgabe:
  Device        Boot    Start      End  Blocks  Id System
  Device        Boot    Start      End  Blocks  Id System
  raspbian.img1            <pre style="color: red">8192</pre>   122879  57344   c W95 FAT32 (LBA)
  raspbian.img1            8192    122879  57344 c W95 FAT32 (LBA)
  raspbian.img2          122880  5785599 2831360  83 Linux
  raspbian.img2          122880  5785599 2831360  83 Linux



Version vom 3. März 2021, 06:55 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    122879   57344  c W95 FAT32 (LBA)
raspbian.img2          122880   5785599 2831360  83 Linux

Partitionen einhängen (mount)

Anlegen der mount-Ordner.

mkdir /mnt/img1 /mnt/img2

Einbinden der Partitionen.

mount -o loop,offset=$((512 * 8192)) raspbian.img /mnt/img1/
mount -o loop,offset=$((512 * 122880)) 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/