{"id":3570,"date":"2017-10-19T22:28:57","date_gmt":"2017-10-19T22:28:57","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3570"},"modified":"2017-10-19T22:28:57","modified_gmt":"2017-10-19T22:28:57","slug":"increase-space-ubuntu-boot-partition","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2017\/10\/19\/increase-space-ubuntu-boot-partition\/","title":{"rendered":"How to increase space on a Ubuntu boot partition"},"content":{"rendered":"<p>How can I increase the space on an Ubuntu Boot Partition?<\/p>\n<p>When trying to install programs on my Ubuntu server but the server is not allowing me to do that because the boot partition &#8216;\/dev\/sda1&#8217; is full. <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\/dev\/sda1       236M   236M  0M  100% \/boot\n<\/pre>\n<p>By default Ubuntu has a small \/boot partition. When you have auto updates enabled this can cause some issues as newer kernels are not automatically purged. So, you will need to increase the size of the Ubuntu Boot Partition.<\/p>\n<p>You can add the following to your crontab to run every Sunday night at 11:30PM to clean out old kernels. You can do so by running crontab -e as root and adding the following line at the bottom of that file.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n30 23 * * 6 apt-get autoremove\n\n<\/pre>\n<p>You will also want to reboot every so often so newer kernels are being used and newer kernels are not causing the issues. I would suggest rebooting at your earliest convenience and running <\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# apt-get autoremove \n<\/pre>\n<p>to load the newest kernel and delete the older kernels already installed on your server.<\/p>\n<p>However, once rebooted and the autoremove command is done more disk space will be free. <\/p>\n<p>Info<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ df -h\nFilesystem      Size  Used Avail Use% Mounted on\nudev            990M  4.0K  990M   1% \/dev\ntmpfs           201M  716K  200M   1% \/run\n\/dev\/dm-0        15G  1.9G   12G  14% \/\nnone            4.0K     0  4.0K   0% \/sys\/fs\/cgroup\nnone            5.0M     0  5.0M   0% \/run\/lock\nnone           1001M     0 1001M   0% \/run\/shm\nnone            100M     0  100M   0% \/run\/user\n\/dev\/sda1       236M   72M  152M  32% \/boot\n\n<\/pre>\n<p>[\/bash]<\/p>\n<p>$ du -shcx \/boot\/*<br \/>\n1.2M    \/boot\/abi-3.16.0-30-generic<br \/>\n1.2M    \/boot\/abi-3.16.0-77-generic<br \/>\n169K    \/boot\/config-3.16.0-30-generic<br \/>\n169K    \/boot\/config-3.16.0-77-generic<br \/>\n6.7M    \/boot\/grub<br \/>\n21M     \/boot\/initrd.img-3.16.0-30-generic<br \/>\n21M     \/boot\/initrd.img-3.16.0-77-generic<br \/>\ndu: cannot read directory \u2018\/boot\/lost+found\u2019: Permission denied<br \/>\n12K     \/boot\/lost+found<br \/>\n174K    \/boot\/memtest86+.bin<br \/>\n175K    \/boot\/memtest86+.elf<br \/>\n176K    \/boot\/memtest86+_multiboot.bin<br \/>\n3.4M    \/boot\/System.map-3.16.0-30-generic<br \/>\n3.4M    \/boot\/System.map-3.16.0-77-generic<br \/>\n6.1M    \/boot\/vmlinuz-3.16.0-30-generic<br \/>\n6.2M    \/boot\/vmlinuz-3.16.0-77-generic<br \/>\n70M     total<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How can I increase the space on an Ubuntu Boot Partition? When trying to install programs on my Ubuntu server but the server is not allowing me to do that because the boot partition &#8216;\/dev\/sda1&#8217; is full. \/dev\/sda1 236M 236M 0M 100% \/boot By default Ubuntu has a small \/boot partition. When you have auto &#8230; <a title=\"How to increase space on a Ubuntu boot partition\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2017\/10\/19\/increase-space-ubuntu-boot-partition\/\" aria-label=\"Read more about How to increase space on a Ubuntu boot partition\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117],"tags":[],"class_list":["post-3570","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3570"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3570\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}