The tag has no wiki summary.

learn more… | top users | synonyms (2)

2
votes
3answers
4k views

In CentOS, how to find free disk space?

In CentOS and Ubuntu, how do I find out how much free disk space I have left and other disk stats like disk usage?
0
votes
5answers
384 views

How to display result of df every 30s? [duplicate]

All I want to see is the % after I issue df / every 30s but on the same line just after the previous number. So the final output would be 86% 86% 86% 87% 87% ...... Could it be one line code? Or ...
3
votes
1answer
1k 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 ...
0
votes
2answers
243 views

'df' command doesn't list /home directory

In the book I am reading, the output of df command is shown like this: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 15115452 5012392 9949716 34% / /dev/sda5 59631908 ...
0
votes
0answers
50 views

User mounted secondary drive as /var

I have a drive that someone else mounted using mount /dev/sdc1 /var At some point they complained that all the data was missing Now: mount /dev/sdc1 /media/testdrive df -h shows 130GB used du -h ...
4
votes
1answer
331 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 ...
2
votes
2answers
748 views

Is it possible to tell df to use /proc/mounts instead of /etc/mtab?

Installing gentoo in chroot I found that commands like mount and df doesn't work: they try to read file /etc/mtab (which of course is empty). Can I (for future use) setup or even recompile them so, ...
0
votes
1answer
3k views

Centos freeing up disk space

I have a CentOS server running Plesk and it's run out of space on the plesk partition. I have narrowed down where a lot of the disk space is being used, but I'm not sure how to move forward. Can I ...
2
votes
2answers
166 views

decreasing “reserved block count” does not show up in df output

By default my ext3 file system had 122060 blocks(5%) reserved. I decreased this to 24412(1%), but there were no changes in df output: root@t60:~# df -P Filesystem 1024-blocks Used ...
11
votes
3answers
13k views

Find and remove large files that are open but have been deleted

How does one find large files that have been deleted but are still open in an application? How can one remove such a file, even though a process has it open? The situation is that we are running a ...
5
votes
4answers
1k views

How to recursively find the amount stored in directory?

I know you are able to see the byte size of a file when you do a long listing with ll or ls -l. But I want to know how much storage is in a directory including the files within that directory and the ...
4
votes
1answer
444 views

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 ...
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 ...
2
votes
2answers
2k views

Why do I get fsync() failed: Disk quota exceeded on my linux machine?

I get fsync() failed: Disk quota exceeded but when I use df -h and df -i there is enough space in all the folders. What can I do?
28
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?
5
votes
1answer
2k views

Updating disk free size without rebooting the host

I use RHEL4 with LVM2 on it. At times even after removing large files more that a GB the partition size is not getting updated when is see using df command. -bash-3.00$ df -h Filesystem ...
4
votes
1answer
135 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
775 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 ...
3
votes
3answers
400 views

Removing disk quotas in Scientific Linux

Im doing some big data integrations in MongoDB at the moment. MongoDB's files are stored at /data/db Scientific Linux has automatically setup root to have a small amount of disk space and me, bob ...
2
votes
2answers
995 views

Using rsync to sync two directories on server and localhost, but size is different

I'm using rsync to sync a directory from server to localhost: rsync -avz --delete ./Stuff user@host:/Stuff This all works fine, but how come when I type 'du -s' in both the server and the localhost ...
0
votes
3answers
221 views

Find modifies the Access Time

I have to find those files which have been modified before one day. There are lots of files which are modified before one day. I am doing find ./ -type f -mtime -1. But, I observed that my disk util ...
2
votes
1answer
326 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
154 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 ...
4
votes
4answers
2k views

Find largest files recursively

There seem to be a lot of entries about how to use du to recursively find the largest dir and files at the same time, but none on how to only recursively find the largest files in a set of ...
1
vote
4answers
232 views

Ghost directory in home directory

I am using following command to check the disk usage in my home direcory. du -sk * | sort -n I am getting the following output 273240 AQP 707720 oradiag 3176872 J2EEServer 23628720 var ...
3
votes
3answers
494 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 ...
6
votes
2answers
2k views

How to `du` only the space used up by files that are not hardlinked elsewhere?

Using rsync --link-dest for space-saving snapshots, how can I figure out how much space I actually saved? Or more general: How to figure out how much space a directory uses considering only files ...
1
vote
1answer
165 views

/ is out of blocks, can't find out why [duplicate]

