Questions tagged [disk-usage]

Covers questions related to file space usage—space used under a particular directory or files on a file system.

Filter by
Sorted by
Tagged with
783 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 ...
greg's user avatar
  • 10.3k
643 votes
24 answers
748k 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 ...
user6722's user avatar
  • 6,705
295 votes
13 answers
484k 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.
Ryan Detzel's user avatar
  • 3,091
294 votes
4 answers
193k 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 ...
Bristow's user avatar
  • 2,982
200 votes
2 answers
316k 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?
Olivier Lalonde's user avatar
200 votes
9 answers
595k 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?
hawkeye's user avatar
  • 3,877
197 votes
5 answers
218k 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’: ...
Dr_Bunsen's user avatar
  • 4,703
192 votes
14 answers
327k 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 ...
Karl Morrison's user avatar
150 votes
7 answers
138k 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 ...
clamp's user avatar
  • 1,699
102 votes
3 answers
532k 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 ...
Jatttt's user avatar
  • 2,327
100 votes
7 answers
282k 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/...
blade19899's user avatar
  • 26.7k
98 votes
2 answers
88k 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 ...
WinEunuuchs2Unix's user avatar
88 votes
3 answers
55k 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 ...
Kasun Gajasinghe's user avatar
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"?
Renjith G's user avatar
  • 3,553
79 votes
4 answers
105k 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 ...
drevicko's user avatar
  • 4,363
78 votes
7 answers
302k 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 ...
Jesse's user avatar
  • 895
74 votes
16 answers
357k 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 ...
rihan's user avatar
  • 841
71 votes
7 answers
363k 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 ...
epsilones's user avatar
  • 1,471
64 votes
2 answers
257k 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 ...
Simd's user avatar
  • 1,179
55 votes
2 answers
82k 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 ...
Ronald's user avatar
  • 761
54 votes
1 answer
41k 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. ...
maan81's user avatar
  • 635
48 votes
6 answers
439k 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 ...
avmohan's user avatar
  • 593
47 votes
5 answers
94k 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 ...
Don A's user avatar
  • 571
46 votes
4 answers
40k 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 ...
Philip Howard's user avatar
45 votes
5 answers
178k 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 ...
Paul B's user avatar
  • 755
39 votes
9 answers
95k 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 ...
user2068965's user avatar
38 votes
10 answers
42k 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-...
Danish's user avatar
  • 503
36 votes
9 answers
81k 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 ...
Eric Cloninger's user avatar
35 votes
10 answers
75k 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 ...
Maxim Yefremov's user avatar
34 votes
3 answers
46k 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 ...
David Cary's user avatar
34 votes
1 answer
36k 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 ...
user871199's user avatar
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-...
sourav c.'s user avatar
  • 44.6k
30 votes
4 answers
77k 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-...
useful's user avatar
  • 1,834
30 votes
4 answers
55k 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.
xaav's user avatar
  • 423
30 votes
5 answers
153k 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’: ...
Reza's user avatar
  • 1,235
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% / ...
Vipin Ms's user avatar
  • 671
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?
ændrük's user avatar
  • 76.6k
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 ...
Vikki's user avatar
  • 539
26 votes
4 answers
40k views

Why is /var/lib/mlocate.db almost 800 MB?

Can I do something about it? I'm running out of disk space.
evencoil's user avatar
  • 767
26 votes
7 answers
15k 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-...
Federico Poloni's user avatar
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 ...
rumtscho's user avatar
  • 1,051
25 votes
7 answers
60k 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 ...
ant_1618's user avatar
  • 731
23 votes
3 answers
30k 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 ...
Abdul Mannan's user avatar
23 votes
6 answers
16k 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 ...
An0n's user avatar
  • 2,109
22 votes
5 answers
53k 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 ...
Praytic's user avatar
  • 339
22 votes
3 answers
10k 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 ...
onelokikitty's user avatar
22 votes
2 answers
117k 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 ...
Peter's user avatar
  • 221
22 votes
1 answer
46k 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 ...
coffee's user avatar
  • 6,593
21 votes
8 answers
8k 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/...
AlvaroAV's user avatar
  • 697
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 ...
Akisame's user avatar
  • 3,313

1
2 3 4 5
25