解决Ubuntu 16.04下提示boot分区空间不足的办法
生活随笔
收集整理的這篇文章主要介紹了
解决Ubuntu 16.04下提示boot分区空间不足的办法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
原文地址: http://www.jb51.net/article/106976.htm https://www.linuxidc.com/Linux/2015-09/123227.htm
因為linux內核一直在更新,更新后,舊的內核就不在使用,但舊的內核文件還在boot里面,占據著空間,更新幾次過后boot分區就會被占滿,顯示boot磁盤空間不足。解決辦法: 將不用的內核文件刪除,釋放空間。步驟如下 一、查看已安裝的內核dpkg --get-selections |grep linux-imageeason@eason:~$ dpkg --get-selections |grep linux-image linux-image-4.4.0-21-generic deinstall linux-image-4.4.0-57-generic install linux-image-4.4.0-59-generic install linux-image-4.4.0-62-generic install linux-image-4.4.0-64-generic install linux-image-extra-4.4.0-21-generic deinstall linux-image-extra-4.4.0-57-generic install linux-image-extra-4.4.0-59-generic install linux-image-extra-4.4.0-62-generic install linux-image-extra-4.4.0-64-generic install linux-image-extra-virtual install linux-image-generic install eason@eason:~$后面帶deinstall的為已刪除的內核,可以忽略二、使用uname -a查看自己當前啟動的是哪個內核 eason@eason:~$ uname -a Linux eason 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux 從輸出可知我們當前啟動的內核是4.4.0-62-generic三、運行apt-get remove命令卸載其他內核,為了保險起見,保留最近的一兩個版本。在刪除舊內核之前,記住最好留有2個最近的內核(最新的和上一個版本),以防主要的版本出錯。現在就讓我們看看如何在Ubuntu上清理舊內核。sudo apt-get remove linux-image-4.4.0-57-generic sudo apt-get remove linux-image-4.4.0-59-generic sudo apt-get remove linux-image-extra-4.4.0-57-generic sudo apt-get remove linux-image-extra-4.4.0-59-generic 如提示有未卸載干凈的可以執行sudo apt-get remove來卸載。或者如果有很多沒用的內核,你可以用shell表達式來一次性地刪除多個內核。注意這個括號表達式只在bash或者兼容的shell中才有效。$ sudoapt-get purge linux-image-3.19.0-{18,20,21,25} $ sudoapt-get purge linux-headers-3.19.0-{18,20,21,25}轉載于:https://www.cnblogs.com/nyist-xsk/p/8534251.html
總結
以上是生活随笔為你收集整理的解决Ubuntu 16.04下提示boot分区空间不足的办法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [导入]相片: 53787515.jp
- 下一篇: ubuntu安装chrome drive