我有个问题。我注意到我的 VPS 说:
=> /boot 正在使用 193MB 的 98.4%
看起来好像出了什么问题,不是吗?
我试着跑过去dpkg -l | grep linux
看看那里有什么。
这是输出:
ii libselinux1 2.1.0-4.1ubuntu1 SELinux runt ime shared libraries
ii linux-firmware 1.79.7 Firmware for Linux kernel drivers
iU linux-generic-pae 3.2.0.56.66 Complete Gen eric Linux kernel
ii linux-headers-3.2.0-45 3.2.0-45.70 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-45-generic-pae 3.2.0-45.70 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-48 3.2.0-48.74 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-48-generic-pae 3.2.0-48.74 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-51 3.2.0-51.77 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-51-generic-pae 3.2.0-51.77 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-52 3.2.0-52.78 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-52-generic-pae 3.2.0-52.78 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-53 3.2.0-53.81 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-53-generic-pae 3.2.0-53.81 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-54 3.2.0-54.82 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-54-generic-pae 3.2.0-54.82 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-55 3.2.0-55.85 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-55-generic-pae 3.2.0-55.85 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-3.2.0-56 3.2.0-56.86 Header files related to Linux kernel version 3.2.0
ii linux-headers-3.2.0-56-generic-pae 3.2.0-56.86 Linux kernel headers for version 3.2.0 on 32 bit x86 SMP
ii linux-headers-generic-pae 3.2.0.56.66 Generic Linu x kernel headers
ii linux-image-3.2.0-29-generic-pae 3.2.0-29.46 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-45-generic-pae 3.2.0-45.70 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-48-generic-pae 3.2.0-48.74 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-51-generic-pae 3.2.0-51.77 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-52-generic-pae 3.2.0-52.78 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-53-generic-pae 3.2.0-53.81 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-54-generic-pae 3.2.0-54.82 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii linux-image-3.2.0-55-generic-pae 3.2.0-55.85 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
iF linux-image-3.2.0-56-generic-pae 3.2.0-56.86 Linux kernel image for version 3.2.0 on 32 bit x86 SMP
iU linux-image-generic-pae 3.2.0.56.66 Generic Linu x kernel image
ii util-linux 2.20.1-1ubuntu3 Miscellaneou
我可以做什么来解决这个问题?
我可以安全地删除什么?
答案1
您应该卸载旧版本。通常,除了您现在正在运行的版本之外,无需保留多个版本(工作版本)。
确保首先检查(使用uname
)您是否在上次更新(对于最后一个版本 3.2.0-56,即今天)后实际重新启动并运行最新版本。如果您确实删除了所有内容但不包括 3.2.0.55。
如果您运行的是旧版本,则应该能够删除除正在运行的版本和最后一个版本 (3.2.0.56) 之外的所有版本,其他版本将永远不会在重新启动时启动,除非您手动执行此操作。为了进行备份,您可以保留当前的工作内核。