linux如何删除boot分区,怎么清理boot分区
PS:原創文章,如需轉載,請注明出處,謝謝!
本文地址:http://flyer0126.iteye.com/blog/2190925
今天利用“apt-get install ”安裝時遇到“gzip:?stdout:?No?space?left?on?device”錯誤,利用df -h查看如下:
文件系統 容量 已用 可用 已用% 掛載點
/dev/sda1 14G 12G 2.1G 85% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 1.9G 4.0K 1.9G 1% /dev
tmpfs 392M 1.3M 390M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 21M 1.9G 2% /run/shm
none 100M 52K 100M 1% /run/user
/dev/sda2 440G 51G 367G 13% /home
/dev/sda3 115M 98M 8.3M 93% /boot
/boot分區空間剩余不足,需清理掉無用的舊內核。
1. 查看內核
dpkg --get-selections|grep linux-image
命令結果如:
linux-image-3.13.0-32-genericinstall
linux-image-3.13.0-34-genericinstall
linux-image-3.13.0-45-genericinstall
linux-image-3.13.0-46-genericinstall
linux-image-extra-3.13.0-32-genericinstall
linux-image-extra-3.13.0-34-genericinstall
linux-image-extra-3.13.0-45-genericinstall
linux-image-extra-3.13.0-46-genericinstall
linux-image-genericinstall
2. 查看現在使用的內核心
uname -r
命令結果如:
3.13.0-34-generic
3. 把不再使用的內核用apt-get purge命令卸載掉。執行如下:
sudo apt-get purge linux-image-3.13.0-32-generic
總結
以上是生活随笔為你收集整理的linux如何删除boot分区,怎么清理boot分区的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iOS开发~UI布局(二)storybo
- 下一篇: linux下用u盘安装xp系统安装教程,