Questions tagged [disk-usage]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
55 views

Why does execution of a command need disk space

We manage several Linux boxes remotely through SSH, recently one of them filled up disk space to the point that the people logged in couldn't execute commands at all, and the person in charge of ...
0
votes
1answer
9 views

Find out the cause for continous disk io on raspberry pi on arch

I have a raspberry pi (3B+) that's continously writing/reading from the SD card with no obvious reason (I see the green LED continously flashing). How do I troubleshoot and resolve this? I don't want ...
0
votes
2answers
41 views

how to get user name who created the file with du command

We have a find command which displays the top 10 files occupied $ find /root -type d -name "dummy" -prune -o -type f -exec du -a --time {} + | sort -n -r | head -n 10 1212 2018-11-01 08:...
0
votes
1answer
22 views

linux disk utilization statistics, i want to track last 30 day logs growth

lets say in /opt multiple folder and subfolders/files are there. I want a kind of statistics to see in last 30 day how was the per day utilization growth and in which file any idea? apart from bash ...
0
votes
1answer
18 views

HDD size from df or lsblk?

I've been said to write a program in c++ to get every hdd and partition's total, free and used size. I can use commands to do this. I searched and I understood that there are two ways of getting size,...
0
votes
2answers
71 views

Hard Disk Space for Debian 10

I am using windows 10 on my laptop. I am planning to switch to Debian 10 GNOME Desktop. The major software which I want to install in Debian are GIMP,Inkscape, and Kdenlive. By using a manual ...
1
vote
1answer
26 views

Ubuntu Server 20.04 (and 19.04) extremely high writes to SSD, remounted as readonly

I'm running a small home server which runs Ubuntu 20.04 (19.04 before). This server only runs docker and generally writes its data to a ZFS Pool that I mount (not really relevant for this story, just ...
0
votes
1answer
25 views

100% disk usage. what to do?

root@vps559:/# df -h Filesystem Size Used Avail Use% Mounted on udev 960M 0 960M 0% /dev tmpfs 195M 648K 194M 1% /run /dev/sda1 20G 20G 82M 100% / ...
0
votes
1answer
31 views

Why is the size of the log files larger than the disk capacity? linux + ubifs

I am using a Linux-based switch and it has created many logs due to some known bugs. The problem is that the log files even exceed the physical flash size. I would like to ask what happened to the ...
0
votes
0answers
18 views

udev mounted devices not showing up in df command or rather mount vs udev rule mount [closed]

I am mounting an external hdd/ssd using udev by writing a udev rule to mount it to a directory,it shows up in the directory that I am mounting it to but, it doesn't show up in df -h. But when I ...
0
votes
1answer
33 views

Should I use df or du to calculate space to use for partitioning?

I want to back up /home dir, but the sudo du -h /home | tail -n1 shows 22146824 /home however df -h shows: /dev/sda5 54G 22G 30G 42% /home 22*2^30 == 23622320128 The later number is ...
1
vote
1answer
21 views

How to exclude multiple directories in ncdu when scanning

I'd like to see my disk usage using ncdu on / but exclude anything in /home/ and /media/. But my command ncdu / --exclude /home/ --exclude /media/ still scans those dirs.
1
vote
2answers
57 views

Alternative to du threshold

I am looking for a way to search directories larger than a specific size. I found the following, which works perfectly: # du -sh /var/log/ --threshold=5G 5.3G /var/log/ The problem is that --...
-3
votes
2answers
58 views

low disk space on filesystem root fedora 32

Today my Fedora 32 operation system give me tips that : low disk space on filesystem root fedora: this tips make me surprise,with my limit experience,not like windows partition, the linux root system ...
0
votes
2answers
24 views

real time identifying where disk is filling up

I have a 5TB RAID volume mounted as /data and it is always near 100% full. It is currently at 99% full saying 68GB available via du -sh. It hits 100%, user's can't write to it, we clear some data ...
0
votes
1answer
25 views

How to merge lvm

I don't know what my colleague exactly did but I know that he was trying to increase the size of LVM. For now I can see such an output after executing the command lsblk: NAME MAJ:MIN RM SIZE ...
1
vote
0answers
20 views

Cleaning cache (?) command du [duplicate]

