36
votes
1answer
1k views

Why are there so many different ways to measure disk usage?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many ...
2
votes
4answers
119 views

What is the /dev/disk/by-uuid/ and why does it use all free space on the disk

I have the following Debian that works in Virtual Box: $ uname -a Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64 GNU/Linux Recently I notice that I don't have any free space: $ df ...
3
votes
1answer
85 views

Running du command reports infinity as disk usage

I'm trying to get the total size of what's stored in my home directory. To my surprise, it reports infinity after a few seconds: /home/user $ du -sh . Infinity Huh? I'm pretty sure there are no ...
0
votes
1answer
136 views

RHEL - df -h v/s graphical disk usage analyzer tool

I am trying to understand the disk usage in my RHEL system. When I run the Disk Usage Analyzer tool graphically, my screen shows the below output. However, if I run the command df -h I get the ...
0
votes
1answer
251 views

No Space left on device - Debian

when Im new to linux and try to run this below code apt-get -f install getting below error: Checking the available space df Tho output How to increase the available space in /usr path?
3
votes
1answer
113 views

file size shown by “du -k” is different in different file systems (PRAMFS and FLASH)

I have a file "xyz.log" which is of size 1.72MB In FLASH file system : If I run du -k xyz.log output is 1761 xyz.log. I copied the same file to RAM storage and run the du -k xyz.log output is 221 ...
3
votes
1answer
907 views

What are /dev, /run and /run/shm and can I resize them?

So, I recently created a 15GB partition for Linux Mint 14. I've been working on it for a while, and I got a Low Disk Space notification. I ran df -h and this is what I'm getting: Filesystem Size ...
4
votes
1answer
245 views

Linux tool to track directory space over time

Are there any common Linux tools that track disk space over time, not just a filesystem overall, but for example, so I could easily see which directory trees swelled up and shrunk historically? The ...
27
votes
3answers
2k views

Why are text files 4kB?

For some reason, when I make a text file on OS X, it's always at least 4kB, unless it's blank. Why is this? Could there be 4,000 bytes of metadata about 1 byte of plain text?
3
votes
1answer
131 views

How can I get a total for space used by a group of subdirectories

My file system is set up like: /ftp/data/ProductGroup*/ProductType*/Year*/Day*/ActualProductFile* ("*"denotes directory names that change) I'd like to find out how much space is being used for ...
3
votes
2answers
634 views

Filesystem monitoring

A script where we need to come up with a way for the disk space monitoring to be smarter. On smaller file systems, we still want to alert at 90% full, but on larger file sytems, we should only alert ...
2
votes
1answer
302 views

Any command to view the file system internal fragmentation size under a directory?

If the block size of a file system is 4KB, then for a 1KB file, 3KB space(which is internal fragmentation) is wasted. So, under a directory, is there any command to summarize how much disk space is ...
2
votes
1answer
150 views

Why is some filesystem space used even though the filesystem is empty? [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? After googleing a little I find that ext4 reserve 5% for root: Reserved space for root on a filesystem - why?, ext2/3/4 ...
2
votes
3answers
386 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 ...
1
vote
3answers
402 views

What logs would be written if file system is full in UNIX?

I am working on a unix server and I guess during some time in past the file system had been full. However, I need some solid data to prove it. Will there be any OS logs or something of that sort to ...
3
votes
3answers
275 views

Why do I get 3048 MB from a 64 MB flash memory?

I have a Linux based STB (set-top-box) and it features a 64 MB flash memory and 256 MB of RAM. I wanted to take a backup of some of my settings before I flash it with another image, but I wasn't sure ...
2
votes
1answer
346 views

remove unallocated space from a partition image

I have just created an image of an sd card using dd and the image is compressing down less than expected. I suspect this is because the card had not been zeroed out before I started to make the image. ...
2
votes
2answers
393 views

/var House Keeping

Does anyone have any general advice or links for doing some house keeping on the /var filesystem on Unix and Linux servers? I have searched the issue quite a bit but can find no real concrete ...
4
votes
2answers
568 views

btrfs on openSUSE not releasing disk space

I have an openSUSE 12.1 install on my main desktop running with btrfs filesystem for root (/boot is ext4). I started having issues today with KDE informing me that disk space is almost all gone and ...
4
votes
5answers
328 views

How does this directory use so much space

Unix is not my native language and I'm getting confused by their concept of filesystems. When I look at my free space I see: /$ df -kh Filesystem Size Used Avail Use% Mounted on ...
2
votes
1answer
501 views

du reports surprising total size for same data

Don't worry, this isn't typical "du vs. df" question. :-) I mounted a squashfs image (via loop) and used du to reported the size: du --apparent-size -lsh image1/ which reported 215M. Then I used rsync ...
15
votes
2answers
3k views

How can I find the number of files on a filesystem?

I want to know how many files I have on my filesystem. I know I can do something like this: find / -type f | wc -l This seems highly inefficient. What I'd really like is to do is find the total ...
4
votes
2answers
4k 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 ...
1
vote
2answers
726 views

How can I fix linux disk without unmount it?

I had large file 200GB in my ext2 disk, then I deleted it(three are no files in Trash). And I haven't gained any free space. I don't want to use fsck as it requres me to unmount disk. I were windows ...
8
votes
5answers
4k views

How to cache or otherwise speed up `du` summaries?

We have a large file system on which a full du (disk usage) summary takes over two minutes. I'd like to find a way to speed up a disk usage summary for arbitrary directories on that file system. For ...
28
votes
4answers
19k 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 ...
1
vote
1answer
323 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 ...