sudo fdisk /dev/mmcblk0 then
p I’m able to see that I have four partitions created as follows;
Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 * 24576 548863 524288 256M c W95 FAT32 (LBA) /dev/mmcblk0p2 548864 7847935 7299072 3.5G 83 Linux /dev/mmcblk0p3 7847936 15147007 7299072 3.5G 83 Linux /dev/mmcblk0p4 15147008 62333951 47186944 22.5G 83 Linux
mount | sed -n 's|^/dev/\(.*\) on / .*|\1|p'
tells me that the root partition is /dev/mmcblk0p2
I want to be able to access the 22.5G of memory from where mender and my application run by deleting the right partitions and expanding them into one.
I’ve seen ample solutions posted covering the process of how to do this using
fdisk. Most of them only have two or 3 partitions. I’ve tried deleting partitions
/dev/mmcblk0p4 as well as just
/dev/mmcblk0p4 then adding them back as a new partition. However each time when I reboot the RPi times out when I try to SSH back into it. I then reformat my disk and reflash the backup image I made before attempting this.