This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

1
vote
2answers
85 views

`du -b` shows different size than `ls`

I have a directory with a few hundred files (real files, no symlinks, no subdirectories). When I use ls -la and sum up the sizes in Excel I get 287190 bytes(?). When I use du -b or du ...
0
votes
2answers
248 views

Redhat 6.6 root partition is showing 100% full after power failure [duplicate]

I'm running Redhat 6.6 and experienced a power failure over the holiday weekend. The / partition is showing 100% full. How do I check to see which files are actually causing the overusage? ...
-1
votes
4answers
19 views

sort and du together to list file sizes but the output unit is wrong

So I have a large list of files to sort by sizes and this is what I got so far: du -ha /local | sort -n -r | head -n 10 1020K /local/dir/more/dir/filesnames.blabla 1020K ...
2
votes
2answers
59 views

Having trouble making sense of the df command

uname -a Linux CentOS01.localdomain 3.10.0-229.14.1.el7.x86_64 #1 SMP Tue Sep 15 15:05:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Here is the output of lsblk on the centos VM I'm playing with: ...
6
votes
2answers
538 views

Gparted says disk is full but it isn't

I'm on Manjaro and today I woke up to find my computer having problems due to a full disk. I have deleted many things but this did not solve the issue. I have no idea what is happening. Is there a ...
0
votes
0answers
40 views

Help me with C-shell Script: Disk checking

i am new in shell script. i have given a task to make a C-shell script. I have list of ip address and device name respectively. For example; cal 1 : 100.21.25.10 cal 2 : 100.21.25.11 cal 3 : ...
0
votes
2answers
224 views

Is it safe to remove /var/log files?

Today I was freeing my space in my Linux mint 17. Disk analyzer found that /var/log uses 54+ GB. What is /var/log used for ? Is it safe to delete /var/log ?
7
votes
1answer
164 views

Why is `du --apparent-size` sometimes off by more than 90%?

I'm working on a software that builds Pacman packages (which basically are tarballs with some special metadata files). The test suite builds some packages, then compares the resulting package to a ...
5
votes
2answers
545 views

How do I get the total size of everything in a directory in one line? [duplicate]

I know I can use du -h to output the total size of a directory. But when it contains other subdirectories, the output would be something like: du -h /root/test . . . . 24K /root/test/1 64K ...
1
vote
2answers
132 views

What's the minimal disk usage of stripped-down Debian 7 installation on a VPS?

I don't have control over the installation of debian, it's a pre-built debian 7 image provisioned by the VPS provider. It consumes about 6.5GB of disk space 'out of the box.' Do you think it's ...
1
vote
1answer
59 views

directory size in conky

