Not Enough Free Disk Space
So I see all the questions asking the same question I wanted to ask but when I try some of the solutions it's still no go so I'm thinking the answers to these questions vary from machine to machine or which OS, etc., and I hate to waste anyone's time here but yes, please tell me what to enter into the terminal and I will tell you what I get and I will hopefully receive my unique answer?
I've emptied the Trash and entered
sudo apt-get clean
to no avail.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- actionparsnip
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Please provide the output of the following terminal commands:
uname -a
lsb_release -crid
df -h
df -i
dpkg -l | grep linux-header
dpkg -l | grep linux-image
sudo dpkg --audit
Revision history for this message
|
#2 |
$ uname -a
Linux keepitsimple-
lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 2.0G 4.0K 2.0G 1% /dev
tmpfs 403M 1.5M 402M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 2.0G 160K 2.0G 1% /run/shm
none 100M 56K 100M 1% /run/user
/dev/sda1 236M 190M 34M 86% /boot
df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/
none 212447 2 212445 1% /sys/fs/cgroup
udev 205414 534 204880 1% /dev
tmpfs 212447 600 211847 1% /run
none 212447 4 212443 1% /run/lock
none 212447 8 212439 1% /run/shm
none 212447 30 212417 1% /run/user
/dev/sda1 62248 322 61926 1% /boot
dpkg -l | grep linux-header
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
ii linux-headers-
dpkg -l | grep linux-image
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-
ii linux-image-generic 3.13.0.43.50 i386 Generic Linux kernel image
No output for
sudo dpkg --audit
Terminal asked for my password, I entered password, it returned to prompt.
Revision history for this message
|
#3 |
sudo apt-get --purge remove linux-image-
sudo apt-get --purge remove linux-image-
sudo apt-get --purge remove linux-image-
sudo apt-get clean
sudo apt-get --purge autoremove
Should clear lots of space
Revision history for this message
|
#4 |
Ok, well done.
The output contains all information that is needed for helping.
1. You are running Ubuntu 14.04.1
2. There are a few updates missing in your system; I assume they could not be installed due to the disk space problem, but should be automatically done with the next update attempt as soon as the space problem is solved.
3. The package management system is in a consistent state (no output for dpkg --audit), so there are no actions required to clean up dependency problems.
4. You have a separate boot partition with 236 MB size; this is quite small and you have to keep an eye on free size to avoid hitting the "not enough free space" problem.
5. Periodically (about once a month) a new version of the kernel is published for installing with updates. The problem is that these kernel versions are adding up, and old ones are not automatically uninstalled.
The command
sudo apt-get autoremove
should uninstall obsolete packages, including the old kernel files. This should free space on your /boot partition.
Try
df -h
to see the amount of free space after executing that command. If the amount of free space still is not high enough, please tell us and we will try other methods for freeing up space.
Revision history for this message
|
#5 |
to: https:/
sudo apt-get --purge remove linux-image-
sudo apt-get --purge remove linux-image-
sudo apt-get --purge remove linux-image-
sudo apt-get clean didn't appear to do anything
sudo apt-get --purge autoremove removed 87.8MB
i only needed to remove 77MB or so. too cool, thanks. haven't run software update yet ... reason being is maybe what started all this, maybe not, but all i know is i had a problem before this, with a 3rd-party software installation (i don't know which software item it was). about to run software updater just now, i get this message:
"Requires installation of untrusted packages ... This requires intalling packages from unauthenticated sources" and then there's the Settings button which I haven't the faintest idea about. I'm going to hit Okay and let it do its thing and I guess we'll go from there. if i still have an issue, a different one to be sure, should i then open another thread or continue with this one?
also: should i run into that message again about not having enuf disk space on the boot (whatever that meant), should i come back here and ask again, or simply use those sudo apt-get --purge remove commands again?
Revision history for this message
|
#6 |
to: https:/
actionparsnip's solution appeared seconds before yours did so i tried his method first, which included one of yours, sudo apt-get autoremove. we're waiting to see what happens after the software updates (along with the packages from unauthenticated sources (as above, or at least i hope it's above)) install, but i have a question about your 4th item:
4. You have a separate boot partition with 236 MB size; this is quite small
is there any way to enlarge this space and/or if there is, should i?
thanks for both of your help, i'll letcha know what happens.
Revision history for this message
|
#7 |
i managed this time somehow to determine which 3rd-party software caused the initial problem (the one before this one) and the system is now up-to-date so i'm clicking "problem solved" but i'd still like answers on
should i run into that message again about not having enuf disk space on the boot (whatever that meant), should i come back here and ask again, or simply use those sudo apt-get --purge remove commands again?
and/or my having "a separate boot partition with 236 MB size [which] is quite small" and how or whether i should enlarge same.
in the meantime, people, thanks for everything.
Revision history for this message
|
#8 |
Thanks actionparsnip, that solved my question.
Revision history for this message
|
#9 |
Enlarging the boot partition is generally possible, but usually requires several steps of moving and resizing partitions. I do not know any easy-to-follow recipe. (Another possibility would be incorporating /boot into the root partition, but I think this in not possible in your case due to using volume groups.)
actionparsnip's first three commands listed the obsolete kernel packages that were installed on your system. They are now already removed, so re-executing these commands will not do anything any more. If you want to execute such command in future, you will have to identify the version numbers of the kernel packages that are due for removal then.
The command "sudo apt-get --purge autoremove" should always remove the obsolete kernel versions without the need to identify the version numbers. This is the command to go for.
You could also install ubuntu-tweak and use the janitor function in that program to clean up obsolete packages.