Questions tagged [disk-usage]
Disk space usage: how much space do my files take?
1,114
questions
4
votes
0
answers
334
views
"This computer has only 0 bytes disk remaining" message from Linux running on Virtual box
This is the setup. I started seeing this message today from Linux Manjaro installed on Virtual box under windows 10. The issue is that I have lots of disk space, both allocated for the Linux and also ...
1
vote
1
answer
281
views
Why does free space differ when shown by fdisk and df?
Basically title. I'm running MX Linux from a 32GB live USB. When I run fdisk -l, I see the following:
[...]
Disk /dev/sda: 29.88 GiB, 32080200192 bytes, 62656641 sectors
Disk model: Flash Drive
...
0
votes
0
answers
256
views
How to figure out what is using the space on my Ubuntu LXC running qBittorrent?
I have a LXC in Proxmox running Ubuntu with qBittorrent on it. The boot disk looks like this from Proxmox:
Notice it's using 3.26GiB. A quick look at df -h confirms this:
I have tried to track down ...
-2
votes
1
answer
161
views
Which files are safe to delete?
so I used ncdu to help free up some storage and for the following log:
--- / ----------------------------------------------------------------------------------------------------------------------------...
0
votes
1
answer
2k
views
E: Write error - write (28: No space left on device)
Is it possible to solve the space problem below as root user? Any idea which disk/folder is full, causing installation of new software impossible?
root@fba-bod-p1:/mnt/# apt install setuptools-scm
...
0
votes
1
answer
826
views
Move disk space from /dev/sda3 to /dev/sda4
This is my current setup:
Disk /dev/sda: 546.8 GiB, 587127480320 bytes, 1146733360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/...
1
vote
1
answer
11k
views
/dev/mapper/centos-root is at 100% Running CentOs
we have a VM that host our docker and is currently out of space, I've tried everything on the net and nothing worked out yet, it is so full that I can't even run yum autremove
The system type is XFS, ...
0
votes
2
answers
253
views
How to increase the disk space for /root from /home on SLES SP4?
Currently I am unable to run or install anything on SLES SP4 system because insufficient space in /root. Could you please suggest a way to increase the disk space for /root from /home on SLES SP4?
...
0
votes
1
answer
724
views
How to find the disk usage ONLY of 2nd level dirs?
I have the following dir structure:
relative_path/
app1/
data
config
trash
other_app/
...
1
vote
0
answers
29
views
Disk usage command not producing expected number of outputs [duplicate]
I want to run disk usage command (du) on both a parent directory (to find the total of all its contents), and then additionally on one of its subdirectories only.
If I try to pass multiple paths into ...
0
votes
1
answer
406
views
Does a user need executable permissions to be able to run du (disk usage)? [duplicate]
I am observing the following behaviour, and want to know if it is expected.
I am trying to run disk usage ( du ) as user2 on a directory test_directory which is owned by user1.
If I change the ...
1
vote
3
answers
560
views
How do I find out which partitions my filesystems (and mount points) are on, and how full the partitions are?
This question is essentially the opposite of the first question below, and adjacently related to the second question, and is therefore not a duplicate:
Ask Ubuntu: How do I find out what filesystem ...
1
vote
1
answer
149
views
How do I repartition my root filesystem with space from another partition?
I am trying to double the size of my root filesystem shown below:
# df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs ...
0
votes
2
answers
43
views
Sum directory sizes
I have a folder with multiple .NET projects, let's call the parent directory projects. Each .NET project has a bin folder with the binaries built for that project. Now I want to get the sum of the ...
1
vote
0
answers
446
views
WizTree equivalent for ext2/3/4
There are many applications for visualizing the files/directories that take up the most space, for example all of these: How to understand what's taking up disk space?, and other similar ones for ...
0
votes
1
answer
194
views
How to use filelight KDE GUI app remotely by fish/ssh protocols in 2023?
Back in the dayZ, we can run filelight from within a console by typing:
filelight fish://root@remote//home
but it seems it now doesn't work anymore. Any workaround ? Is the scheme is wrong ? Tried ...
0
votes
1
answer
3k
views
du: how to get size and number of files inside that folder
I am using du to get the file sizes
Is there any option which will show the number of files and folders count inside each folder.
Example:
Here somefolder has 5000 files and 10 folders
~$ du -ah --...
3
votes
1
answer
873
views
Disk full after deleting large files and rebooting
I accidentally filled up my hard drive and I cannot recover from it.
I've deleted several Gigabyte of files, but the df command still shows that the disk is full, and even a simple echo hello > ...
1
vote
2
answers
616
views
What's the POSIX-compliant way to get the size of a file or folder in bytes?
According to the Open Group specs, POSIX du doesn't have the -b option to display the size in bytes. So what is the POSIX-compliant way to get the size of a file or folder in bytes?
-1
votes
1
answer
358
views
why actual file size is higher [duplicate]
I have an ASCII text file:
file foo
foo: ASCII text
which contains just 6 letters (I don't have any linebreak or space after "F"):
cat foo
ABCDEF
since this is ASCII, the file size should ...
2
votes
1
answer
165
views
I increased VM storage from Virtual Media Manager in VBox but it is not applied in VM
Here is how I increased the storage of the VM in the VBox interface:
I used Virtual Media Manager.
When I click Information:
Format: VDI
Storage details: Dynamically allocated
Using the suggestion, ...
0
votes
2
answers
1k
views
Why doesn't df show the filesystem disk space of the path that I give it?
I am trying to see the filesystem space in my system but even if I change location it still shows the same space. I see the man page and as far as I understand I am passing the right argument. Why is ...
0
votes
0
answers
149
views
Total output of `du` is less than individual folders
How can the total output from du be 1.1T when the folder home is 1.7T and i-data is 1.4T? That together should already total more than 3 TB.
/ # du /* -shc
1.0M /bin
0 /dev
0 /e-data
1.4M /...
2
votes
1
answer
1k
views
parted + is it correct to create disk partitions in Linux only by percentage
we want to create 2 partitions from each new disk by parted command
as the following example:
sdg 8:96 0 50G 0 disk
├─sdg1 8:97 0 25G 0 part
└─sdg2 ...
0
votes
0
answers
300
views
Hard disk space - find growing folders
I am having persistent disk space trouble with my /root partition on a Linux Mint 20 Cinnamon, 4.6.7 on a 5.4.0-45-generic kernel.
Initially, I assigned too little space my /root, assuming the OS can ...
0
votes
0
answers
140
views
How to get size of directory with ~1.6 million files in it
I have a folder which contains around 220 folders with 5-10k items, totaling around 1.6 million. I've tried using df, but I have terabytes of other data on the same drive so it doesn't give me a ...
0
votes
1
answer
3k
views
what does %util mean in iostat command output? if it is 100%, can we add more workload on it?
recently I was asked this question during a phone interview. I know that iostat command can be used to check disk performance in Linux. But I am not sure how to answer this question. Does this mean ...
0
votes
0
answers
93
views
ls -alh and du -sh shows difference in size.. why is that?
Why is this size difference ? Can someone explain ?
[root@~] ls -alh /vmfs/volumes/50a4a9e6-13184850/SYD0TXT01/vmware.log
-rw-r--r-- 1 root root 2.1G Nov 25 00:48 /vmfs/volumes/50a4a9e6-...
0
votes
3
answers
69
views
How can I find a big file hogging all the disk space without installing anything?
So, the thing is, if your system is totally block by a huge file, and there isn't anything you know you can delete, all those tutorials showing shiny tools to manage filesystem aren't all that useful.
...
0
votes
1
answer
30
views
revert logical partitions to original disk
I have a disk that somehow split into what appear to be logical partitions, but I am unsure. How to revert to the original disk?
Here is the list of drives shown by fdisk -l:
/dev/mmcblk0
/dev/...
2
votes
1
answer
146
views
Is it possible to list files using ls with du directory size?
I'd like to list all the conterns of a directory (including subdirs) and their real size (including dir sizes). I can list them with ls, and I can see the size of each with du -sh. But is there a way ...
0
votes
0
answers
39
views
I installed archlinux through the automatic script and formatted my drive and removed everything from it but it is only 20.8 gb
So I installed Arch Linux through the automatic script and formatted my drive and removed everything from it, but it is only 20.8 GB my file system is ext4, and I am sure that I wiped everything from ...
0
votes
2
answers
84
views
How to determine what is occupying hard disk space? [duplicate]
I have a primary SSD with all my stuff and a 2nd hard drive where I install my games. The SSD has a 120 GB capacity. Until recently, only ~20GB has been used, but something has happened and now 87GB ...
2
votes
1
answer
298
views
Server has lots of disk space in use, running commands to list which folders are taking up lots of space, are not working
Trying to list folders, specifically git repositories that are taking up most of the disk space within the server.
du -x -h /apps/bitbucket-home/shared/data/repositories/ | sort -h | tail -40
This ...
0
votes
2
answers
531
views
Can somebody please explain the df -h result on ubuntu?
I am very new to ubuntu or linux and I am using ssh to remotely access to the ubuntu vm. I have allocated 2GB for the disk on vm. When I used df -h to check the sizes,
Filesystem ...
0
votes
0
answers
187
views
What is my actual disk usage?
I'm using BTRFS with two 1TB drives formatted as a single 2TB partition. I can't figure out how much space is actually in use in my system, most tools give me different results:
du -cksh / says ...
0
votes
2
answers
210
views
Efficiently using file system in linux
This is the current state of my disk at present , how can I use the unused space or move stuff to free up space , without formatting or loosing data
Filesystem Size Used Avail Use% ...
1
vote
0
answers
100
views
Debian: maintenance tasks to free tmp folder
I administrate a server with Debian 10 Buster. This server is almost occupied with a PostgreSQL database. When I inspect the used/avlaible space in this database with pgAdmin, I found 29 Go of full ...
0
votes
0
answers
31
views
Inconsistency in disk usage value between df & du unix command output on mount-drive [duplicate]
See inconsistency in disk usage value between df & du unix command output on mount-drive.
Here is sample result from df -k command output on a mount point.
df -k /mount/point | awk '{print $3}'
...
0
votes
0
answers
290
views
Constant hdd write but iotop shows nothing
The disk activity monitor widget in KDE (Debian) shows constant HDD write around 12 MiB/s, when I run iotop, there is nothing that would be constantly using HDD. When I run atop, at first PAG is red ...
1
vote
0
answers
326
views
Use ncdu without installing anything on a remote machine
I want to use ncdu to scan directories on a remote machine and see how many files are in which directory, how big they are, etc. The remote machine is either slow or has a lot of files or both - find /...
3
votes
4
answers
956
views
missing disk space on server
I have a weird problem on one of our servers. Almost half of my disk space is missing.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 271G 122G 149G 46% /
devtmpfs 3....
0
votes
1
answer
5k
views
How to clean "/dev/mapper/rootvg-root_lv" after YUM?
I run Yum update on CentOS and suddenly i got disk space hike on /dev/mapper/rootvg-root_lv
[intor@alp-pp03 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs ...
0
votes
0
answers
30
views
linux raspberry OS disk full but different df and ncdu giga count
I have a raspberrypi 3b+, with 32gb sdcard.
As you can see, /dev/root is about 28GB and df -h command says that / is full.
sudo ncdu instead shows different results.
Excluding media (that is a ...
1
vote
1
answer
147
views
Why do `pydf` and `df` show different disk usage percentage?
I noticed several times that pydf and df give a bit different disk usage values.
For example:
$ df -h | grep sdb1
/dev/sdb1 11T 9.6T 705G 94% /mnt/disk
$ pydf | grep sdb1
/dev/sdb1 11T ...
0
votes
2
answers
253
views
Missing 900GB of space on a 1TB hard drive
I am using Linux Mint 20.3. I have a 1TB HDD and my root directory takes up 42GB. How is it that I only have 100GB left of free space, where did it go? What could explain such a big loss in storage?
I ...
0
votes
1
answer
215
views
linux + list inode information show 100% used
we notices about some of our RHEL machines that inode information show 100%
the following for example show that /dev/sdb is 100%
df -i
Filesystem Inodes IUsed IFree IUse% ...
2
votes
1
answer
4k
views
How to know the suffix of size in lvcreate
I've to create a new volume group of 5G with lvcreate but the disk don't have enough space disk :
lvcreate -n lv_new -L5G VGroup
Volume group "VGroup" has insufficient free space (1279 ...
0
votes
1
answer
143
views
Difference between fstab commit and sysctl for writing back dirty data to disk
For reducing the number of disk writes, what is the difference between using fstab to change the disk commit frequency and using sysctl for controlling when dirty data is written back to disk?
0
votes
1
answer
194
views
Can't copy files to folder due to space issue after mand mount
I tried doing mandatory mount using the following the command
mount -t tmpfs -o mand,size=1m tmpfs ./FileLockFail/
Now when I am trying to copy a folder to the mounted directory, its giving me error
...