I didn't like that dietpi took the whole SD card for root. I'm using a 256G card and I prefer separate filesystems.
I was able to resize the root filesystem to 6G using resize2fs and then I fdisk'd the SD card and adjusted the partition size. System comes up, fsck runs fine, system mounts clean.
When I do fdisk -l on /dev/mmcblk0 there are only two partitons there, as expected, boot and root. The problem is when I tried to create partition three and start partitioning the rest of the disk, the system thinks there is only 3M left. How do I get it to see the rest of the card?
Code: Select all
Disk /dev/mmcblk0: 234.1 GiB, 251406581760 bytes, 491028480 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: 0x00000000 <not shown> Device Boot Start End Sectors Size Id Type /dev/mmcblk0p1 8192 532479 524288 256M c W95 FAT32 (LBA) /dev/mmcblk0p2 532480 13115392 12582913 6G 83 Linux