This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

-4
votes
1answer
26 views

How can I show the size of all cache files in my home directory? [on hold]

I want to get the size of all cache files in the home directory.
0
votes
2answers
41 views

Where's my space? [duplicate]

So df is telling me that I'm using 49/59G, so I set out to find my space. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 59G 49G 7.9G 86% / none 4.0K 0 ...
3
votes
2answers
624 views

/var House Keeping [closed]

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

Why is df missing 500MB of available space?

I've just had a message today from Ubuntu 11.04 that I have only 100 MB left, so I cleaned up some files, and I got 200 MB. Then, after a couple of hours, suddenly I have only 26 MB?! I tried df, du ...
11
votes
3answers
693 views

Ubuntu - No space left on device (NTFS)

I have a server which stores a lot of data, I keep many nested directories with millions of files in them. While trying to move one big directory (~700GB) from one disk to another I get an error: mv ...
71
votes
12answers
38k 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 ...
1
vote
0answers
35 views

Detect and remove unused files to save space [closed]

I want to save disk space by removing files I don't need. BleachBit crashed systematically when running in my Ubuntu 14.10 machine. However, what can I run as command to clear temporary files, broken ...
2
votes
0answers
46 views

df human-readable calculation

I was wonder why there is a difference between the reported size of a filesystem with df -h and calculating it manually. for example: The size according to LVM: # lvdisplay system/var | grep -i ...
1
vote
0answers
28 views

Specific question about “/mnt”: /mnt is not showing the disk space [duplicate]

The disk space showing from "df -h" and "du -sch ./*" seems different for "/mnt". Can somebody help me in finding the probable reason? =============================== #df -h Filesystem ...
22
votes
8answers
42k 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 ...
5
votes
4answers
7k views

Why are partition size and df output different?

I have a partition /dev/sda1. Disk utility shows it has the capacity of 154 GB. df -h shows Filesystem Size Used Avail Use% Mounted on /dev/sda1 123G 104G 14G 89% / ...
1
vote
3answers
41 views

What is the output of “du” command during a long copy ?

Recently, I have launched the cp command to create a backup of a big directory. So, I used a command like that : cp -rv big_directory new_location Because files are big, it took long time to ...
0
votes
1answer
18 views

tmpfs and disk partitionning (incoherent partition size between df and fdisk)

I will soon run out of space on my hard drive. Therefore I tried to change the partitions and I discovered something that I don't understand. df -h gives mes this output : Filesystem Size Used ...
1
vote
1answer
22 views

List folders greater than 10G and mail to respective owners about the usage

In our environment, we have an NFS mount which contains all users home directories. I want to find the users who's home directories sizes are greater than 10G and need to send a notification to them. ...
0
votes
1answer
988 views

How to clean up the rootfs partition or increase the size

Can't figure out how I should clean up my rootfs partition. It's 95% used, with total of 9.1G in space. Isn't that much for a root partition? This is my ouput of df -h command: /# df -h ...
12
votes
7answers
24k views

Finding files that use the most disk space

Is it possible to list the largest files on my hard drive? I frequently use df -H to display my disk usage, but this only gives the percentage full, GBs remaining, etc. I do a lot of data-intensive ...
1
vote
1answer
51 views

Is it safe to strip the binaries in Linux Mint?

I am trying to reduce the disk space on my computer, and du shows that the library directories (/usr/liband /lib) and binary directories (/sbin, /bin, /usr/bin, /usr/sbin) take up the most space apart ...
1
vote
2answers
35 views

Disk usage in stat output and inode

