{"id":2376,"date":"2016-01-06T18:00:43","date_gmt":"2016-01-06T18:00:43","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=2376"},"modified":"2025-01-20T11:12:13","modified_gmt":"2025-01-20T11:12:13","slug":"gparted","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/software_utilities\/disk-tools\/gparted","title":{"rendered":"gparted"},"content":{"rendered":"\n<p>&#8216;gparted&#8217; is the graphical version of &#8216;parted&#8217; and is the tool to use to resize the main partition used for raspbian (or you could use use&nbsp;parted if you prefer the command line of course!). &nbsp;It can also be used to check and repair a SD card disk.<\/p>\n\n\n\n<p>To do this <em><strong>you&#8217;ll need to put the SD card you want to work on in a USB to SD card adaptor and boot your RPi from a separate SD card<\/strong><\/em>. &nbsp;If you&#8217;d rather use a windows tool we&#8217;ve found that&nbsp;gparted&nbsp;just works whereas all of the windows based partition managers we tried don&#8217;t, so better to just get over the hassle factor and use the RPi to do this if you don&#8217;t have a separate Linux system.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Installing gparted on the separate Raspbian SD card that will perform the change<\/h4>\n\n\n\n<p>From the command line use:<\/p>\n\n\n\n<p>sudo apt-get update<\/p>\n\n\n\n<p>sudo&nbsp;apt-get upgrade<\/p>\n\n\n\n<p>sudo apt-get install gparted<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Running gparted<\/h4>\n\n\n\n<p>It doesn&#8217;t seem to be necesary to run it after using use &#8216;sudo startx&#8217;\u00a0to load the GUI as root any more, so just use as normal.<\/p>\n\n\n\n<p>Start menu > System tools > gparted<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Resizing Your Main Partition<\/h4>\n\n\n\n<p>From the top bar devices drop down select &#8220;dev\/sda&#8221; (or whatever your external USB adaptor has been called).<\/p>\n\n\n\n<p>Right&nbsp;click somewhere on the graphic&nbsp;and&nbsp;select &#8216;unmount&#8217; first as operations can&#8217;t be carried out on a mounted partition.<\/p>\n\n\n\n<p>Right click the main &#8216;ext4&#8217; partition and select &#8216;check&#8217;, then click the green tick&nbsp;and let it check the partition for you (this isn&#8217;t essential but its a good idea as if there are issues it will likely cause the resize to fail).<\/p>\n\n\n\n<p>Right click the main &#8216;ext4&#8217; partition and select &#8216;resize&#8217; then enter the new size you want it to be.<\/p>\n\n\n\n<p>Right click the main &#8216;ext4&#8217; partition and select &#8216;check&#8217; (we&#8217;ve found this to be necessary to ensure the new partition size is correctly updated in the file system even though it should be done as part of the resize &#8211; kept us chasing constantly failed resizes for hours before we discovered this).<\/p>\n\n\n\n<p>Finally click the green&nbsp;arrow button to carry out the changes.<\/p>\n\n\n\n<p>Reboot the RPi (yep its stupid but we&#8217;ve found a reboot to be needed even after removing and re-inserting the SD card), run gparted, select the USB drive and check the ext4 partition is locked again (mounted).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8216;gparted&#8217; is the graphical version of &#8216;parted&#8217; and is the tool to use to resize the main partition used for raspbian (or you could use use&nbsp;parted if you prefer the command line of course!). &nbsp;It can also be used to check and repair a SD card disk. To do this you&#8217;ll need to put the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-2376","post","type-post","status-publish","format-standard","hentry","category-disk-tools"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=2376"}],"version-history":[{"count":21,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2376\/revisions"}],"predecessor-version":[{"id":3828,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/2376\/revisions\/3828"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=2376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=2376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=2376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}