Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm having some troubles because the partition in which /boot is allocated in my server is full, so I can install neither new linux images nor upgrades.

Here is the server's file system usage information:

$  df -Th
Filesystem           Type      Size  Used Avail Use% Mounted on
/dev/mapper/PCM-root ext4      442G   83G  337G  20% /
udev                 devtmpfs  7.9G  4.0K  7.9G   1% /dev
tmpfs                tmpfs     3.2G  320K  3.2G   1% /run
none                 tmpfs     5.0M     0  5.0M   0% /run/lock
none                 tmpfs     7.9G     0  7.9G   0% /run/shm
/dev/sda1            ext2      228M  225M     0 100% /boot

The specific question is how I can manage to solve this issue without re-installing the system (that is what I'm gonna do if everything else fails)?

share|improve this question
1  
You can delete few old kernel images –  Web-E Dec 27 '12 at 14:42
1  
From the command-line, you can see which kernels are installed using dpkg -l | grep linux-image. Any with ii in the left column are currently installed. Do note that at least one of those entries is going to be a meta-package (such as linux-image or linux-image-server) –  Powerlord Dec 27 '12 at 14:55

1 Answer 1

You will need to unmount the partition, shrink the filesystem with resize2fs, and then use either fdisk or parted to delete and recreate the partition with a smaller size. Make sure you use units of sectors when partitioning. You put fdisk into sector mode with the u command, and parted with the unit s command. Make sure to recreate the partition with the same starting sector, and enough length to cover the size you shrank the filesystem to with resize2fs. Round up to avoid making it too small.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.