Below is my stat output: [alankoh@SJOAM swap]$ stat myswapfile File: `myswapfile' Size: 2147483648 Blocks: 4194312 IO Block: 4096 regular file Device: fd03h/64771d Inode: 1179650 ...
1
vote
1answer
33 views

How to add hostname, date, and fix disk size

I'm collecting disk usage data and want to add the date, time, and hostname to this command. How can I do it in this format: YYYY-MM-DD HH:MM:SS,HOSTNAME,DISK_USAGE_DATA Command I have so far: ...
2
votes
1answer
700 views

How to monitor per user disk usage in Linux

I have local disk with 2T capacity attached to a host. Nearly 60 user home directories are stored on this disk. Currently no disk quotas are enabled. I need monitor the disk usage of individual ...
0
votes
3answers
78 views

Get recursive file count (like `du`, but number of files instead of size) [duplicate]

Since I'm having performance problems with rsnapshot, I'd like to identify directories with great number of files recursively. I think the problem is not the size of the files, but the file count in ...
3
votes
1answer
80 views

Where are my inodes going?

My root filesystem is running out of inodes. If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find ...
0
votes
0answers
38 views

du -hs shows 15gb usage but the files are 30gb on the local disk [duplicate]

I just finished copying my music collection to my Android SD card. The files are on a local hard disk and were copied to the SD card using mtpfs (FUSE driver for accessing MTP protocol as though it ...
2
votes
1answer
39 views

Output file generated by tar

tar can be used to gather a whole directory into a single file. I tried with the sample directory sampledir containing just some text files, with no subdirectories. Originally the directory occupies ...
0
votes
2answers
54 views

How to find all .zip and .rar files recursively and sort them by size [duplicate]

I am looking for all .zip and .rar files in comp_tuts folder and I am intersted in showing their file sizes and sorting them from biggest to smallest. I have tried ls -R *.zip ls: cannot access ...
0
votes
1answer
38 views

Disk still full after deleting some files

I have an AWS linux instance with a root drive of 32GB I have an EBS mount of 20GB On my root I ran out of space so cleared out some files. However my root drive is still full. I can't find out why ...
59
votes
1answer
3k 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 ...
1
vote
1answer
44 views

du reports directory size as much bigger than the sum of its contents

Running du -shc * in the top directory gives 110G for a particular folder, whereas running the same command inside that folder gives a total size of 11G. How is that possible? Platform Details: OS: ...
0
votes
0answers
39 views

MS Windows Folder Properties Size / Unix du -bs

I use MS Windows Folder Properties Size as a means to check the integrity of folders as I make copies, archives and backups. There have been multiple posts on the difference between the Unix system ...
14
votes
1answer
6k 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 │   ├── ...
-2
votes
1answer
23 views

Official resources about disc management on linux / distributions [closed]

My question is about official linux and common distributions (e.g. fedora/debian) on learning disk management in practice on linux / linux distributions. The layout, may be including the file system, ...
3
votes
1answer
53 views

hardlinks seem to take several hundred bytes just for the link itself (not file data)

Additional Info Firstly, thank you for all the answers. So I re-ran the tests again to test the answer below that a directory/folder entry takes up 4KB and this was skewing my numbers, so this time ...
4
votes
1answer
50 views

218TB XFS LVM filesystem. 144TB Free. Error message “No Free Space Left on Device”

I have a giant 218 TB RAID6, across LVM. It is actually 2 separate RAID6s joined together through LVM to form one giant RAID6. df -h shows all space was available, and I mounted to /share. I wanted ...
3
votes
3answers
79 views

Solaris 11 and zfs, i don't understand space used

This is the situation. Solaris11 virtual machine on VirtualBox as guest. Virtual disk is 55GB df report Filesystem Size Used Available Capacity Mounted on rpool/ROOT/solaris-8 55G ...
0
votes
1answer
30 views

I have just made a 2TB CentOS vm but the disk isn't available

ok yesterday I made a fresh VM with 2.0Tb of disk. when I do df -H this is what I get [root@datastore ~]# df -H Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_datastore ...
165
votes
31answers
101k views

Tracking down where disk space has gone on Linux?

When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
4
votes
1answer
527 views

GNU/Linux, IO performance problems

I have some problems with my system performance. As I was adviced here, I used sar: $sar -u 5 and found out that the problems are caused by a low HDD performance, as I supposed (high %iowait). ...
1
vote
2answers
55 views

Using df and trying to awk a specific column

Among other problems with this script I am trying to make (this is the first unix/linux script I have ever made), I am trying to use df to get the % of disk space used and email it to the root. Our ...
1
vote
2answers
34 views

need to repartition logical volumes

I have bad balance between my root/home LVs. Please note that I'm extremely new to understanding disk management and Linux in general, so I'm probably going to say a few things incorrectly. My goal ...
5
votes
1answer
4k 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 ...
1
vote
0answers
36 views

overlayfs root filesystem, cannot read /etc/mtab

I'm doing the following: mkdir /tmp/upper /tmp/work mount -t overlay overlay -o lowerdir=/,upperdir=/tmp/upper,workdir=/tmp/work / ls -l /etc/mtab > lrwxrwxrwx 1 root root 19 27. Feb 09:16 ...
1
vote
0answers
13 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
2
votes
1answer
33 views

swapon command is not listing the lvm name

I am facing issues with swapon -s command. It is displaying some other filename instead of my lvm name which i have given ( swap is LVM partition ) swapon -s command is not listing my LVM Name for my ...
0
votes
2answers
27 views

Linux tools for deleting backups when they get too old?

I was looking at SQL Server 2000 today, and it has an argument in the EXECUTE command called -DelBkUps for deleting backups that are of a certain age. Does Linux have any tools for deleting backups ...
2
votes
5answers
109 views

Understanding where disk space has gone?

I am using Debian. df -h shows me that I'm using around 275GB: Filesystem Size Used Avail Use% Mounted on rootfs 315G 274G 26G 92% / udev ...
1
vote
2answers
92 views

df -h shows only half the disk space I thought I had?

I am a Linux newbie. I'm working on a DigitalOcean Debian droplet that in theory is supposed to offer 640GB of disk. When I do df -h this is what I see: Filesystem Size Used Avail ...
1
vote
2answers
53 views

du: combine both timestamps

On Linux, du offers the displaying of timestamps: atime OR ctime OR mtime Question: Is there an easy way to get all three of them displayed at the same time (one file, all three timestamps)? I guess ...
0
votes
1answer
127 views

Mounted Filesystems showing wrong details

I am using SLES 11 SP3. When I run df -lh in order to see mounted filesystems I get following results, which are correct: Filesystem Size Used Avail Use% Mounted on /dev/sdb3 9.9G 2.9G ...
4
votes
4answers
443 views

How can I get the size of stdin?

I'm about to compress a large directory and I want to know how large, exactly, the resulting file will be. I've tried using du: $ tar -cv dir | du -h - du: cannot access '-': No such file or ...
0
votes
1answer
205 views

Google Chrome - no space on rootfs partition

I've managed to install google-chrome on Debian Wheezy. My rootfs is only 320MB because I didn't predict that some day I would install Google Chrome, which has more than 100MB and installs in /opt ...