Currently I have the eMMC USB Debian Bullseye Core image installed on my R5S and it is running good. Now I wanted to install HA which requires Docker which requires ext4 filesystem and not OverlayFS.

So I read this article https://wiki.friendlyelec.com/wiki/inde ... _on_Debian and did everything step by step but it does not work.

fdisk -l is giving me

Disk /dev/mmcblk2: 14,56 GiB, 15634268160 bytes, 30535680 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: gpt
Disk identifier: 3B340000-0000-4201-8000-2F4500007B51

Device Start End Sectors Size Type
/dev/mmcblk2p1 16384 24575 8192 4M unknown
/dev/mmcblk2p2 24576 32767 8192 4M unknown
/dev/mmcblk2p3 32768 40959 8192 4M unknown
/dev/mmcblk2p4 40960 73727 32768 16M unknown
/dev/mmcblk2p5 73728 155647 81920 40M unknown
/dev/mmcblk2p6 155648 221183 65536 32M unknown
/dev/mmcblk2p7 221184 286719 65536 32M unknown
/dev/mmcblk2p8 286720 2777087 2490368 1,2G unknown
/dev/mmcblk2p9 2777088 30535646 27758559 13,2G unknown
/dev/mmcblk2p10 2048 16383 14336 7M Linux filesystem
/dev/mmcblk2p11 34 2047 2014 1007K Linux filesystem

partition 10 and 11 seem to be from my previous resizing attempts.

pi@NanoPi-R5S:~$ df -Th
Dateisystem Typ Größe Benutzt Verf. Verw% Eingehängt auf
udev devtmpfs 1,9G 0 1,9G 0% /dev
tmpfs tmpfs 391M 1,3M 390M 1% /run
overlay overlay 13G 892M 12G 8% /
tmpfs tmpfs 2,0G 0 2,0G 0% /dev/shm
tmpfs tmpfs 5,0M 4,0K 5,0M 1% /run/lock

So to my understanding:
- when it says "#needs to be changed to the real device" then it is "mmcblk2" because this is the device, correct?
- when it says "# Get the index of the last partition" it is "9"

so my actual commands are

export DEV=/dev/mmcblk2
sudo parted -s ${DEV} unit MiB print
(echo n; echo ""; echo ""; echo ""; echo w) | sudo fdisk ${DEV}
NUM=$(sudo parted ${DEV} print | awk 'NF > 1 {p = $9} END {print p}')
sudo mkfs.ext4 ${DEV}p${NUM}

correct?