[Linux] Boot分区满了的处理方法 The volume "boot" has only 0 bytes disk space remaining

1.查看系统目前正在用的内核

abby@abby:~$ uname -r
4.4.0-92-generic

 

2.查看/boot保存的所有内核

abby@abby:~$ ls -lah /boot
total 347M
drwxr-xr-x  4 root root 3.0K 8月  29 02:13 .
drwxr-xr-x 24 root root 4.0K 8月  29 02:12 ..
-rw-r--r--  1 root root 1.2M 6月  14 20:24 abi-4.4.0-81-generic
-rw-r--r--  1 root root 1.2M 6月  27 03:45 abi-4.4.0-83-generic
-rw-r--r--  1 root root 1.2M 7月  18 23:00 abi-4.4.0-87-generic
-rw-r--r--  1 root root 1.2M 8月   1 06:25 abi-4.4.0-89-generic
-rw-r--r--  1 root root 1.2M 8月   8 21:58 abi-4.4.0-91-generic
-rw-r--r--  1 root root 1.2M 8月  10 19:02 abi-4.4.0-92-generic
-rw-r--r--  1 root root 1.2M 8月  12 07:40 abi-4.4.0-93-generic
-rw-r--r--  1 root root 186K 6月  14 20:24 config-4.4.0-81-generic
-rw-r--r--  1 root root 186K 6月  27 03:45 config-4.4.0-83-generic
-rw-r--r--  1 root root 186K 7月  18 23:00 config-4.4.0-87-generic
-rw-r--r--  1 root root 186K 8月   1 06:25 config-4.4.0-89-generic
-rw-r--r--  1 root root 186K 8月   8 21:58 config-4.4.0-91-generic
-rw-r--r--  1 root root 186K 8月  10 19:02 config-4.4.0-92-generic
-rw-r--r--  1 root root 186K 8月  12 07:40 config-4.4.0-93-generic
drwxr-xr-x  5 root root 1.0K 8月  29 02:13 grub
-rw-r--r--  1 root root 8.9M 7月  13 04:13 initrd.img-4.4.0-64-generic
-rw-r--r--  1 root root  37M 7月  13 04:13 initrd.img-4.4.0-81-generic
-rw-r--r--  1 root root  37M 7月  13 04:12 initrd.img-4.4.0-83-generic
-rw-r--r--  1 root root  37M 7月  25 02:52 initrd.img-4.4.0-87-generic
-rw-r--r--  1 root root  37M 8月   4 04:29 initrd.img-4.4.0-89-generic
-rw-r--r--  1 root root  37M 8月  12 08:19 initrd.img-4.4.0-91-generic
-rw-r--r--  1 root root  37M 8月  16 02:35 initrd.img-4.4.0-92-generic
-rw-r--r--  1 root root  37M 8月  29 02:12 initrd.img-4.4.0-93-generic
drwx------  2 root root  12K 1月   4  2017 lost+found
-rw-r--r--  1 root root 179K 1月  28  2016 memtest86+.bin
-rw-r--r--  1 root root 181K 1月  28  2016 memtest86+.elf
-rw-r--r--  1 root root 181K 1月  28  2016 memtest86+_multiboot.bin
-rw-------  1 root root 3.8M 6月  14 20:24 System.map-4.4.0-81-generic
-rw-------  1 root root 3.8M 6月  27 03:45 System.map-4.4.0-83-generic
-rw-------  1 root root 3.8M 7月  18 23:00 System.map-4.4.0-87-generic
-rw-------  1 root root 3.8M 8月   1 06:25 System.map-4.4.0-89-generic
-rw-------  1 root root 3.8M 8月   8 21:58 System.map-4.4.0-91-generic
-rw-------  1 root root 3.8M 8月  10 19:02 System.map-4.4.0-92-generic
-rw-------  1 root root 3.8M 8月  12 07:40 System.map-4.4.0-93-generic
-rw-------  1 root root 6.8M 6月  14 20:24 vmlinuz-4.4.0-81-generic
-rw-------  1 root root 6.8M 6月  27 03:45 vmlinuz-4.4.0-83-generic
-rw-------  1 root root 6.8M 7月  18 23:00 vmlinuz-4.4.0-87-generic
-rw-------  1 root root 6.8M 8月   1 06:25 vmlinuz-4.4.0-89-generic
-rw-------  1 root root 6.8M 8月   8 21:58 vmlinuz-4.4.0-91-generic
-rw-------  1 root root 6.8M 8月  10 19:02 vmlinuz-4.4.0-92-generic
-rw-------  1 root root 6.8M 8月  12 07:40 vmlinuz-4.4.0-93-generic

 

3.除了目前正在用的内核(4.4.0-92),把其它没有用的内核删除或者移到其它分区

abby@abby:~$ sudo mv /boot/*4.4.0-81* ~/backup/boot/

如果需要更多的空间,同理把4.4.0-83, 4.0.0-87等移除即可

 

参考:

[ubuntu] Boot Partition is Full

 

posted @ 2017-08-29 10:04  焦距  阅读(3193)  评论(0编辑  收藏  举报