This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

2
votes
1answer
37 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
37 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
26 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 ...
58
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
41 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
32 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 ...
10
votes
3answers
589 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 ...
13
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
51 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
48 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 ...
0
votes
1answer
849 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 ...
3
votes
3answers
49 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 ...
157
votes
31answers
91k 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 ...
2
votes
1answer
667 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 ...
4
votes
1answer
517 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
52 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
26 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
29 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
11 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
27 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
26 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
93 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
84 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
43 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
84 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
393 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
203 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 ...
3
votes
5answers
93 views

How can i find out what is taking space on my system

I am trying to find out what files/folders are using most space on the filesystem df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 94G 85G 4.4G 96% / tmpfs 16G ...
5
votes
3answers
563 views

Why does du report a size of 0 for some non-empty files on a HFS+ partition?

What is the explanation for the difference: $ ls -l /Applications/Safari.app/Contents/Info.plist -rw-r--r-- 1 root wheel 15730 11 jui 15:02 /Applications/Safari.app/Contents/Info.plist $ du -sh ...
5
votes
5answers
4k views

DU: only show folders at depth

I'm getting output from du -h like the following: 103M ./.wine/drive_c/windows/mono/mono-2.0/lib/mono 103M ./.wine/drive_c/windows/mono/mono-2.0/lib 129M ...
1
vote
2answers
90 views

Find largest files of a particular owner

I accidentally chown'd my entire file system to a particular user, after correcting the issue I've found disk space still being consumed by that particular user's files even though their account ...
10
votes
2answers
324 views

Unable to copy large file onto ext2 usb stick [closed]

I have an 8G usb stick (I'm on linux Mint), and I'm trying to copy a 5.4G file into it, but getting No space left on device The filesize of the copied file before failing is always 3.6G An output ...
0
votes
1answer
94 views

Nand Flash; MTD; UBI; Total Space

My question should stem from my misunderstanding of ubi and MTD. However, I can't figure it out by googling (And didn't find a good tutorial). I simply want to find out the total capacity of my Nand ...
5
votes
2answers
965 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 ...
19
votes
5answers
21k 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 ...
1
vote
1answer
33 views

Search directories and return size / disk space usage for each

On my server I have a bunch of accounts that have WordPress installed and also have backup directories in the format: softaculous_backups. I can find all the directories using the command: $ find / ...
6
votes
4answers
20k views

Shell script to send an alert mail if disk usage exceeds 90%

I am new to shell scripting and want to implement a script on my server which will automatically send email alerts if the disk usage goes over 90% and second email alert when it goes over 95%. My ...
1
vote
1answer
40 views

Monitor a hard disk partition

I need to monitor a partition on a CentOS server (/, to be exact) and would like to be alerted when it is full or full to a certain percentage. What is a simple way (using built-in tools) to ...
4
votes
1answer
263 views

Why does `du -sh *` complain about invalid options?

I've searched my best through Google, but for the life of me I can't figure out what to use instead of * (asterisk) after a recent update (even Wikipedia seems to think du -sh * and du -sh * should ...
1
vote
3answers
196 views

Why doesn't df's output default to a human-readable format? [closed]

I mean, did the developers think people would enjoy reading 19478204 rather than 19 GB? Could it be that in the older systems there weren't as much disk space so it was OK back then to count ...
26
votes
3answers
45k 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 ...
8
votes
3answers
901 views

How do I compress files in-place?

I have a machine with 90% hard-disk usage. I want to compress its 500+ log files into a smaller new file. However, the hard disk is too small to keep both the original files and the compressed ones. ...
1
vote
1answer
125 views

How to tell the sizes of files and folders, sorted, and in MB, GB, instead of a long integer? [duplicate]

On a Mac, using Bash, I tend to do du -sh * to tell the sizes of files and folders in the current directory, in MB and GB. But if I want to sort them by the sizes, I might do du -sh * | sort -g ...
0
votes
1answer
24 views

Why does Calamares think there isn't enough space?

I am exploring the Maui distro and this is my first experience with Calamares. During the 'prepare' stage of Calamares it complains that my system doesn't have at least 6GB of available drive space. ...
29
votes
10answers
15k 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 .
0
votes
2answers
64 views

Deleting files after booting from a USB drive

I am unable to boot my laptop and, from what I have read, it is due to the disk being full, which in turn is because Evolution downloaded 6000 emails, clogging the system. I can boot from a USB memory ...
68
votes
12answers
36k 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 ...