Following this question I can reproduce that the first time I execute a du of a directory it takes longer than if I do it just after. Where is this caching happening? How can I clean it? I would like ...
0
votes
2answers
44 views

Switch all my git repositories to depth 20, to save space?

I know that git clone --depth=20 <repo> is oftentimes much much smaller than git clone. Official docs for --depth. Looks like I've gone a bit crazy with my repos folder, here's the fd piped to ...
7
votes
4answers
954 views

Measuring disk usage of specific file types per each directory (recursively, as a demo for 'du --include')

This is my working code, but I believe it's not optimized - there must be a way to complete the job much faster than this: find . -type f -iname '*.py' -printf '%h\0' | sort -z -u | xargs -r -0 -I{...
1
vote
1answer
43 views

/dev/vda1 is mounted on / and using 94% of disk space

I have a problem with disk space on my VPS server (Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-97-generic x86_64)), so I am trying to find the problem. So I used the command: df -h And the result was: ...
1
vote
0answers
55 views

df Not Showing NFS “Stale File Handle” in Debian Buster

I periodically run into NFS "stale file handle" errors on my Proxmox server (usually from when I have to reboot my NFS server which is to be expected). I have a script that I run as a cron ...
2
votes
1answer
31 views

What's the default ordering of the filesystems listed by `df`?

What's the default ordering of the filesystems listed by df? I don't see the information mentioned in http://linuxcommand.org/lc3_man_pages/df1.html. My output is dernoncout@ilcompn0:~$ df Filesystem ...
0
votes
1answer
16 views

Upgrading via Terminal from LinuxMint 18.3 to 19.3--How much disk space?

I would like to know how much space I need to upgrade from 18.3 to 19.3...it reads 1500 MB necessary to download and 1600 MB of additional disk space will be used. Are the 1500 MB already extracted, ...
1
vote
1answer
44 views

How do I output the file size along with the output of files?

I wrote a script that searches for a file then outputs it. This script has worked up until the point where I tried using the du command. the code is: #!/bin/bash echo "Enter either file name or ...
1
vote
1answer
52 views

disk mysteriously “full”: `du` and `df` don't agree

I have a fairly stock xubuntu install that is suddenly giving "disk full" errors, after operating apparently normally for about 1.5 years. It has a system SSD (~128GB), a "data" ...
0
votes
0answers
17 views

fdisk -l vs df -h partition confusion

I understand that the command fdisk -l should show the different partitions on a disk, and df -h shows the mounted file systems. In my case when I run fdisk -l , I get this : Device Boot Start ...
0
votes
2answers
225 views

Is it safe to delete these snaps? What are snaps? [closed]

UPDATE: No, it is not safe to delete these snaps. I deleted them and can no longer open three of my applications. Attempt at opening Visual Studio Code: ~$ code internal error, please report: running ...
0
votes
1answer
15 views

du shows different numbers over time, and unreasonably small file sizes

I run stuff like this in a bash script: set -x time convert 'cat.png' -quality 100 test.webp time convert 'cat.png' -quality 100 test.jpeg du -h test.webp test.jpeg It would often print output like ...
0
votes
3answers
40 views

Get how much space is used by some packages [duplicate]

I would like to know how much space is used my LaTeX install. I tried to do with apt but I am not sure it's possible. What I would like to do is to have a command like apt-cache list --show-install-...
4
votes
3answers
609 views

How can I determine what is causing the used disk space to slowly increase in Linux?

I have just done a fresh install of Raspian Buster Lite on a Raspberry Pi 3B, and installed Prometheus along with Node Exporter to just scrape a few simple diagnostics - particularly the available ...
0
votes
1answer
31 views

Why does df show different used values for identical data on two different partitions?

I've just copied across some data from one raid partition to another. When I look at the output of df: Filesystem 1K-blocks Used Available Use% Mounted on /dev/md127 1921673480 ...
1
vote
0answers
19 views

OS partitions suddenly unmounted themselves

