This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

2
votes
2answers
34 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
9 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
44 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
25 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
290 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
63 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
41 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
33 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 ...
5
votes
3answers
620 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
47 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
53 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
67 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
113 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
2answers
172 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
709 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
1k 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
33 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
376 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
44 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
85 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
61 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
46 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
61 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
123 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
66 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
66 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
66 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
53 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
159 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
81 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 ...
2
votes
2answers
159 views

Debian 7.6 OpenVZ VPS claims full disk usage when it's clearly not true

I have Debian 7.6 installed on an OpenVZ VPS with 10G hard drive space, but for some reason it claims 100% is used when I'm clearly not using that much. I ran df -h to find out the following: $ df -h ...
1
vote
3answers
347 views

“grep” the available space from “df” output

Hello I need to grep the output from df. Sadly awk is not an option (even though its the easy option) here I can only use grep. Filesystem 1K-blocks Used Available Use% Mounted on none ...
1
vote
2answers
80 views

Ubuntu 12.04 constantly out of space [duplicate]

I am having this strange problem of my system running out of space constantly. Just yesterday I cleaned up near 15GB of space and today I see it is out of space. I really don't get it. I know some ...
3
votes
2answers
136 views

Why does du and quota results not match?

I have exceeded my disk quota on a system which I do not have root access. I tried removing old files but am still over. I tried runing du to find where I am using up all my space but it reports I am ...
1
vote
4answers
123 views

how to match the number with % from df -k command

in my bash script I want to print the use capacity of /var partition from df -k command I do the following df -k | grep var | awk '{print $5}' the problem is that sometimes "use%" number ...
3
votes
1answer
64 views

List File Space Ownership By User

I have a 4TB NFS file system that is being served from a NetApp filer. The NetApp's quota tools tell me that a certain user is using X amount of disk space in that qtree, but it isn't in "their" ...
4
votes
1answer
219 views

du command gives error and result at the same time

I would like to know the disk space of my VPS, and although for folders du works fine as $ du -sh /home/ 325M /var/ But trying to get the entire vps is giving me this result. [root@user/]# du ...
3
votes
1answer
86 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
225 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 ...
1
vote
2answers
55 views

Getting the size of parent folders when using find to search for criteria?

I am hunting for a certain regular expression within the filenames and am seeking to return the parent folders with their sizes in a unique fashion. For example, here is the command that I expected ...
2
votes
1answer
42 views

Disk usage inside archives, like ncdu

I am a fond user of the ncdu utility to figure out how space is used within a directory. However, I have a use case where I am trying to choose which folders to backup and which folders not to ...
1
vote
2answers
148 views

How to reduce disk access?

This is a follow-up question to How to reduce temperature on a Dell XPS (L502X)?. After reading the answer, I noticed that my harddrive is spinning constantly, even when running TLP in bat-mode ...
3
votes
4answers
130 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
66 views

difference between df -h and dfc

Why is there a difference in the used size between dfc and df -h? $ df -h Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf /dev/sda7 64G 51G 11G 83% / none 4,0K ...
-4
votes
1answer
41 views

What is the significance of the the leading “4” before the listing of modified files?

After running the following command: find /Users/UserName/Documents -type f -mtime -1 -print0 | xargs -0 du -sk | sort -nr I receive the following output: 4 ...
0
votes
1answer
32 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?
0
votes
0answers
205 views

How can I set quotas (space limitation) for samba users?

I configured samba server in CentOS 6. It will be working fine. The windows users share the files through samba. I want to set space limitation for samba users.
0
votes
1answer
236 views

How to know free disk size witout df command? [closed]

Is it possible to check free disk size in Linux without using command lines such as df? Since my host machine is embedded Linux, there are no direct command lines that show free disk size.
1
vote
1answer
74 views

Format USB drive

I have a USB drive which I format with sudo mkfs.vfat -I /dev/sdb1 When I then look at the size of the USB drive with df -h, it reports its size to be 64 MB, though it should be 8 GB. What am I ...
4
votes
1answer
83 views

How to find Debian packages that would free up the most space

Say I have a Debian machine where I would like to free up space on '/' by removing useless packages. To find good candidates of packages to review, I would like to focus my attention on the largest ...