Why is my Fedora server’s SSD showing as full when I think there’s space left?

0
13
Asked By CuriousCat99 On

I'm running Fedora 41 Server Edition on an older laptop set up as a server, and I'm having a weird issue. My SSD keeps telling me it's out of space whenever I try to create anything, even a simple empty directory. The Fedora server web console says that about 930 GB of the 1 TB drive is used, but when I run `df -h`, it shows that the SSD is 100% full. Here's the output:

Filesystem Size Used Avail Use%
/dev/sdb 916G 870G 0 100%

I've got a couple of questions: First, why do the numbers in `df -h` and the web console not match? And second, how can it possibly be 100% used if there's still 40 GB supposedly left? I'm not using LVM (at least I don't think so), but I'm not entirely sure what that entails either. Any insights would be really appreciated!

3 Answers

Answered By TechGuru42 On

The reason for the discrepancy in numbers is likely due to how storage space is measured. Your web console might be using decimal (base 10) for measuring storage, whereas `df -h` uses binary (base 2) where 1 GB equals 1024^3 bytes. That could explain the differences you're seeing. As for why it says it’s 100% full despite you thinking there's space left, it's because of reserved space for the root user. Filesystems like ext4 typically reserve about 5% of the total space for root, meaning that `df` doesn't count those as available even if they aren’t being used. You can tweak this with the `tune2fs` command if needed.

Answered By BinaryBard On

Also, just a heads up, since this is a 1 TB drive and your `df` output is showing 870 GB used, you might want to investigate what is really using all that space. Sometimes, hidden files or logs can add up quickly. If your root is on a separate drive, you shouldn't normally have reserved space issues affecting this SSD.

Answered By DiskDoctorX On

You're dealing with a full drive beyond just the kernel files; at this rate, even getting a simple directory created isn’t feasible. It sounds like you should check out the `du` command to find out which files are taking up the most space. A good starting point would be checking log files in `/var/log`. Often, those `.log` files can be safely deleted or rotated to clear up some space.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.