{"id":2177,"date":"2020-04-24T22:20:27","date_gmt":"2020-04-25T05:20:27","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=2177"},"modified":"2020-04-24T22:20:27","modified_gmt":"2020-04-25T05:20:27","slug":"resize-disk-partition","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/resize-disk-partition\/","title":{"rendered":"Resize Disk Partition"},"content":{"rendered":"\n<p>To resize CentOS to use full microSD card size<br>start by entering fdisk mode<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo fdisk \/dev\/mmcblk0<\/pre>\n\n\n\n<p>command : p to print partition table <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"680\" height=\"311\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2020\/04\/image-15.png\" alt=\"\" class=\"wp-image-2180\"\/><\/figure>\n\n\n\n<p>choose the Linux partition and take note of the Start sector (i.e. 2433024) then end will be the last sector on the disk size line<\/p>\n\n\n\n<p>command : d                     [will delete a partition]<br>Partition number (1-4): [4 will delete the OS partition table]<br>command : n                     [create a new partition]<br>Partition Type: <br>Select ( default p) : p       [primary partition]<br>First Sector : 2433024<br>Last Sector : 30253056<\/p>\n\n\n\n<p>The partition type shall remain as Linux<br>to change the type<br>command : t <br>Partition number : 4<br>Hex code : 83   (linux code,  l gives list of all codes)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"422\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2020\/04\/image-14.png\" alt=\"\" class=\"wp-image-2179\"\/><\/figure>\n\n\n\n<p> to verify new partition table <br>command : p<br><\/p>\n\n\n\n<p>when new partitions are correct <br>command : w      writes new partitions<\/p>\n\n\n\n<p> reboot pi<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo reboot now<\/pre>\n\n\n\n<p>After rebooting check changes to partition table<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo fdisk \/dev\/mmcblk0<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"292\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2020\/04\/image-16.png\" alt=\"\" class=\"wp-image-2181\"\/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To resize CentOS to use full microSD card sizestart by entering fdisk mode sudo fdisk \/dev\/mmcblk0 command : p to print partition table choose the Linux partition and take note of the Start sector (i.e. 2433024) then end will be the last sector on the disk size line command : d [will delete a partition]Partition &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/resize-disk-partition\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Resize Disk Partition&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2177","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=2177"}],"version-history":[{"count":0,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2177\/revisions"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=2177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}