add:http://www.it610.com/article/2013010.htm
-------------------------------------------------------------
清理/boot目录提示的空间不足问题
问题描述:
slim@s-405:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/s--404--vg-root 73891032 21803560 48310960 32% /
none 4 0 4 0% /sys/fs/cgroup
udev 4076832 4 4076828 1% /dev
tmpfs 817596 672 816924 1% /run
none 5120 0 5120 0% /run/lock
none 4087968 0 4087968 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 229765 0 100% /boot
解决:
-------------------------------------------------------------
清理/boot目录提示的空间不足问题
问题描述:
slim@s-405:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/s--404--vg-root 73891032 21803560 48310960 32% /
none 4 0 4 0% /sys/fs/cgroup
udev 4076832 4 4076828 1% /dev
tmpfs 817596 672 816924 1% /run
none 5120 0 5120 0% /run/lock
none 4087968 0 4087968 0% /run/shm
none 102400 0 102400 0% /run/user
/dev/sda1 240972 229765 0 100% /boot
解决:
apt安装更新时有时提示:需要花去 x M 磁盘上总计 /boot 的空间。请在 磁盘上流出 /boot 空间。sudo apt-get clean
系统自动升级会安装多个内核,卸载多余的内核可以获得更多磁盘空间
di@archermind-Lenovo:~$ dpkg --get-selections|grep linux //带有image的为系统内核
linux-image-3.2.0-29-generic install
linux-image-3.2.0-33-generic install
linux-image-3.2.0-34-generic install
linux-image-3.2.0-33-generic install
linux-image-3.2.0-34-generic install
di@archermind-Lenovo:~$ uname -a //查看系统当前使用内核
Linux archermind-Lenovo 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
di@archermind-Lenovo:~$ sudo apt-get remove image-3.2.0-29-generic //卸载多余内核
没有评论:
发表评论