Skip to content

Instantly share code, notes, and snippets.

@folklore
Created February 25, 2017 17:29
Show Gist options
  • Save folklore/abd4df9563ad0a26ddb7dcce7bc42155 to your computer and use it in GitHub Desktop.
Save folklore/abd4df9563ad0a26ddb7dcce7bc42155 to your computer and use it in GitHub Desktop.
Manually resizing the SD card using a GUI with GParted
Manually resizing the SD card using a GUI with GParted
If you are using a PC with a linux distribution to resize the partitions, you can run GParted to resize the partitions using a GUI. This method is tested on Ubuntu 10.10 using the Gnome desktop. Versions of GParted differ slightly in their GUIs. For Windows users, it is also possible to follow the same procedure (less the installation) using the live version of GParted (GParted Live CD/USB/PXE/HD).
GParted can be installed using:
sudo apt-get install gparted
Note: I had to physically remove and re-insert the SD card from the card reader after writing the image before the partitions were recognised properly and the following could be done.
Start GParted (on my system it is [System]->[Administration]->[GParted Partition editor]).
Select the drive corresponding to your SD card (was /dev/sdh/ on my system). You now see the partitions mentioned above (with some tiny unallocated areas in between and a large one after).
Select the swap partition by clicking on it.
If the Resize/Move toolbar icon or [Resize/Move] menu option is disabled, go to Partition / Unmount.
Select the menu option [Partition]->[Resize/Move] and drag the partition to the right (click/drag in the middle).
Select the ext4 partition.
If the Resize/Move toolbar icon or [Resize/Move] menu option is disabled, go to Partition / Unmount.
Resize the partition by dragging the right edge of the partition all the way to the right (click/drag the right edge).
When you are satisfied with the changes, click on the green check mark, "Return" arrow, or other "apply" control to execute these changes.
You're done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment