The disk-usage tag has no wiki summary.
17
votes
6answers
2k views
How to understand what's taking up space?
I'm looking for a linux alternative to WinDirStat. I would like to know what is taking up space on my hard drives.
A program that works on console and doesn't require a UI is preferred .
4
votes
2answers
3k views
ext4: How to account for the filesystem space?
I've recently formated a 1.5 TB drive with the intention of replacing ntfs with ext4.
Then I noticed that the files I saved don't fit on the new partition.
df:
ext4 (ext3 & ext2 show the same ...
17
votes
4answers
11k views
Reserved space for root on a filesystem - why?
I understand that by default, newly created filesystems will be created with 5% of the space allocated for root. I also know you can change the defined space with:
tune2fs -m 1 /dev/sdXY
What I'm ...
5
votes
2answers
942 views
Why is there a discrepancy in disk usage reported by df and du?
I have a Linux(CentOS) server, the OS+packages used around 5GB. Then, I transferred 97GB data from a Windows server to two folders on this Linux server, after calculated the disk usage, I see the ...
2
votes
2answers
355 views
What happened to my free space
On my Amazing 2GB EeePC Surf, I have no more space left!
This is quite normal, and it happens every now and then. Just delete a few large, unneeded files and everything should be good, right?
So I ...
1
vote
2answers
1k views
linux free disk space confusion
I used du to list all folders and sort by size, the results simply doesn't add up to how much disk space is used(using df). There's about 20G in discrepency, why?
[root@xxx lib]# du --max-depth=1 -h ...
24
votes
8answers
3k views
how do you sort du output by size?
How do you sort du -sh /dir/* by size? I read one site that said use | sort -n but that's obviously not right. Here's an example that is wrong.
[~]# du -sh /var/* | sort -n
0 /var/mail
1.2M ...
7
votes
7answers
3k views
Splitting large directory tree into specified-size chunks?
I have a directory tree that I would like to back up to optical disks. Unfortunately, it exceeds the size of any one disk (it's about 60GB). I am looking for a script that would split this tree into ...
6
votes
3answers
778 views
Directory size calculation difference
I need to get the size of directory in terminal for signing purposes. I'm using following command:
du -s /path/to/dir
I'm multiplying the result by traditional UNIX block size (512 bytes) and get ...
5
votes
2answers
542 views
How can I diagnose and repair missing drive space?
I have a small ext3 / partition on a 2T drive which appears to have a discrepancy in its free space. How can I determine what is causing it and how it can be fixed.
After trying everything I could ...
2
votes
1answer
178 views
Managing disk space on servers
Are there any open source tools to view (and possibly restrict) disk usage per user? I need to track disk usage on a server by user.
6
votes
5answers
11k views
How do I count all the files recursively through directories
I want to see how many files are in subdirectories in there subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage
du -sh /*
which will ...
1
vote
1answer
277 views
error using “du” command
I am on the university machine trying to estimate the disk usage I have on my space I do
du -csh ./
from the begining of my account, but an error is given that ./Yesterday/Yesterday is not a ...
11
votes
2answers
544 views
“ls -lh” reports total size less than sum of individual sizes
Under what circumstances would ls -lh show a total that is less than the sum of the individual files? For example:
$ ls -lh /var/lib/nova/instances/_base
total 100G
-rw-rw-r-- 1 nova nova ...
6
votes
2answers
263 views
Mysterious write IO
I am just reviewing the disk IO of a XEN VM server. I stumbled across a DomU that has constant write traffic.
To narrow that traffic further down I logged in to the DomU (CentOS 5, 64 Bit) and ...
5
votes
2answers
1k views
Disk space on Fedora 12
I'm using Fedora 12 on my laptop. I have 10GB disk space and 2GB of them are free. After 2-3 days uptime the space ends and I must reboot. After rebooting I get 2GB free space back. How can I prevent ...
2
votes
3answers
186 views
Disk size management
I am using Fedora 16. My /dev/sda2, mounted on / (root) with something like 50G got filled 100%:
[foampile@~ 13:13:39]> df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs ...
2
votes
3answers
566 views
find top 10 latest modified files
How do I get the last 10 files that were modified on my system. I have a system where its disk usage is maxed out I am not sure which files is increasing rapidly.
I have a mysql instance stored on a ...

