This tag is for questions about hard disk space usage.

learn more… | top users | synonyms (2)

0
votes
2answers
104 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
38 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
60 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
217 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
17 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
22 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
105 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
176 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
65 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 ...
3
votes
0answers
95 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
105 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
61 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
62 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 99%...
0
votes
2answers
48 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
48 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
96 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 --apparent-...
0
votes
2answers
506 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? [root@...
-1
votes
4answers
31 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 /local/dir/more/dir/...
2
votes
2answers
67 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
618 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 : 100.21....
0
votes
2answers
324 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
169 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
616 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 /root/...
1
vote
2answers
184 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
90 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
48 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
127 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
201 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
96 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
144 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
1k 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
204 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
195 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
434 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
284 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
69 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
229 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
66 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
73 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
65 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
256 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
35 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
40 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
70 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
86 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
33 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
219 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 ...