Questions tagged [disk-usage]

Hard disk space usage: how much space do my files take?

Filter by
Sorted by
Tagged with
2 votes
1 answer
257 views

Prevent shell script from hanging on a line

I have a written a shell script that helps me calculate the disk utilization in remote servers using df -h. I'm including the code snippet below s_arch_1_per=`sshpass -p 'password' ssh root@...
user avatar
0 votes
2 answers
61 views

xargs running more than one command?

Is it possible to use xargs to run more than one command? The only related information I found was this question, but the answer was not related to xargs. I'm running a simple du / -ah | sort -r -n | ...
user avatar
0 votes
2 answers
21 views

When df shows 40gb occupied out of total 50 and du shows 49.9gb occupied out of 50, can I store another 1-2 gb data or not?

I've read some 22 answers on similar questions on stack alone as to why df and du show diff results. But my concern is which one should I rely on? Which is practically reporting correctly? I've only ...
user avatar
0 votes
1 answer
49 views

I'm trying to understand how to shorten regex

I'm trying to list all directories that are 1GB or larger. I know I could use ncdu, but at the moment, I'm just trying to understand how to shorten regex... I found this command, du -h . | grep '[0-9\....
user avatar
0 votes
0 answers
25 views

Struggling with du, php and crontab

Unix numpty here. I have written a PHP script which I am running from a crontab every so often. Part of the script is a du command from which I extract certain directory sizes which I put into a JSON ...
user avatar
0 votes
1 answer
19 views

RHEL 7.9 Help: Why do I get differences between lsblk and df

I have resized recently the rhel-root partition of my RHEL 7.9 system, basically I did the following commands: pvresize /dev/sda2 lvextend -l+100%FREE /dev/rhel/root I was able to resize the ...
user avatar
0 votes
1 answer
29 views

Vim writing 10 of GB-s of disk space, but can't find it with du

I'm using vim to code with quite a few plugins and it seems that over a few hours something vim is calling is writing my disk full (I have 102 GB free space currently, before closing vim I had 0 space ...
user avatar
  • 403
0 votes
1 answer
27 views

Linux Disk Space Utilization using df -h [duplicate]

When I do df -h command output is as below. However I've only allocated 32GB to my VM via virtual box. Even if the shared folder is disregarded, the sum of sizes (2.9 + 2.9 + 2.9 + 2.9 + 28 + 1 + 1 + ...
user avatar
0 votes
0 answers
29 views

How to move log files in /var/log/journal to free disk space without losing logs?

I'd like to later check if there is a way / software to easily scan logs for issues one should look into² and if such exists scan all logs, including old logs. This is why for now I'd like to keep the ...
user avatar
  • 3,430
0 votes
0 answers
41 views

statvfs returns invalid information

