Questions tagged [disk-usage]

Disk space usage: how much space do my files take?

What takes up disk space and how to analyze disk usage.

Frequently Asked Questions

1078 questions
59
votes
2 answers

df vs. du: why so much difference?

Possible Duplicate: Why is there a discrepancy in disk usage reported by df and du? df says 8.9G used by the partition mounted in / :~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 227G 8.9G 207G 5% / However, a du…
salezica
  • 711
35
votes
4 answers

How to find free disk space and analyze disk usage?

In CentOS and Ubuntu, how do I find out how much free disk space I have left and other disk stats like disk usage?
34
votes
3 answers

du gives two different results for the same file

I am a graduate student of computational chemistry with access to a Linux cluster. The cluster consists of a very large (25 TB) fileserver, to which several dozen compute nodes are connected. Each compute node consists of 8 to 24 Intel Xeon cores.…
Andrew
  • 16,855
19
votes
2 answers

Analyse disk usage for root partition excluding other partitions that are mounted with GUI program?

I want to check my file usage with programs like https://wiki.ubuntuusers.de/Festplattenbelegung/ for the files on my partitions on which / (root) is on. However, there are many other files systems mounted into the file system somewhere. Those I do…
Make42
  • 657
17
votes
1 answer

Wrong output of du?

I think my du command is confused. % du -shc DIR ... ... 6123941496 total % du -shc DIR ... ... 6.1G total % du -sc --si DIR ... ... 6.6G total I've tried giving LANG=C and double-checking the result in a spreadsheet. It looks like -h…
16
votes
3 answers

/var partition gets full what's the solution?

If /var partition gets full on Production server then what's the solution ? Below are my workaround: If it is LVM Partition then we can extend it online. We can compress logs. We can remove old data. Please suggest me more possible ways to solve…
Rahul Patil
  • 24,711
15
votes
7 answers

DU: only show folders at depth

I'm getting output from du -h like the following: 103M ./.wine/drive_c/windows/mono/mono-2.0/lib/mono 103M ./.wine/drive_c/windows/mono/mono-2.0/lib 129M ./.wine/drive_c/windows/mono/mono-2.0 129M ./.wine/drive_c/windows/mono 362M …
EoghanM
  • 887
13
votes
3 answers

du wrongly reports empty directory

I'm using these commands: du -sh --apparent-size ./* du -sh ./* both reporting: 4.0K ./Lightroom_catalog_from_win_backup 432M ./Lightroom catalog - wine_backup while those directories contain: $ll ./"Lightroom catalog -…
Adrian
  • 701
  • 1
  • 8
  • 29
12
votes
2 answers

du -s --apparent-size VS du -s

Can someone tell me the differences from: du -s dir 3705012 dir du -s --apparent-size dir 3614558 dir these dirs are inside a block device (created using cryptsetup). Or better: why I need add --apparent-size only with files inside a crypted…
Pol Hallen
  • 2,157
  • 8
  • 23
  • 31
11
votes
2 answers

du -- ignore file not found errors

I'm trying to get the size of a folder an application is currently writing to. If I run the du command it sometimes fails with the error: du: cannot access `/a/b/a.txt': No such file or directory because the application deleted the file while du…
Vivek Goel
  • 1,293
10
votes
1 answer

du command gives error and result at the same time

I would like to know the disk space of my VPS, and although for folders du works fine as $ du -sh /home/ 325M /var/ But trying to get the entire vps is giving me this result. [root@user/]# du -sh du: cannot access…
9
votes
2 answers

Why does size and used space in df output contradict available space

Running the following command: $ df -h Gives the following output: Filesystem Size Used Avail Use% Mounted on /dev/md2 91G 85G 1.2G 99% /home Which means out of the 91 GiB total only 85 GiB are…
7
votes
2 answers

What does "1K-blocks" column mean in the output of `df`?

What does "1K-blocks" column mean in the output of df? $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda7 21181308 19302672 802668 97% / udev 4070176 4 4070172 1% /dev tmpfs …
Tim
  • 101,790
6
votes
5 answers

Console utility to know how disk space is distributed?

Console utility to know how disk space is distributed. Something like this: But with console interface in Linux?
ABTOMAT
6
votes
2 answers

How to determine what process is eating up all available disk space?

Suddenly all the available disk space on / has disappeared. If I make room in the disk (by deleting ~50GB of stuff, for example), after a few minutes I am back to 0 available disk space (according to df). Clearly, some process is eating up disk…
kjo
  • 15,339
  • 25
  • 73
  • 114
1
2 3 4 5 6 7 8