Previos similar problem Since I installed PopOS! 20.04 there was a problem, after 10 minutes using the OS it just close all my working windows, stop the Gnome interactions (I mean it doesn't change ...
1
vote
1answer
31 views

How can I rotate old systemd journals to a different filesystem?

I want to limit the size of systemd journals (in /var/log/journal) by moving old journals to a different filesystem. I know of the setting SystemMaxUse in /etc/systemd/journald.conf which makes it ...
3
votes
3answers
129 views

Get size of file except trailing zero bytes

I want to get the size of a file that is being downloaded. Since the file is preallocated, using du -sd just returns its final, full size. I want to know how much has been downloaded, so I don't want ...
0
votes
0answers
29 views

Rsync and df/du commands output different sizes for source

I'm syncing three drives with a remote nfs share with rsync. Before starting, I analyze all disks with the following commands: rsync -avn --delete --human-readable --stats dir1/ dest/ rsync -avn --...
0
votes
2answers
38 views

df output problem - want free space not inodes

I have been unable to get disk usage from df. Instead I am getting Free inodes regardless of asking for block sizes using -BM or other sizes. My computer harddisk is /dev/sda which has 3 partitions ...
0
votes
0answers
19 views

Replace root folder of writing paths used in process

I have a process that creates and uses temporary files. When I run many instances of this process the disk throughput becomes a bottleneck. I know that I can use a temporary file system mounted in RAM,...
0
votes
0answers
27 views

CentOS 7 disk usage analyzer always says home full?

The Disk Usage Analyzer tool on CentOS 7 always says that usage is at 100% for the /home dir. Even if I delete significantly large files from the offending directory, the usage remains reported at 100%...
1
vote
2answers
64 views

Argument list is too long error only when I specify the directory in the du command

I am trying to calculate the total size of particular files in a directory (e.g. /mydirectory/data/ ) So, after cd to this specific directory, I use the following command: du -c *.bin | grep total | ...
-1
votes
1answer
29 views

How can my 6 TB hdd display as full while there's 3,4 TB of files on there? [duplicate]

How can my 6 TB hdd display as full while there's 3,4 TB of files on there? It says 0 bytes available for some reason.
0
votes
1answer
93 views

CIFS mount incorrect disk space

I defined a new samba mount in an ubuntu VM via /etc/fstab //x.x.x.x/share /share cifs credentials=/.smbcreds,uid=1000,gid=1000,vers=3.0 0 0 With this I get the following output from df -h ...
-2
votes
1answer
61 views

after deleting some files. space is not freed

after deleting some files. space is not freed. by running the command df -h the free space is always 0. /dev/sda3 233G 224G 0 100% / even after rebooting the system output df -h;ls -l ...
0
votes
3answers
41 views

Outputing only number in df command

I have a disk mounted on /dev/xxx. If I use only df, it returns this: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xxx 125829120 43861888 81967232 35% / devtmpfs ...
0
votes
1answer
17 views

What is the minimal set of firmware files I need for my Hardware?

So today I learned that my distro's linux-unfree-firmware package is 491 Mb in size. I'm pretty sure my hardware doesn't need all of these files. Hence I think I can reduce this disk usage if I'll ...
1
vote
2answers
32 views

View size and owner on folders, within a folder

Anyone know how to view all the folders within an directory with size, folder/file, owner? The only command I know of is du -hs * But that shows all the subfolders aswell and does not show owner. ...
0
votes
1answer
26 views

Problem with resizing partition in ubuntu

I have enlarged my partition with GNU Parted but when checking with df -h and (parted) print I see that the sizes are different. How can I make df -h reflect the actual size of the partition? Thank ...
1
vote
1answer
46 views

Same folder content but different sizes on different drives, why?

I have three copies of the same folder but the sizes of these are different. Why? I have a folder "Documents" that I have copied from an encrypted lvm on the hard drive of my desktop to an encrypted ...
-2
votes
3answers
635 views

How to fix “E: You don't have enough free space in /var/cache/apt/archives/.”

E: You don't have enough free space in /var/cache/apt/archives/. root@kali:~# df -H Filesystem Size Used Avail Use% Mounted on udev 2.0G 0 2.0G 0% /dev tmpfs 406M 7....
0
votes
4answers
74 views

Can't see correct size of disk with “df”

My computer contains an SSD of 250GB and a HDD of 1 TB. When I run fdisk -l I get the following output for said HDD: Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: ...
0
votes
0answers
17 views

Viewing disk activity per disk and per process

I'm trying to see the disc activity per process and disk. The output of iotop is perfect, but it is over all volumes. I found a similar question here iotop but for particular disk? dated 6 years ago ...

1
2 3 4 5
18