This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

4
votes
0answers
59 views

Ubuntu - No space left on device

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 ...
0
votes
1answer
45 views

du and ls commands reporting wrong directory size

I'm used to the du command. I often use it with -h option. I report the result in a text file which I use to track space consumers. But I was wondered today to see a directory being reported as using ...
3
votes
1answer
121 views

How to find which process is currently writing to the disk?

For some unknown reason there is no space left on my /, even 5 minutes after removing 300 MBs of junk packages, there is no space left again. So I've come to conclusion that there is some process that ...
2
votes
2answers
196 views

monitor linux file systems using df

I use df -kh to get the file system usage, but the trouble is if there is any NFS mount failure in any of the boxes the command will hang. Is there a better way to monitor file systems other than df ...
1
vote
0answers
69 views

No space left on device, with 320 GB free

I'm a bit lost. I have a 500 GB external hard drive with its original filesystem still in place. The last command (dd writing to a file within this filesystem) failed with "no space left on device". ...
1
vote
0answers
25 views

How to mount sdb directly or using LVM partitions on sda?

I am new to LVM and VM yet, and I need to be able to access sdb like /mybackup/ 1 - should I have sdb1 created then mount? 2 - should I mount sdb as whole disk without LVM? 3 - create lvm and than ...
1
vote
1answer
39 views

What does the ouput of `du` mean?

I made a recursive copy of directory but according to du the two directories have different sizes. $ cp -r site2 site $ du site 838048 site/ca.oslin.org 276108 site/hts-cache 1114196 site $ du ...
0
votes
0answers
28 views

The df command shows incorrect data [duplicate]

I installed Linux Mint 17 on my Intel SSD320. Disk size is 80GB. I have root(dev/sda1) partition 79GB and 1GB swap. When I run command df -h, I get strange values. Souborový systém Velikost Užito ...
0
votes
3answers
33 views

Why do du's subdirectory values not sum up to total?

I'm trying to use du to investigate disk usage in a directory like so: du -hd1 | sort -rh This gives me a list that starts as follows 61G . 7.9G ./A 5.1G ./B 2.7G ./.C 1.6G ./.D ...
4
votes
1answer
35 views

How to check (simulate), how much space will be freed after I remove a btrfs subvolume?

The question is not trivial. BTRFS is COW file system and one object stored on hard disk can be referenced by many files. I use BTRFS snapshots as a part of a backup solution on my production ...
2
votes
4answers
57 views

space check on unix machines

I am having space issues on 1 of the UNIX servers. I am executing the below command to check the space utilization. But this command is very slow and takes hours of time to give the result. du -sg * ...
0
votes
0answers
8 views

Using snmpdf on a linux or unix machine

After searching and thrusting many different tries into play, I cannot find a command or variation of one that will print results different from: $ snmpdf -v 2c -c inserted_tries here Description ...
11
votes
5answers
819 views

How do I get the size of a directory on the command line?

I tried to obtain the size of a folder (containing folders and sub folders) by using the ls command with option l. It seems to work for files (ls -l file name), but if I try to get the size of a ...
1
vote
0answers
26 views

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

I have similar problem like unix.stackexchange.com/questions/37489/ btrfs filesystem show Label: none uuid: 3fdeaf6d-ca88-4cc8-8405-f882f02693f7 Total devices 3 FS bytes used 1.53MB devid ...
0
votes
1answer
24 views

Disparity between output of `fsck` and `df`

fsck shows /dev/sda1 is okay, and uses 3811/49152 inodes and 105570/171776 blocks. df -i and df show that /dev/sda1 uses 443/239944 inodes and 0/959776 KiB. GParted shows /dev/sda1 uses ...
0
votes
0answers
14 views

How can I figure out the size of a block on a busybox device?

This is the output of df on my little embedded device: # df Filesystem 1k-blocks Used Available Use% Mounted on rootfs 3008 3008 0 100% / /dev/root ...
3
votes
1answer
33 views

