My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to

本文提供了解决Ubuntu系统中boot分区占用100%,导致无法进行系统升级及移除旧内核的问题的方法。通过使用dpkg命令移除旧版本的内核,释放了所需空间,从而使得系统升级和自动清理操作得以执行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

My /boot partition hit 100% and now I can't upgrade. Can't remove old kernels to make room

dpkg -l linux-image-\* | grep ^ii

ii  linux-image-3.11.0-19-generic              3.11.0-19.33~precise1               Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.11.0-20-generic              3.11.0-20.35~precise1               Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.11.0-22-generic              3.11.0-22.38~precise1               Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.11.0-23-generic              3.11.0-23.40~precise1               Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-3.11.0-24-generic              3.11.0-24.41~precise1               Linux kernel image for version 3.11.0 on 64 bit x86 SMP
ii  linux-image-generic-lts-saucy              3.11.0.24.21                        Generic Linux kernel image

 

 

You can use dpkg instead of apt-get to remove older kernels:

sudo dpkg -r linux-image-3.11.0-15-generic 

Now that I had some space on /boot, I was able to run
apt-get -f install 

apt-get autoremove


本方参考资料来自:
http://askubuntu.com/questions/171209/my-boot-partition-hit-100-and-now-i-cant-upgrade-cant-remove-old-kernels-to
当您看到 `mount: /mnt/pve/data: can't find in /etc/fstab` 这样的错误信息时,这意味着 Linux 内核在尝试挂载指定的文件系统路径 `/mnt/pve/data` 到您的启动文件 `/etc/fstab` 中,但是找不到相关的配置条目。 `/etc/fstab` 文件是Linux用来存储静态挂载点的配置文件,它规定了哪些磁盘分区、文件系统、以及它们应如何在系统启动时自动挂载。若在该文件中找不到关于 `/mnt/pve/data` 的条目,说明系统没有预设好的规则去挂载这个路径。 解决这个问题的步骤如下: 1. **检查fstab内容**: 打开 `/etc/fstab` 文件,查找是否有以 `/mnt/pve/data` 开头的行。如果没有找到,那么这条路径可能需要添加到文件中。 2. **创建fstab条目**: 根据您实际的文件系统类型(如 ext4、NTFS等),制定一条新的fstab条目,例如: ``` /mnt/pve/data /path/to/physical/device fuse defaults 0 0 ``` 其中 `/path/to/physical/device` 需替换为您想要挂载的实际磁盘路径。 3. **格式化和挂载**: 确保数据分区已存在并格式化为所需文件系统。然后,您可以手动挂载分区,或者在下次启动时,系统将根据新的fstab条目自动挂载。 4. **验证**: 使用 `mount` 命令检查 `/mnt/pve/data` 是否已成功挂载。 5. **同步 fstab**: 如果希望在每次系统启动时都应用新的挂载,可以在 `/etc/fstab` 后增加 ` UUID=UUID_of_the_partition` 来确保自动挂载,同时运行 `sudo update-initramfs -u` 或者 `sudo update-grub` 以同步更改。 如果添加了新条目但仍遇到问题,可能需要检查文件系统是否正确,或者磁盘是否可用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值