Questions tagged [disk-usage]
Covers questions related to file space usage—space used under a particular directory or files on a file system.
1,238
questions
789
votes
18
answers
2.4m
views
How do I find the amount of free space on my hard drive?
Is there a way to quickly check the amount of free / used disk space in Ubuntu?
I would assume you could right click on 'file system' in the file browser and choose 'properties' or something but ...
646
votes
24
answers
756k
views
How do I free up more space in /boot?
My /boot partition is nearly full and I get a warning every time I reboot my system. I already deleted old kernel packages (linux-headers...), actually I did that to install a newer kernel version ...
309
votes
4
answers
208k
views
Big /var/log/journal?
I don't understand why the /var/log/journal/ folder is so big.
For example, by executing the command systemctl -f, i see the fill.
If I click on an email on Thunderbird, it generates dozens of lines ...
298
votes
13
answers
499k
views
What's a command line way to find large files/directories to remove and free up space?
Looking for a series of commands that will show me the largest files on a drive.
202
votes
9
answers
612k
views
How to find out how much disk space is remaining?
What is the command to find out how much disk space is being used/remaining?
201
votes
2
answers
325k
views
How to get disk usage from command line?
How can I get the current disk usage (in %) of my hard drive from the command line?
198
votes
5
answers
219k
views
Why doesn't this show the hidden files/folders?
I was looking through my system with du -sch ./* to find the big useless files I may have stockpiled with no reason, when I found this:
$ du -sch ./*
du: cannot read directory ‘./drbunsen/.gvfs’: ...
196
votes
14
answers
351k
views
No more disk space: How can I find what is taking up the space?
I've run into a problem on one of my servers running 16.04: there is no disk space left.
I have no idea what is taking up the space. Is there a command to list the current directory sizes, so I can ...
151
votes
7
answers
139k
views
Can't upgrade due to low disk space on /boot
I try to do do-release-upgrade
but then I get:
Not enough free disk space
The upgrade has aborted. The upgrade needs a total of 25.7 M free
space on disk '/boot'. Please free at least an ...
107
votes
7
answers
296k
views
How can I free space from a massive 39.5GB /var/log/ folder?
I just got a message from the default disk analyses software (Baobab)
that I only have 1GB left on the hard drive. After some search, I found that the /var/log/ folder is the cause of this.
Some file/...
103
votes
3
answers
540k
views
How can I check disk space used in a partition using the terminal in Ubuntu 12.04 LTS? [duplicate]
I am using Ubuntu 12.04 LTS and I was wondering if there is a command that can tell the space used in a partition using the terminal. Like I want to use the su command to change to a user called admin ...
100
votes
2
answers
95k
views
Systemd logs (`journalctl`) are too large and slow
My journalctl is keeping over 300 MB of logs as revealed by journalctl --disk-usage. Everything appears to be in order when I run journalctl --verify:
$ journalctl --disk-usage
Archived and active ...
90
votes
3
answers
57k
views
df -h - Used space + Avail Free space is less than the Total size of /home
As the output of df -h shows here, something is eating up 5GB of free space. So, it's not available to use.
I'm also noticing sometimes that the hard disk gets filled up to 100% sometimes. So, I had ...
85
votes
4
answers
37k
views
Meaning of "i" in "MiB"?
I see the usage of "MiB" as measure to represent the size in Ubuntu. What does MiB stand for? In particular the "i"?
80
votes
7
answers
312k
views
What do I do when my root filesystem is full?
My / folder is reading as full and I can't update software or do anything.
Not sure what I'm doing wrong here.
$ df -h
Results:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 ...
79
votes
4
answers
106k
views
analyse disk usage ignoring mounts
Ubuntu is complaining that my root file system is nearly full, but when I use baobab (aka "Disk Usage Analyser") or du -h it summarises the usage of all the other mounted file systems as well.
How ...
78
votes
16
answers
369k
views
Root drive is running out of disk space. How can I free up space?
I'm using Ubuntu 11.04 and I want to free up some space in my root directory, which is overloaded. I especially want to change the path used for installing applications (they are getting installed ...
71
votes
7
answers
378k
views
Not enough space in /var/cache/apt/archives/
When I run the command to install the package solr-jetty, I am told
You don't have enough free space in /var/cache/apt/archives/
Here's the result of the df -H command:
I have installed Ubuntu ...
65
votes
2
answers
264k
views
How do I resize my /boot partition?
/boot has become 100% full somehow.
df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/ubuntu-root 191078052 31758960 149612804 18% /
udev ...
55
votes
2
answers
84k
views
disk space used up
I have upgraded to 13.04 and lose disk space, ...
I have a 3 TB hard disk, and had yesterday still 890 GB free, ... today all is gone!
Disk Usage Analyzer does not give me a clue and says that it ...
54
votes
1
answer
42k
views
Deleting contents of ~/.local/share/Trash/expunged .....?
Is there a safe way of deleting contents of ~/.local/share/Trash/expunged ? I see It has lots of files & folders I had deleted -- from the trash as well. They are taking a lot of disc space.
...
50
votes
6
answers
456k
views
How to clean /var/cache?
When I woke up this morning, I found my root had filled overnight
du -hx --max-depth=1 /
132M /boot
4.0K /media
16K /lost+found
16M /root
702M /lib
4.0K /OLDHOME
8.2G /usr ...
47
votes
5
answers
95k
views
apt-get: No space left on device (12.04)
I have read every thread I could find -- even the ones that say that the question has been answered elsewhere but none of them address the specific issue I am having. Update Manager ran and produced ...
46
votes
4
answers
41k
views
Can't clean a full /boot because of unmet dependencies
I got an error message explaining my /boot is full. trying to clean up old image files always seems to fail because of disk full errors or dependency errors. Could someone explain where I’m going ...
45
votes
5
answers
184k
views
Can I delete /var/log files due to low root space?
Just had the message:
Low disk space.. 2 GB left
Judging by a posted message on ubuntu.org forums, I found that I have a .log file in /var/log at 22 GB in size! My root is an 82 GB partition and ...
41
votes
9
answers
97k
views
Why do "df" and "du" commands show different disk usage?
I cannot access ubuntu system on my pc, the error message: "the system is running in low graphics mode" and I tried some commands I searched from internet.
I found out a problems seems there is no ...
39
votes
10
answers
43k
views
zerofree on ubuntu 18.04
I'm using Ubuntu 18.04 for development on VM VirtualBox on windows 10 pro host
I've compacted the virtual hard drive previously by following the steps from here:
https://www.howtogeek.com/312883/how-...
38
votes
10
answers
78k
views
disk is full, but cannot find big files or folders
Ubuntu server shows me that I use almost all disk:
Usage of /: 95.5% of 118.12GB
And I try to find big folders and files, run ncdu:
ncdu 1.8 ~ Use the arrow keys to navigate, press ? for help ...
37
votes
9
answers
82k
views
df shows all space taken, but du doesn't add up
I'm having a problem with Ubuntu 12.04 LTS. This is the second time I've encountered this problem in the last 3 weeks.
The first time is described in this closed question on StackOverflow.
The TL;DR ...
35
votes
1
answer
37k
views
Get total diskspace usign du for multiple directories
I know about du -sh which gives me total disk space used for given directory.
My problem is the directories I am interested are scattered in lot of subdirectories. I have right "find" command that ...
34
votes
3
answers
47k
views
Why doesn't deleting files increase available space?
Recently I got a message about "0 bytes free" on a certain partition.
So I looked and, sure enough:
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 65190604 ...
33
votes
2
answers
28k
views
False disk full error: apt-get unable to install or remove
I encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get is unable to install or removed any package.
Unpacking linux-headers-3.13.0-62 (from .../linux-headers-3.13.0-...
30
votes
4
answers
78k
views
How to find all files with size greater than...?
Is there any GUI software that can explore a tree and find all files with size greater than some amount? Neither Nautilus nor Nemo seem to be able to do this. In my memory, I could do this with PC-...
30
votes
4
answers
57k
views
Running out of inodes
I cannot update Ubuntu because I have 99% inode usage. What is the easiest way for me to alleviate this problem?
Thanks for your help.
30
votes
5
answers
159k
views
No space left on device even though there is
A laptop with broken screen that I access via SSH. The sudo apt-get autoremove command gives me the following errors
cp: error writing ‘/tmp/mkinitramfs_zN6ZvT//lib/x86_64-linux-gnu/libpthread.so.0’: ...
29
votes
2
answers
32k
views
df -h shows incorrect free space
Here is my df-h output. In here /media/Songs is using almost 100% disk space.
root@LAB:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 8.7G 9.2G 49% /
...
28
votes
3
answers
25k
views
How can I quickly make a large file?
What is a quick and easy way to make a file that is, say, 2 GB in size?
27
votes
2
answers
10k
views
mv fails with "No space left on device" when the destination has 31 GB of space remaining
I've been trying to move 32.6 GB of files to a folder on an external flashdrive to free up space on my laptop's SSD. After opening up the source folder in Terminal (and running ulimit -S -s unlimited ...
27
votes
7
answers
64k
views
var/log/syslog growing indefinitely in size
The disk that contains Ubuntu on my computer is 115GB in size.
When the disk was 114.7GBfull.
I started deleting some files here and there to free up around 5GB.
But I noticed the disk was 114GB ...
27
votes
4
answers
41k
views
Why is /var/lib/mlocate.db almost 800 MB?
Can I do something about it? I'm running out of disk space.
26
votes
7
answers
16k
views
Task manager a UI like with Windows 10's one
I like the UI in the Windows 10 task manager:
In particular, I like the fact that the most important four shared resources on a computer are displayed without spurious information, and the color-...
25
votes
8
answers
45k
views
What is taking up so much space on my disk, beside the filesystem?
I have only one disk in my computer, a 80 GB SSD. It is formatted as a single ext4 partition (no swap), and all the usual folders are installed on it (I keep lots of data on external media, but /home ...
25
votes
3
answers
33k
views
inotify_add_watch -- failed: "No space left on device"
I am facing a problem about "no space left on device" as shown in the Figure below.
I am relatively a newbie and don't know much about linux. I am using Ubuntu 18.04. Checking out various blogs ...
25
votes
6
answers
17k
views
Can you have too much swap?
I was just wondering if you can have a swap partition that is too big. If yes, when is a swap partition too big? What are the downsides/ill-effects of having a swap partition that's too big (even if I ...
22
votes
5
answers
54k
views
Why should I move everything into /opt?
Every time I read the tips for installing an SDK, IDE, some extension and so on, it says, that I should unpack them in /opt folder. Why do I need to do that?
When I was installing Ubuntu, I read ...
22
votes
3
answers
11k
views
Disk Usage Analyzer reports that the .ecryptfs file is taking up as much space as the home drive
I selected "encrypt home partition"
when I set up my netbook with Ubuntu. The disk usage analyzer now reports that twice as much space is taken up than actually is used. I have seen this question ...
22
votes
2
answers
120k
views
What is `sudo apt-get clean`? [duplicate]
When I get the message for a Software Update and click to install I get a message "Insufficienct space" telling me to empty trash and remove temporary files using sudo apt-get clean. I have emptied ...
22
votes
1
answer
47k
views
How to increase the disk space of a VMware virtual disk?
I have a VM running Ubuntu, and I wish to increase its size from 20 to 40 GB.
I powered off the VM and on the VMware side increased the allocated disk space. I did this by Edit Virtual Machine ...
21
votes
8
answers
9k
views
Check how space is distributed on a Linux system
I know how to check space left with:
df -h
and I know to check the space of a folder with:
du -ch /path/to/folder/
But let's say I have a 500 GB HardDisk and 350GB are used:
Wich is the best tool/...
20
votes
5
answers
10k
views
analyse disk space usage of an encrypted home directory
I'm having some problems with a full disk.
According to df -k I'm using 47 gb of data in my home folder and I have no idea where all of that data is hiding. I tried using the disk usage analyser aka ...