My eMMC partition is ext4 formatted and has about 100MB. When I issue statvfs() on that partition, I get huge return value for f_blocks field of struct statvfs. struct statvfs { unsigned long ...
user avatar
2 votes
0 answers
54 views

df command reports incorrect usage

My eMMC device has a partition which reports the below output from df -h command: Filesystem Size Used Avail Use% Mounted on /dev/mmcblk2p3 16Z 16Z 84M 100% /data the partition is of ...
user avatar
0 votes
1 answer
51 views

What is all the possible error output in Unix's df command

i'm trying to make a monitoring script that do health check of the filesystem in every several seconds. I want to monitor the "df" command, so that i can know if there is any NAS filesystem ...
user avatar
0 votes
0 answers
70 views

disk space not allocated to part of file system

What specific bash commands must be used to resolve the OSError:: command not found error message shown below by increasing the amount of space that the file system on a RHEL7 VM allocates to a ...
user avatar
  • 5,074
1 vote
0 answers
29 views

Size discrepancy between df -h output and lsblk output [duplicate]

When I run df -h and lsblk, on my Ubuntu 20.04.3 LTS Oracle Cloud instance, there is a discrepancy between sizes of my /dev/sda1 mount. I am not sure if this has to do with GiB vs GB or something else....
user avatar
  • 11
4 votes
3 answers
590 views

bash: make `du` show output similar to `ncdu`

On Linux, here is some sample output from the ncdu NCurses Disk Usage tool: command: ncdu /boot ncdu 1.14.1 ~ Use the arrow keys to navigate, press ? for help --- /boot ------------------------------...
user avatar
1 vote
1 answer
35 views

df command on Centos/VirtualBox

I'm studing the use of df, when i tried it on centos 7 on my virtualBox, i got this : df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.9G 0 1.9G 0% /...
user avatar
  • 15
1 vote
1 answer
70 views

Why /usr and /home size is very small even tough I gave /home and / (root) enaugh size?

My concern is about /usr and home size as you see. Home: Root: My concern is about /usr and home size as you see. It seems that they have really small space, but when I was installing ubuntu I gave ...
user avatar
2 votes
0 answers
117 views

New computer running arch linux gets weirdly loud

I have a relatively new computer and I just installed Arch linux. From the moment I start the computer, it starts with a loud noise that is very similiar to a computer running on 100% of the CPU. From ...
user avatar
1 vote
1 answer
42 views

Print disk space with df, with headers, but only one particular row

I have the following df -h output: Filesystem Size Used Avail Use% Mounted on dev 7,8G 0 7,8G 0% /dev run 7,8G 1,8M 7,8G 1% /run /dev/nvme0n1p5 93G 40G ...
user avatar
  • 235
1 vote
2 answers
47 views

'dd' command disk copy retains old size

I recently upgraded my home server and wanted to increase my cloud disk to 2TB from 600gb. After some research I found the dd command which can fully copy a disk, which in my case seemed like a good ...
user avatar
  • 13
0 votes
0 answers
32 views

Where has my RAM gone? (comparing system just booted with one that worked for some time)

I decided to finally investigate and understand why I have less available memory than when the system is booted. I'm currently comparing two systems booted from IIFC same liveUSB stick based on Linux ...
user avatar
1 vote
2 answers
64 views

Meaning of the statement - du -sk * |sort -rn|head

I am facing trouble understanding the meaning of this Linux command: du -sk * | sort -rn | head I understand that du is used to display the disk usage but I'm facing trouble understanding the rest of ...
user avatar
0 votes
1 answer
337 views

mkdir gives "No space left on device" message but sudo mkdir works [duplicate]

When I try to use mkdir test in /home/, I get mkdir: cannot create directory ‘test’: No space left on device. I've deleted over 1Gb of files and restarted some processes that were using deleted files, ...
user avatar
1 vote
0 answers
51 views

How can I figure out what the <disk> argument should be for this proxmox resize command?

Forgive me as my knowledge of unix/linux and virtual machines is very limited. I ran the following command recently in a virtual machine managed by Proxmox: [~]# df -h Filesystem Size Used Avail ...
user avatar
0 votes
1 answer
50 views

How does df command know free disk space?

Does anyone know how df command knows the free disk space? Does it use kernal calls and if yes which ones? Or does it use virtual files in /dev or /proc?
user avatar
  • 321
0 votes
0 answers
21 views

After "du -a", video file format not supported in android

I connected my android device to ubuntu, and ran the command du -a . | sort -n -r | head -n 10 by going to the home directory of the android file system to know the top 10 largest folders occupying my ...
user avatar
1 vote
2 answers
100 views

Does LUKS take space?

I have just encrypted an empty partition using LUKS. The partition size is 875 GiB. Before encryption 28 KiB were in use. After encryption, 14.81 GiB are in use (1.7% of the total). Why is that so? ...
user avatar
  • 315
0 votes
0 answers
50 views

rhel + root file-system is filling, despite no large files or directories

I want to share the following strange behavior on our rhel 7.6 server root file system is almost full ( used 95% ) , when root file system size is 100G we can see that folders that belong to root file ...
user avatar
  • 10.9k
1 vote
1 answer
131 views

ncdu - Rank by File-Count instead of Size

I like the navigation and features of ncdu, but instead of ranking folders by size, I want to rank them by file-count. For example, folders containing more files are listed first, and you can navigate ...
user avatar
  • 4,311
-1 votes
1 answer
79 views

cannot start Linux Mint Cinnamon anymore - disk full

hoping for some help as I have searched for ages and tried heaps of things, but getting nowhere... I shut the lid of my laptop one afternoon (putting it to sleep) and then next day went to use it (...
user avatar
  • 1
0 votes
2 answers
50 views

List the largest and latest 20 files on a drive

I have a disk filling up which has many large files on it so I want to find only the latest and largest 20 files on the disk. How can I do this?
user avatar
1 vote
2 answers
59 views

How can I sort du results by time *and* restrict to --max-depth=1

I use rsync to back up my files using --link-dest to sync only differences from the last backup folder. Is there anyway I can see a directory listing ordered by date and restricting it to --max-depth=...
user avatar
  • 253
-2 votes
1 answer
64 views

linux + from lsblk partitions size are greater then disk size

I get the following details from RHEL 7.2 machine , sda DISK is using LVM lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 250G 0 disk ├─sda1 8:1 0 500M 0 part /boot ├─sda2 8:2 0 199.5G 0 part │...
user avatar
  • 10.9k
2 votes
1 answer
114 views

Different directory size after rsync and using du [duplicate]

I migrated some special directories (not supported by common migration tools) from one Synology NAS volume (ext4) to another (btrfs). After checking if the synchronization was successful I found that ...
user avatar
  • 123
0 votes
0 answers
34 views

How to format computer I used to dual boot?

My Mint install is very slow on idle and my python is broken after downloading packages for python2 and 3 - all imports stopped working. Currently I have windows10 and Mint on my machine, and I want ...
user avatar
0 votes
1 answer
47 views

why does [df] tell me I have a full disk when root [du] tells me I've only filled the disk with ~500gb out of 5tb?

I have a new 5tb disk in a FUSE filesystem which I guess is basically empty but df tells me otherwise. The filesystem on disk is mergerfs. The setup consists of 4x 5TB Seagate 5400rpm external drives, ...
user avatar
0 votes
1 answer
31 views

Is it alright to add a disk size monitoring script for NAGIOS, using loop?

I have a process that gets sizes for all disks on server, writes it into a file like this # cat disksize DISK# ACTUAL WARNING CRITICAL disk1 12 20 30 disk2 45 60 75 first row of ...
user avatar
  • 1,631
0 votes
1 answer
51 views

why isn't my 'find -exec du' working?

I want to get the disk usage of a directory tree, excluding branches that begin with '.', and I will eventually want to run this over ssh, so I prefer to not use a pipe. When I run the following, I ...
user avatar
  • 117
5 votes
0 answers
122 views

1.2 million lines written every hour of the day in my system's log

Something is eating my disk space and I'm distinctly annoyed by it. This morning I woke up to the "No space remaining" notification, and I realized that it wasn't my torrenting what had beed ...
user avatar
3 votes
1 answer
269 views

Btrfs - missing space - 40% diffrence between du and df

I have a btrfs disk (without raid) that gives me a very big difference between du and df: $ df -h /pgdata Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-pgdata ...
user avatar
  • 31
0 votes
0 answers
65 views

How use du command for root and nested content to get the same total value?

About the du command with the option -sch If is executed du -sch spring-security appears: 103M spring-security 103M total But if is executed du -sch spring-security/* appears (see the bottom) ...
user avatar
2 votes
1 answer
943 views

Disk full but cannot find were is the used space (Ubuntu)

I have a small Intel NUC with a 30GB drive. My problem is that this drive is full but cannot find the cause of it. df reporting the following Filesystem 1K-blocks Used Available Use% Mounted ...
user avatar
0 votes
2 answers
50 views

How to calculate disk usage filtering by pattern (e.g., *.JPG)?

How can I calculate disk space consumed only by some files of a directory recursively?
user avatar
0 votes
1 answer
28 views

Why is the ammount of Avaible space on a drive less than Size - Used? [duplicate]

ext4 filesystem df -h /dev/sda1 Filesystem Size Used Avail Use% Mounted on ...
user avatar
  • 331
2 votes
0 answers
47 views

I see the sizes of the files on a disk incorrectly

Running services are filling up disk space. I reboot it frees up disk space. How can I find files created by programs in disk space but not visible with the "du -ch /.[!.]* /disk1" command. $...
user avatar
  • 31
0 votes
0 answers
105 views

Unix file size is bigger than real size

my Ubuntu Server (16.04) installation has a folder with 100 pictures in it. Each picture is 100kb (true size) but it occupies 1MB (file size in disk), so 100 pictures are 100MB instead of 10MB. I've ...
user avatar
2 votes
1 answer
177 views

Why df is reporting huge size for external disk

I have one external disk of 32GB attached and mounted. All the details are provided in below command. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sdb 8:16 0 32G 0 disk /storage/1 # df -...
user avatar
0 votes
0 answers
26 views

Log or Check When Disk Was Accessed

Is there a way to log or check after the fact when a disk was accessed (either for read or write). Ideally I'm hoping to check this for a whole disk (ie: /dev/sda), but if that's not possible I'll ...
user avatar
  • 2,087
0 votes
1 answer
91 views

`/dev/fuse` is huge

I am running a bit low on storage. After running df -h I saw the following: /dev/fuse 250G 512 250G 1% Should I try to shrink it? Is it ok for the /dev/fuse to be that large? Please note, ...
user avatar
0 votes
1 answer
52 views

How to resolve "high disk space utilization by deleted open files" automatically

Scenario: Getting high disk space utilization alerts on our machines, possibly because of fast log rotation. And thus openfiles were being created, which we are clearing them manually all the time to ...
user avatar
  • 1

1
2 3 4 5
21