Possible Duplicate: How can I diagnose and repair missing drive space? root@database:/# treesize -x 2>/dev/null 1.1 GB . 757.1 MB ./usr 232.0 MB ./lib 97.2 MB ./var 29.0 MB ./boot 6.3 MB ...
0
votes
3answers
969 views

Why is my rootfs filling up so fast?

I'm trying out Linux by installing openSUSE 12.2 x64 on VirtualBox; the host is 64 bit Windows 7 Ultimate. I gave the install 16GB of storage - I will only be messing around with it - I thought this ...
1
vote
3answers
493 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
291 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
398 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
1answer
127 views

Expanding a partition in Ubuntu

This is what GParted displays about my partitions. And this is the output from df: Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 61409452 4503052 53786836 8% / udev ...
8
votes
1answer
3k views

Print size of directory content with tree command in tree 1.5?

I like tree it's a nice way to display my files and the size of folders/directories. But the -h option only shows the size of the directory, not it's contents. /media/ ├── [ 16K] 64D9-E862 │   ├── ...
6
votes
2answers
6k views

df vs. du: why so much difference? [duplicate]

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 ...
2
votes
2answers
428 views

Is there a way to make apt report which packages in a dist-upgrade will use additional disk space?

I recently decided it was time to do the ol' dist-upgrade. Since I don't upgrade often, I got this message: deus@machina:~/$ sudo apt-get dist-upgrade Reading package lists... Done Building ...
2
votes
1answer
314 views

/dev/mapper and vicious IO widget

I have dio vicious widget for monitoring IO within an awesome widget. It is defined like so: diowidget = widget({ type = "textbox" }) vicious.register(diowidget, vicious.widgets.dio, '<span ...
2
votes
2answers
451 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
648 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 ...
2
votes
2answers
311 views

How come lvextend allocates less than the specified amount of space?

I am trying to extend a volume, let's call it /dev/vol1. I see the initial volume size is 500MB when I call: df --block-size=M /dev/vol1 then to extend it 100MB more I call: lvextend -L+100M ...
3
votes
1answer
810 views

How to do df only on root partition?

How can get df results only for / partition. The partition name/identification (/dev/sda2, /dev/cciss/c0d0p1) could vary on different computers.
12
votes
1answer
7k views

How to remember the difference between du and df?

du and df do rather similar things, and so I always find myself typing the wrong one. I think if I knew what "du" and "df" stands for it might make it easier to remember which to use. What is a way ...
4
votes
5answers
358 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 ...
0
votes
1answer
117 views

du (disk usage) and format specifier for file/directory sizes strings?

I am really fond of du, and I often like to use it like this: $ du -hsc /var/mail/ /var/log/ 2>/dev/null 4,0K /var/mail/ 5,7M /var/log/ 5,7M total However, I'd like to be able to ...
6
votes
6answers
1k views

Which installed software packages use the most disk space on Debian?

Disk space on my root partition is running low, so I want to delete some applications from the system. How can I see which software packages use the most disk space? Is it possible to view that from ...
7
votes
3answers
348 views

How do you tell what hard drive a file is on?

On Debian, I have multiple hard drives, how do I know where /var/www is? Bonus: How do I check the capacity and consumed capacity and of my drives?
1
vote
2answers
167 views

odd output from df command on a SLES

I know I'm not very good at math...but check out this output: SERVER:~ # df -h /ORACLE/LOGS/b Filesystem Size Used Avail Use% Mounted on /dev/mapper/LOGSdatavg-LOGSb_lv 96G ...
3
votes
4answers
3k views

From df device name to physical drive name (vendor / type)

Seeing the device name by df, is it somehow possible to resolve it to the physical drive name such as vendor / type. /dev/sda3 915.4G 34.9G 880.0G 4% /share/HDA_DATA /dev/sdd3 ...
2
votes
1answer
1k views

How much can the space allocated for an LVM snapshot be reduced?

I created an LVM snapshot, then I modified the original logical volume, and now I see that I probably allocated too much space to hold the snapshot. And I want to reclaim some free space by reducing ...
4
votes
1answer
2k views

When using btrfs, why “Size”, “Used” and “Avail” values from df do not match?

I have a btrfs partition. When I run df -h, it shows: Filesystem Size Used Avail Use% Mounted on /dev/sda2 113G 101G 8.3G 93% /home From Why is that? Is it because reserved space for ...