Expand SD root filesystem.

Run df -h

Insert SD card and run df -h again.

/dev/sdc2 is partition 2 which contains the root filesystem. We’re going to expand this filesystem to match its partition size.

And then enter these commands: d, 2, n, p, 2, hit enter, hit enter, w.

Now we need to resize the filesystem in partition 2. First we need to un-mount this partition. Refer to the df -h listing to see the mount point for /dev/sdc2.

Then do these commands:

When completed, run sync and then remove the SD card. Re-insert the SD card and run df -h again to confirm if the partition is expanded.

1 thought on “Expand SD root filesystem.”

Comments are closed.