注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

love3400wind的blog

like

 
 
 

日志

 
 
 
 

Boot Partition is Full  

2016-06-17 11:06:08|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Question:

I have a total of four partitions on my Ubuntu 9.10 (Karmic) system:

sda1 = /boot
sda2 = /
sda3 = swap
sda4 = /home

My boot partition is 94 MiB which I was recommended would be more than enough space. Turns out my /boot partition is full and I now get a message every time I log into Ubuntu saying, 'The volume "boot" has only 0 bytes disk space remaining.' Also after installing GParted to check up on my partitions I got the following error in apt-get:
Setting up gparted (0.4.5-2ubuntu1) ...

Setting up kpartx (0.4.8-14ubuntu2) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.31-19-generic

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.31-19-generic
dpkg: subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (2)
I have no experience messing around in my /boot partition besides modifying GRUB. I think most likely I just have too many kernel versions installed in the /boot partition? Can anyone advise me on what to do here?




Solution:
ls -lah /boot
uname -r
chris@jessica:~$ ls -lah /boot
total 82M
drwxr-xr-x 4 root root 3.0K 2010-02-08 16:50 .
drwxr-xr-x 21 root root 4.0K 2010-02-08 16:43 ..
-rw-r--r-- 1 root root 615K 2009-10-16 14:03 abi-2.6.31-14-generic
-rw-r--r-- 1 root root 615K 2009-11-10 13:52 abi-2.6.31-15-generic
-rw-r--r-- 1 root root 615K 2009-12-08 03:03 abi-2.6.31-16-generic
-rw-r--r-- 1 root root 615K 2009-12-10 14:33 abi-2.6.31-17-generic
-rw-r--r-- 1 root root 615K 2010-01-08 13:54 abi-2.6.31-18-generic
-rw-r--r-- 1 root root 615K 2010-01-27 23:39 abi-2.6.31-19-generic
-rw-r--r-- 1 root root 109K 2009-10-16 14:03 config-2.6.31-14-generic
-rw-r--r-- 1 root root 109K 2009-11-10 13:52 config-2.6.31-15-generic
-rw-r--r-- 1 root root 109K 2009-12-08 03:03 config-2.6.31-16-generic
-rw-r--r-- 1 root root 109K 2009-12-10 14:33 config-2.6.31-17-generic
-rw-r--r-- 1 root root 109K 2010-01-08 13:54 config-2.6.31-18-generic
-rw-r--r-- 1 root root 109K 2010-01-27 23:39 config-2.6.31-19-generic
drwxr-xr-x 2 root root 5.0K 2010-02-06 12:04 grub
-rw-r--r-- 1 root root 7.7M 2009-11-16 23:13 initrd.img-2.6.31-14-generic
-rw-r--r-- 1 root root 7.7M 2009-11-17 00:16 initrd.img-2.6.31-15-generic
-rw-r--r-- 1 root root 7.7M 2009-12-18 00:30 initrd.img-2.6.31-16-generic
-rw-r--r-- 1 root root 7.7M 2010-01-08 21:53 initrd.img-2.6.31-17-generic
-rw-r--r-- 1 root root 7.7M 2010-01-29 00:01 initrd.img-2.6.31-18-generic
-rw-r--r-- 1 root root 7.7M 2010-02-06 12:03 initrd.img-2.6.31-19-generic
drwx------ 2 root root 12K 2009-11-16 23:04 lost+found
-rw-r--r-- 1 root root 126K 2009-10-23 12:11 memtest86+.bin
-rw-r--r-- 1 root root 1.6M 2009-10-16 14:03 System.map-2.6.31-14-generic
-rw-r--r-- 1 root root 1.6M 2009-11-10 13:52 System.map-2.6.31-15-generic
-rw-r--r-- 1 root root 1.6M 2009-12-08 03:03 System.map-2.6.31-16-generic
-rw-r--r-- 1 root root 1.6M 2009-12-10 14:33 System.map-2.6.31-17-generic
-rw-r--r-- 1 root root 1.6M 2010-01-08 13:54 System.map-2.6.31-18-generic
-rw-r--r-- 1 root root 1.6M 2010-01-27 23:39 System.map-2.6.31-19-generic
-rw-r--r-- 1 root root 1.2K 2009-10-16 14:06 vmcoreinfo-2.6.31-14-generic
-rw-r--r-- 1 root root 1.2K 2009-11-10 13:55 vmcoreinfo-2.6.31-15-generic
-rw-r--r-- 1 root root 1.2K 2009-12-08 03:05 vmcoreinfo-2.6.31-16-generic
-rw-r--r-- 1 root root 1.2K 2009-12-10 14:35 vmcoreinfo-2.6.31-17-generic
-rw-r--r-- 1 root root 1.2K 2010-01-08 13:56 vmcoreinfo-2.6.31-18-generic
-rw-r--r-- 1 root root 1.2K 2010-01-27 23:41 vmcoreinfo-2.6.31-19-generic
-rw-r--r-- 1 root root 3.8M 2009-11-17 02:58 vmlinuz-2.6.31-14-generic
-rw-r--r-- 1 root root 3.8M 2009-11-10 13:52 vmlinuz-2.6.31-15-generic
-rw-r--r-- 1 root root 3.8M 2009-12-08 03:03 vmlinuz-2.6.31-16-generic
-rw-r--r-- 1 root root 3.8M 2009-12-10 14:33 vmlinuz-2.6.31-17-generic
-rw-r--r-- 1 root root 3.8M 2010-01-08 13:54 vmlinuz-2.6.31-18-generic
-rw-r--r-- 1 root root 3.8M 2010-01-27 23:39 vmlinuz-2.6.31-19-generic


chris@jessica:~$ uname -r
2.6.31-19-generic


Step 1:
sudo mv /boot/*2.6.31-14* ~/Desktop
sudo dpkg --configure -a
Step 2:
sudo apt-get remote linux-image-2.6.31-14-generic
sudo dpkg --configure -a



  评论这张
 
阅读(33)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017