0
votes
2answers
28 views

Disk usage on another filesystem

I have a directory on my ext4 partition with lots of rather small files. How can I figure out how much space would they use if I copy them to a file system with another cluster size (without actually ...
3
votes
1answer
50 views

Repeated filesystems and mount points in df output

when I type df -h to see the storage of my system the following is the result root@kch-rsp:/home/pi# df -h Filesystem Size Used Avail Use% Mounted on rootfs 13G 2.4G 10G 20% / ...
0
votes
1answer
56 views

Why does df show Available 0 when 1K-blocks minus Used is greater than 0? [duplicate]

Why does it show 0 in the available column? [root@server log]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 4128448 4096484 0 100% / It's ...
3
votes
4answers
102 views

mount info for current directory

I can do df . to get some of the info on the mount that the current directory is in, and I can get all the info I want from mount, but get to much info. I can grep it down, but am wondering if there ...
0
votes
1answer
25 views

Unix filesys reserved space [duplicate]

I've read that in Unix, you can configure the file-system to reserve certain amount of space for root. Which configuration property is it?
8
votes
3answers
515 views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
3
votes
1answer
87 views

Does du or df perform caching?

I was wondering if there is any caching done with these utilities. I assume not, but not positive. Are there any typical similar utilities that do use caching to speed up results on subsequent runs? ...
5
votes
2answers
474 views

ext3 Filesystem shows full to most apps, but only 77% full to DF

Var is showing as full to many apps like Nagios, Puppet, and the LVM tools (pvs, vgs, etc) df -h output 6.0G 4.3G 1.4G 77% /var vgs output /var/lock/lvm/V_rootvg:aux: open failed: No space ...
44
votes
1answer
2k 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
1k 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
228 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
438 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
357 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?
0
votes
2answers
1k views

Regarding the output of “df -h” in Linux

Regarding the output of "df -h" in Linux. [root@]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 193G 82G 101G 45% / tmpfs 1.9G 272K 1.9G ...
2
votes
2answers
607 views

the difference in used hard drive space as shown by df and du is HUGE!

It seems that du discounts the #open files when calculating the disk usage, and this hit me when I saw that df is showing 100% usage, while du says only 40% is in use. when i looked up on this, i ...
4
votes
1answer
187 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
2k 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
442 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 ...
0
votes
1answer
62 views

see actual partitions usage

I have recently learned that ext3 (or some other filesystems) reserve some space of a drive by default for previliged processes. One can change this by doing the following: # tune2fs -m 4 /dev/sdXY ...
28
votes
3answers
3k 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?
4
votes
1answer
142 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
934 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
362 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
157 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 ...
3
votes
3answers
603 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
608 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
302 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
453 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
499 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
714 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
386 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
618 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 ...
17
votes
2answers
4k 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
923 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 ...
9
votes
5answers
5k 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 ...
37
votes
4answers
26k 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
345 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 ...