The tag has no wiki summary.

learn more… | top users | synonyms (2)

1
vote
2answers
24 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
14 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
45 views

How to reduce disc 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
81 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 ...
4
votes
1answer
33 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 ...
0
votes
1answer
23 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 ...
2
votes
1answer
61 views

Unreferenced inodes on EC2 linux instance

I have an Amazon EC2 instance which I am using as a NFS file server. It's using a 5x1TB volume RAID0 array. The system is very I/O intensive and files are being written/copied/deleted through the NFS ...
-4
votes
1answer
38 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 ...
36
votes
4answers
23k views

Reserved space for root on a filesystem - why?

I understand that by default, newly created filesystems will be created with 5% of the space allocated for root. I also know you can change the defined space with: tune2fs -m 1 /dev/sdXY What I'm ...
0
votes
1answer
21 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
1answer
32 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 ...
0
votes
0answers
48 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
54 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.
4
votes
4answers
716 views

How to find out what is wasting space on “/”?

I can find out what is wasting space with this: du -sm * | sort +0nr | head -30 But what if "/" is filled 100%, and there are many mountpoints, ex.: /foo, /foo2, etc. How can I get a list of ...
9
votes
4answers
4k views

Is there a way of deleting duplicates more refined than fdupes -rdN?

Recently I have the need to delete a lot of duplicates. I am merging three or four filesystems, and I want the space to be used economically. At first, fdupes seemed like it was the best tool for the ...
0
votes
2answers
73 views

29GB Log File on Linux Mint on a 38GB Partition

Had a low-space warning, Google'd the problem (had 1.8GB free at the time), found topics about running $ sudo du -x -d1 -h /var | sort -hr and I did: 30G /var 29G /var/log 353M /var/cache ...
3
votes
3answers
6k 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
0answers
34 views

df-command free disk-space wrong [duplicate]

Filesystem Size Used Avail Use% Mounted on /dev/sda1 107G 4.4G 97G 5% / dev 3.9G 0 3.9G 0% /dev run 3.9G 576K 3.9G 1% /run tmpfs 3.9G ...
1
vote
2answers
38 views

Monitor Disk Usage per directory/file

I have a huge java app that drives my disk crazy. As I think that this issue is only due to 3-5 small things I would like to monitor what is written to/read from disk within an hour sorted by size and ...
12
votes
3answers
15k 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 ...
1
vote
3answers
458 views

awk a specific column with unexpected line break

I can't seem to find a solution for this and it's driving me crazy. I know I can use awk to print a column(s). I'm having trouble printing a specific column though because of the way my file system is ...
2
votes
1answer
51 views

Why is my hard drive out of space if gparted says I have 500+GB

I recently installed Debian on my machine and made separate / and /home partitions. Yet my disk usage analyzer shows that my /home is inside /. But gparted shows that /home is indeed in it's own ...
2
votes
2answers
67 views

24gb files removed but no changes to the available space. What could have happened? [duplicate]

We have this virtual machine that has Apache2 installed, we forgot to install a log rotate and we got 24gb of logs from Apache2, We removed those 24gb of log files but no changes occurred to the disk ...
1
vote
2answers
135 views

Why does “df -h” show out of sync space used? [duplicate]

I have tried different commands to see sizes of partitions and space used/left and it seems that they always differ in their results. Here is my space used/left with from the command df -h: Size ...
3
votes
2answers
87 views

Finding all large files in the root filesystem

I have a linux server, which currently has below space usage: /dev/sda3 20G 15G 4.2G 78% / /dev/sda6 68G 42G 23G 65% /u01 /dev/sda2 30G 7.4G 21G ...
2
votes
3answers
5k 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?
1
vote
2answers
112 views

du cannot access file - No such file or directory error

I have lots of subfolders inside a particular folder which in turn contains lots of smaller files. They are created programmatically and so I do not know how many of them are there inside. I decided ...
11
votes
6answers
25k 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 ...
1
vote
2answers
52 views

Wrong amount of free disk space seen after using Gparted

I am running Ubuntu 12.04 in a VM. I have recently resized the hard drive of this VM doubling its size with Gparted. However, when I run df -h, Ubuntu still sees the old hard drive space, while ...
8
votes
3answers
376 views

Why does fstab use UUID instead of the actual file system name?

