{"id":262,"date":"2014-08-25T11:56:53","date_gmt":"2014-08-25T10:56:53","guid":{"rendered":"http:\/\/www.ingby.com\/?p=262"},"modified":"2015-03-09T18:57:00","modified_gmt":"2015-03-09T17:57:00","slug":"ubuntu-12-04-lts-och-hwe","status":"publish","type":"post","link":"https:\/\/www.ingby.com\/?p=262","title":{"rendered":"Ubuntu 12.04 LTS och HWE"},"content":{"rendered":"<p>Ubuntu 12.04 LTS got something called the Hardware Enablement Stacks (HWE), to support newer hardware. A LTS release is supported for 5 years. There are different versions of the HWE, where only some is supported for the full LTS lifetime. More info here:<br \/>\n<a href=\"https:\/\/wiki.ubuntu.com\/1204_HWE_EOL\">HWE End-of-life<\/a><\/p>\n<p>To make this story short. I want to remain on 12.04 LTS, so I decided to upgrade the HWE. However, the upgrade failed due to a full \/boot, leading to clean-up efforts. Therefor, make sure to check your disk before starting the HWE upgrade:<\/p>\n<p><code>$ df -h<br \/>\nFilesystem             Size  Used Avail Use% Mounted on<br \/>\n\/dev\/mapper\/xyz-root    40G   28G  9,7G  75% \/<br \/>\nudev                   2,0G  4,0K  2,0G   1% \/dev<br \/>\ntmpfs                  396M  304K  396M   1% \/run<br \/>\nnone                   5,0M     0  5,0M   0% \/run\/lock<br \/>\nnone                   2,0G     0  2,0G   0% \/run\/shm<br \/>\n\/dev\/vda1              228M  210M  5,9M  98% \/boot<\/code><\/p>\n<p>That is not enough space.<\/p>\n<p>Run the following to identify old kernels to remove:<br \/>\n<code>$ dpkg -l 'linux-*' | sed '\/^ii\/!d;\/'\"$(uname -r | sed \"s\/\\(.*\\)-\\([^0-9]\\+\\)\/\\1\/\")\"'\/d;s\/^[^ ]* [^ ]* \\([^ ]*\\).*\/\\1\/;\/[0-9]\/!d'<\/code><\/p>\n<p>I found e.g. that I had a 3.5.0-42 kernel that I could remove:<\/p>\n<p><code>$ sudo apt-get purge linux-image-3.5.0-42-generic linux-headers-3.5.0-42 linux-headers-3.5.0-42-generic<\/code><\/p>\n<p><code>$ df -h<br \/>\nFilesystem             Size  Used Avail Use% Mounted on<br \/>\n\/dev\/mapper\/xyz-root    40G   27G   11G  73% \/<br \/>\nudev                   2,0G   12K  2,0G   1% \/dev<br \/>\ntmpfs                  396M  308K  396M   1% \/run<br \/>\nnone                   5,0M     0  5,0M   0% \/run\/lock<br \/>\nnone                   2,0G     0  2,0G   0% \/run\/shm<br \/>\n\/dev\/vda1              228M  151M   65M  70% \/boot<br \/>\n<\/code><\/p>\n<p>Enough space so lets upgrade:<\/p>\n<p><code>sudo apt-get install linux-generic-lts-trusty linux-image-generic-lts-trusty<\/code><\/p>\n<p>Reboot and get the greeting &#8221;Your Hardware Enablement Stack (HWE) is supported until April 2017.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 12.04 LTS got something called the Hardware Enablement Stacks (HWE), to support newer hardware. A LTS release is supported for 5 years. There are different versions of the HWE, where only some is supported for the full LTS lifetime. More info here: HWE End-of-life To make this story short. I want to remain on &hellip; <a href=\"https:\/\/www.ingby.com\/?p=262\" class=\"more-link\">Forts\u00e4tt l\u00e4sa <span class=\"screen-reader-text\">Ubuntu 12.04 LTS och HWE<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[28],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/posts\/262"}],"collection":[{"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ingby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=262"}],"version-history":[{"count":1,"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/www.ingby.com\/index.php?rest_route=\/wp\/v2\/posts\/262\/revisions\/263"}],"wp:attachment":[{"href":"https:\/\/www.ingby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ingby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ingby.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}