Conky is a system monitor software. I want to display the directory size of /usr and /var. Unfortunately I did not found any conky command so i made my own. /usr $alignr${exec du -sch /usr | head -n1 ...
0
votes
0answers
43 views

Ubuntu disk space issue [duplicate]

There is some anonymous space consumption on my disk having Ubuntu. When I run the command df -h it shows me that total consumption is 5.4G. But when I run command du -hscx * on / directory it shows ...
1
vote
4answers
119 views

Bash script to list items in directory by size

How do I write a script that for each argument, the script should display the largest item in the directory along with its size. Something like this: [user]$ maxls /boot 2> /dev/null | sort -n ...
10
votes
3answers
1k views

combine the best of 'du' and 'tree'

I'm wondering if we can combine the honesty of 'du' with the indented formatting of 'tree'. If I want a listing of the sizes of directories: du -hx -d2 ...displays two levels deep and all the size ...
1
vote
2answers
108 views

du -sh ./* returning non-empty folders as 0 bytes

This may end up being a dual part question so bear with me. In the past if I want to see the size of all folders within my current directory, I would use the following: du -sh ./* When I do this on ...
2
votes
2answers
80 views

Why does df on a specific mount iterate over all mounts?

When running df /nfs/mount/point, I expect that it will be faster than df | grep /nfs/mount/point, because it will not stat all other mount points. But strace shows that stat is executed all NFS ...
1
vote
1answer
93 views

Postfix is not releasing email

I got a Ubuntu 14.04 server and I am testing Postfix. My /var partition got full at a certain moment, but I could still send some emails (locally and to a different host too). Postfix accepted for ...
0
votes
1answer
851 views

What is Iused in df -kg on UNIX?

What is Iused column when running df -kg command on AIX server? @:/logs #df -kg Filesystem GB blocks Free %Used Iused %Iused Mounted on /dev/hd4 1.00 0.61 39% 6103 ...
-1
votes
1answer
147 views

how to use ECHO to print out the du of a home directory in mb?

This should be a simple hw problem but I can't seem to get it to work correctly. This is an old lab that I missed a while ago (make ups are not allowed), so no I'm not just trying to get other people ...
1
vote
2answers
163 views

Number of files does not match inodes

I notice that the number of used inodes on the OCFS2 partition is around 28 million. I moved a folder that contained 518K files and the number became 22 million. The following script finds the number ...
0
votes
2answers
424 views

how to trace the view from df command in case of new mount point

My target is to verify consistently if some new mount point was added, and I need to verify this by df command So the following command actually view the df , and in case of new mounting point then ...
-1
votes
1answer
200 views

du -sh and df -h are giving different output [duplicate]

I got an alert stating that 3 of my mount points are 91 % full and i need to clear the files. When I run df -h command it states that the mount points are 91% full but when i try to run du -sh * in ...
0
votes
1answer
59 views

why are DATA partitions not consistently reported in CentOS 7?

Why am I getting inconsistent/conflicting pictures of the DATA partitions that were created in the CentOS 7 installation process when I use df -T -h, parted ... print, and fdisk -l? In case it ...
1
vote
0answers
34 views

Exchanging huge file trees between disks

I have two 1TB disks and a huge file tree on each. Each takes up about 85% of their disk. I want to swap/exchange the trees between disks. The only spare (USB) disk that big I have is nearly full. ...
3
votes
1answer
214 views

Should I be concerned with large (deleted) files in lsof? [duplicate]

We've been working to clean up some space in our /opt mount. A large culprit of space consumption was log files for some processes we run (to the tune of 2 to 12 GB each). We've cleaned these up by ...
0
votes
1answer
58 views

Volume size larger using fdisk, but not df [duplicate]

I'm trying to increase disk space available on /dev/mapper/centos-root, however, I'm not sure why df -h is not reporting increased size. $ sudo fdisk -l Disk /dev/sda: 68.7 GB, 68719476736 bytes, ...
0
votes
2answers
66 views

Cause of hard disk root space utilization [duplicate]

What is the best way to identify the cause of root space utilization. Even after restart my machine it is only showing 2.2G available in my machine. What are the possibilities # df -h Filesystem ...
1
vote
1answer
61 views

du space more than the disk size [duplicate]

I have a disk size of 1TB. But when I do du -hx . on one of the folders it shows 1.4TB. and df -k . shows 60% full. I dont understand why is the size shown greater that disk size itself. Thanks, ...
0
votes
2answers
216 views

High disk usage with virtfs

I'm trying to figure out (1) how much actual space is in use on my server and (2) what will happen if I use more of it. I originally posted a version of this question on ServerFault, but they kicked ...
3
votes
0answers
30 views

Can I determine the exclusive space usage of groups of btrfs subvolumes?

I want to free up some space in my btrfs filesystem by deleting some snapshots. But I cannot work out which ones would be effective to delete. This question's answer explains how to show the amount of ...
-4
votes
1answer
37 views

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

I want to get the size of all cache files in the home directory.
0
votes
2answers
68 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 ...
2
votes
0answers
80 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
32 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 ...
1
vote
3answers
185 views

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

Recently, I launched the cp command to create a backup of a big directory. So, I used a command like this: cp -rv big_directory new_location Because the files are big, it took a long time to ...
0
votes
1answer
97 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
37 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 whose home directories sizes are greater than 10G and send a notification to them. I ...
2
votes
1answer
114 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 ...
13
votes
2answers
806 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 ...
1
vote
2answers
59 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
85 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: ...
0
votes
3answers
305 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 ...
0
votes
0answers
41 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 ...
0
votes
2answers
142 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 ...
2
votes
1answer
80 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
1answer
475 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 I cleared out some files. However my root drive is still full. I can't find out ...
1
vote
1answer
273 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
85 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 ...
-2
votes
1answer
31 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
163 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 ...