“Ghost” files in ext4? (ktorrent allocated disk space)

I'm downloading with KTorrent, and have noticed that when I select "allocate disk space before starting torrent", it creates all the files at start, presumably empty, to avoid fragmentation. When I'm ...
3
votes
2answers
97 views

df, du report incorrect disk usage

df and du both incorrectly report that my root partition, a 100GB SSD, has no remaining space and uses 100G respectively; 85G in /home/steven alone. A simple summing of the disk usage provided by du, ...
1
vote
2answers
81 views

15 GB of unaccounted-for space in filesystem

[nathanb /mnt/work] sudo du -hs . 23G . [nathanb /mnt/work] df -h . Filesystem Size Used Avail Use% Mounted on /dev/sdb1 40G 38G 6.4M 100% /mnt/work Where is the other 15 GB? ...
1
vote
1answer
35 views

What is this data that keeps reappearing after partition delete + new partition creation?

I deleted a big extended partition containing an ntfs logical partition with high percentage of occupied space and from that extended partition I made a new, smaller extended part. In it I ...
2
votes
2answers
73 views

Is it safe to empty /usr/share/doc?

I don't need the man pages and documentations on my debian server. Is it save to empty that folder completely to free up some disk-space, by replacing all files in that folder with empty dummy files. ...
0
votes
1answer
23 views

removing clamav with purge leaves database

I uninstalled clamav with apt-get remove --purge clamav but still I have this 100MB folder: du -shc /var/lib/clamav Why is this not deleted on purge? And how can I find out if some other ...
4
votes
0answers
53 views

Fixing terrible performance when watching/reading video and writing video files to disk

I have had this issue for quite some time and tried many times to fix it on my own and it always fails. IP schedulers, ionice and things like that always yield no result. I even went and bought an ...
1
vote
1answer
33 views

System reports almost no space available, but the totals don't add up

I'm running Debian 6.x df -h tells me this: # df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 19G 17G 696M 97% / .... But these numbers don't add up... # ...
3
votes
2answers
374 views

What does “1K-blocks” column mean in the output of `df`?

What does "1K-blocks" column mean in the output of df? $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda7 21181308 19302672 802668 97% / udev 4070176 ...
4
votes
2answers
74 views

How do I get the old `du` behaviour back?

Trying to move stuff around on my server (Ubuntu 12.04) I wanted to know the size of each of the subdirectories of the current directory and the total for the current directory using du: $ du -sm * . ...
3
votes
1answer
69 views

du -s --apparent-size VS du -s

Can someone tell me the differences from: du -s dir 3705012 dir du -s --apparent-size dir 3614558 dir these dirs are inside a block device (created using cryptsetup). Or better: why I need add ...
1
vote
1answer
37 views

How to collect disk read/write activity over a given period of time?

Sometimes, especially upon login, I have a lot of disk activity. I can use iotop to see what's doing that at a given moment, but I would like to have an integral table over a given time, say the first ...
6
votes
3answers
638 views

What's the rationale to have option to use power of 1000 instead of 1024 in df?

I'm curious about df -H and df -h, then man df tells me: -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) -H, --si likewise, but use powers of ...
2
votes
2answers
51 views

Combine output from df -h /dev/xvda1 into a single line

I want to convert the 2 line output from df -h into a single, meaningful line i.e. Take [root@ip-10-42-1-246 tmp]# df -h /dev/xvda1 Filesystem Size Used Avail Use% Mounted on /dev/xvda1 ...
0
votes
2answers
59 views

How can I recover disk space shown by the difference in disk usage between ls and du

I have a one Terabyte external hard disk drive that I intend (should have done this long ago) to use for backups, and I have done a lot of experimenting to get my mind round it. When I looked again ...
2
votes
3answers
92 views

How to know list of directories under a filesystem?

If I run sudo df -h command, I got below output: Filesystem Size Used Avail Use% Mounted on /dev/sda2 12G 9.5G 1.1G 91% / /dev/sda4 3.8G 1.5G 2.1G 41% /home ...
0
votes
1answer
314 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 ...
4
votes
2answers
510 views