For example, this is the first line of my /etc/fstab: UUID=050e1e34-39e6-4072-a03e-ae0bf90ba13a / ext4 errors=remount-ro 0 1 And here's the output of df -h command (reporting free ...
4
votes
4answers
113 views

Combine fdisk and df in the same output

sudo fdisk -l gives : 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size ...
22
votes
7answers
6k 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
75 views

Disk full on a server with a large /home partition

I've just got this CentOS Server but I think I've set it up wrong as I can only upload a few GB then I start getting errors, It should have ~1TB. this is the results of lsblk [root@ns4005990 ~]# ...
2
votes
2answers
83 views

how to show total files size in a folder by filtering extension without showing each file size

du -hc *zip shows me total size of zip files in a folder, but it shows also every single file size of the folder. I only need total size. Is there way to show the total size of a folder without ...
0
votes
1answer
47 views

Partition is out of space

When I was trying to resolve the issue as seen in this question, I figured out that a specific partition is out of space. I have a specified folder which I allow all ftp uploading of multimedia files ...
2
votes
2answers
210 views

root partition getting full with nfs mounted directory

I am having one nfs volume, which is mounted on one of the directory of root partition. My problem is when I checked df -ha it adds up mounted directory file content as well. Following are my ...
3
votes
1answer
54 views

Does du or df perform caching?

I was wondering if there is any caching done with these utilities. I assume not, but not positive. Are there any typical similar utilities that do use caching to speed up results on subsequent runs? ...
2
votes
2answers
135 views

find the single largest file

We host a share of size 4 TB. How efficient is it to find a file with highest size. Usually we use: du -ak | sort -k1 -bn | tail -1 and it is not easy to scan through a share of such huge size and ...
1
vote
3answers
60 views

How do I see how many blocks I have free on my filesystem?

I know df is supposed to provide this information, but when I run df it shows the number of 1k blocks free, yet my filesystem is using 4k blocks. I could simply divide by four of course, but this ...
0
votes
1answer
49 views

Help Deciphering Disk Usage. Where Did the Space Go?

The System An instance running on Amazon EC2 It is an m1.large EC2 instance The instance is running Ubuntu Server 12.04 LTS Here's What Happens... To begin, let's execute the following: ...
1
vote
2answers
133 views

How to know in which partition my application has been installed?

If I run df -h in an Oracle LINUX 5 server, I got below output: $ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 12G 8.8G 1.8G 84% / ...
2
votes
2answers
297 views

I get low disk space warning after my last upgrade [duplicate]

I am using Linux mint 16 cinnamon. After my last upgrade free disk space dropped from 4.2GB to around 344MB. Don't know what happened. This is the output of df -h Filesystem Size Used Avail ...
2
votes
5answers
201 views

How to free space on a completely full volume?

I am using Linux. And within an uncontrolled event, my 4GB system disk is full. When I try to uninstall some program by sudo apt-get purge program-name, it gives me this error: /usr/bin/mandb: can't ...
3
votes
4answers
191 views

How to get folder size ignoring hard links?

I use rsnapshot for backups, which generates a series of folders containing files of the same name. Some of the files are hard linked, while others are separate. For instance, hourly.1/file1 and ...
2
votes
1answer
97 views

Is it possible for du to report significantly more disk in use than the mount point has available?

I ran into an interesting situation the other day. I have a 1TB NFS filesystem mounted on /backup. df reported approx 1TB total size, as expected. However, running du -csh . in the /backup/.snapshot ...
1
vote
1answer
59 views

How to find the true disk usage on my Linux box?

I have a linux box on my school's server. When I was trying to install Protocol Buffers, disk usage is reported as exceeded. So I checked my disk usage by two command on my home directory: du -h ...
42
votes
1answer
1k 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 ...
15
votes
4answers
635 views

How can I determine if running tar will cause disk to fill up

If I run tar -cvf on a directory of size 937MB to create an easily downloadable copy of a deeply nested folder structure, do I risk filling the disk given the following df -h output: /dev/xvda1 ...
1
vote
1answer
21 views

How to ascertain remaining space on an isolated partition from the command line

I was recently told by another developer that whilst diagnosing a server issue (our application could not write logs due to insufficient disk space) he was able to view remaining disk space on what he ...
1
vote
2answers
95 views

Why Ubuntu and Windows show different amount of free space

For all my NTFS partitions, Ubuntu always shows 1~2GB more free space than Windows. What's the cause of this? Will some of my files be overwritten just because Ubuntu thinks there is more free space ...