This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

1
vote
3answers
29 views

How to automatically handle low disk space?

Currently one of our prototypes has a very bad caching system. In a matter of minutes it fills up it's harddrive and makes the system unusable. What I need to do then is to restart mysql service to ...
1
vote
4answers
95 views

What command would I use to find out how much total space my hard drive has left?

What's a single command I can run that shows me the total amount of space free on a hard drive? I don't want to do any math, I just want a command that shows me the total free space on my hard drive.
1
vote
2answers
32 views

DF output inconsistency

I moved about 12G files from Linux / partition (to a NFS directory), however it seems that the available size hasn't increased. Here is df result: Filesystem 1K-blocks Used ...
0
votes
1answer
33 views

Disk space full not changing after mount folder on other disk

I have a Virtual Machine setup on azure. I see basic disk was getting full so I attached disk to it and mounted /home/user/mydata folder to the new disk. I forgot to add configuration in fstab. My ...
0
votes
2answers
46 views

No space on the boot disk to update kernel

I have installed centos 7 on vmware and seem to have ran out of space on the boot drive. Is there a way to add more space without formatting the disk? [root@centos7 /]# df -h /dev/sda1 Filesystem ...
0
votes
1answer
28 views

Where is the space from LVM partitions?

Additionally, output from my df -h command and fdisk -l command. Where and how could I utilize space from my /dev/sda4 and /dev/sda5 partitions? I suspect /dev/mapper/fedora-root to be my LVM ...
1
vote
2answers
31 views

how can I take only file name and size from the du -sh command result

Here is my result: These are my postgresql backup files: But I want to keep only the size and filenames for log file. I dont wanna display directory path. Is there a simple solution? This is my ...
1
vote
1answer
44 views

How to get Proper Out for df -k command

I am facing one issue when using df -k command. I need the result to be in proper format so that I can use it for another purpose. System 1 - I have used this command ( df -k | tr -s " " ) Output 1 ...
0
votes
1answer
13 views

Manipulate du's output to get a custom printout [duplicate]

I typically run the command below to check size on each directory. du -sBM /* | sort -nr | head -n20 However, specifying a block size of "M" here will give everything a value in "M". The problem ...
1
vote
1answer
18 views

How can I find only the catalogs and sort them by size

How can I find only the catalogs and sort them by the size (human-readable). I tried with find -type d | xargs du -h | sort -rn But something goes wrong. And all the time its sorted by the ...
1
vote
1answer
52 views

No space left to free up on rootfs partition to upgrade kernel

I want to upgrade Linux kernel from 3.16 to 4.3. Unfortunately when I run aptitude install linux-image-4.3.0-1-amd64 installation fails due to no space on rootfs partition. 117MB left, 174MB needed. ...
0
votes
1answer
57 views

df reports 100% full filesystem, du shows only 25% used even though there's no unlinked file [duplicate]

I have strange issue, df shows rootfs is 100% full but du shows it's 25% used. So I check on the unlinked files from the rootfs using lsof +aL1 / and it does not show me any deleted/unlinked files ...
1
vote
0answers
49 views

Siemens NX 10 installation: Could not determine filesystem containing /usr/ugs100

I debug script to install Siemens NX 10 applications for Debian 8.2, and get the warning: Could not determine filesystem containing /usr/ugs100 space calculations may be incorrect. The source ...
2
votes
0answers
51 views

tune2fs - how much space to reserve on large ext4 filesystem

I am aware that there are several questions concerning how much space to reserve on a filesystem using tune2fs -m, but some of the advice is contradictory, some seems to be relevant only to the ...
1
vote
1answer
73 views

How to print the total available space percentage on a specific file system in both linux and solaris?

I've searched for an answer to this question and I found that this command: df /dev/sda1 | awk {print '{(100 -$5 )}' | tail -1 | sed '/s/$/%/g' does the job pretty well on my linux system but I ...
1
vote
2answers
54 views

How to ONLY print the number that is being produced from du -sh /home?

I am new at unix systems and I wanted to know how to ONLY print the number that is being produced from: du -sh /home because if I execute that command it will print: 44M /home I only want the 44M ...
1
vote
2answers
47 views

Weird disk usage on Enterprise Linux

I'm little bit worried about this (note the 99% used space in the root): $ df -h File System Size Used Free Use% Mounted To /dev/mapper/scientific-root 50G 50G 735M ...
0
votes
2answers
27 views

Unix equivalent of `du -sb` to get summarized size in bytes

On Linux using GNU du to calculate the size of directory recursively in bytes I can run: du -sb /etc What is equivalent syntax for BSD du based on the fact that -b parameter is not available?
2
votes
3answers
41 views

Is it possible to keep files on a disk partition without an OS?

I want to switch from Linux Mint to Musix. I want to backup my files and copy them after installation, but I was unable to do this because my only external medium for storage is an 8 Gb USB stick. ...
1
vote
2answers
59 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
77 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
13 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
52 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
462 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
38 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 : ...
6
votes
0answers
108 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
455 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 ...
0
votes
2answers
54 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
43 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
24 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
112 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
460 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
51 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
65 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
47 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
175 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
90 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
122 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
361 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
121 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
51 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
193 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
40 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
57 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
54 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
144 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
28 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
32 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
60 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 ...