How to show only total file size of particular extension by `du` command

I have a hundreds of pdf files and html files in a directory. And I want to know total size of pdf files. By command du -ch /var/foo I can see total file size but I only need last line, the total ...
7
votes
3answers
750 views

How to recompress 2 million gzip files without storing them twice?

I have about 2 million (60GiB) of gzipped small files and I would like to create a compressed archive containing all of them in an uncompressed version. Unfortunately, I cannot just uncompress them ...
0
votes
1answer
3k views

“bash: cannot create temp file for here-document: No space left on device”

My / only has about 800MB free space left. I guess it is the reason that $ convert * book.pdf Segmentation fault (core dumped) bash: cannot create temp file for here-document: No space left on device ...
1
vote
1answer
41 views

du -sh on a new directory gives different results in different locations

Here's what happened when I created a new directory and immediately ran du on it. There are no contents in this directory. me@mybox[~]$ mkdir /scratch/test2 me@mybox[~]$ du -sh /scratch/test2 4.0K ...
3
votes
4answers
612 views

Which directory is taking up the most space

Jenkins has stopped building and I can see from df: that /var is maxed. Following this I can see the culprit is /var/lib/jenkins 52K alternatives ... 4.0K games 2.3G jenkins <--this ...
1
vote
0answers
55 views

What is the most elegant way to limit /tmp?

Recently I was struck by this tricky bug. In it, /tmp gets overflowed with symlinks until the system runs out of inodes. What is the best way to be sure that this can never happen again? I'd like to, ...
3
votes
1answer
96 views

Find the total disk usage not including files containing a string

I am trying to get the disk usage of the owncloud directory except not including the files and dirs containing the string nobackup in the name/dir. This is my command so far : find . -type f -not ...
1
vote
2answers
70 views

du command combined with find -mmin

I want to have an idea of how much archivelogs the database is generating daily, so I did: find /u02/archivelog -mmin -1440 | du -sh and got 220GB, which is the total size of all files in that ...
0
votes
2answers
48 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 ...
0
votes
1answer
73 views

why are /media and /home /mnt/home so large?

I am trying to get hplip-3.14.10 on a desktop. I found out that the setup returns a make command failed with status code 2 which is caused by insufficient disk space. I used disk usage analyzer to ...
0
votes
2answers
250 views

Different sizes after copy [duplicate]

I would like to copy for backup porposes a Linux user home directory with several GBs of data and the usual configuration files. The source directory and the backup directory should exactly have the ...
1
vote
1answer
89 views

Cannot use free space in filesystem

I want to install a program but it says that there is not enough free disk space more than 11 GB although there is. df -h shows: Filesystem Size Used Avail Use% Mounted on ...
0
votes
3answers
96 views

mysqld is not starting up anymore due filled disk [duplicate]

How to clean logs or find largest files and reduce the space? also i do not understand 1.7T is not even used in this critical moment. Mysqld is not running because 99% is used. # df -h Filesystem ...
0
votes
1answer
90 views

Filesystem and mount point

I am confused with which path should I give to store the file. host# df -h Filesystem Size Used Avail Use% Mounted on /dev/xvda2 ...
0
votes
1answer
62 views

List the size of subdirectories only considering pdf files

I've tried to list the size of subdirectories of the directory home just taking the files with pdf extension. I tried the next ls $home -d /* | xargs du -sb --exclude="!(*.pdf)" Is there any ...
2
votes
2answers
261 views

How to make system file partitions larger without reinstalling

I'm a complete beginner with any Linux distro and I recently picked up SteamOS. SteamOS I believe is Debian based. I wiped the laptop and got it installed nicely. When I started moving my music over ...
2
votes
1answer
111 views

Why are du some options not available

I have been using bash on my Synology NAS (which runs BusyBox). I recently needed to reinstall the OS. Now a script I have that uses du to generate a file containing folder sizes fails because du now ...