available & free space?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
carlamint+3
Level 1
Level 1
Posts: 35
Joined: Sun Aug 30, 2020 5:06 pm

available & free space?

Post by carlamint+3 »

Hi everyone,

Can someone explain this to me, please?

My laptop has a 500Gb SSD and Mint installed on it. My files take 56Gb, but:

> Disks shows there is only 418Gb available (after installing Mint, I guess); and

> Files Manager shows there is only 392Gb free space (after adding my files).

What I don't understand is:

> where did those 82Gb go to after installing Mint? I just added Librewolf to the original installation; and

> 418 (available) minus 56 (my files) = 362Gb (free space); however, the free space available is 392Gb, which I think is too little based on the information above.

There is also a small partion (EFI System) which only takes 537MB, so it is irrelevant.

Does this make sense to you?

I will appreciate your feedback. Thanks in advance.
User avatar
Coggy
Level 5
Level 5
Posts: 642
Joined: Thu Mar 31, 2022 10:34 am

Re: available & free space?

Post by Coggy »

A lot of that missing space is probably just the difference between Gigabytes (GB) and Gibibytes (GiB).
1 GB = 1000*1000*1000 = 1000000000 bytes
1GiB = 1024*1024*1024 = 1073741824 bytes.
500 GB = 465 GiB.
500 GiB = 536 GB.
For some reason, lots of software displays in gibibytes instead of gigabytes but doesn't bother to use the right suffix.
du has the option to display in either - see the difference between du -h and du --si!

If you're trying to be precise, most programs have the option to display the sized in bytes, even if they don't say whether they show GB or GIB.
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: available & free space?

Post by AndyMH »

On ext4 filesystems, 5% is reserved for system use. This dates from way back when drives were smaller, makes less sense now. You can change it with tune2fs.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
motoryzen
Level 10
Level 10
Posts: 3497
Joined: Sun Dec 08, 2019 12:25 am

Re: available & free space?

Post by motoryzen »

Adding to AndyMH's point...

The terminal command below will change your system reserve % from the default to 1 % on what Mint recognizes as the nvme m.2 drive depending on how you have it partitioned vs default ( aka if you didn't select " Something Else " when you ran the Mint installation wizard ...thus you may have to experiment with the precise last part of that /dev/nvme#n#p# part)
sudo tune2fs -m 1 /dev/nvme0n1p3


change the nvme part to the /dev/sda# that is applicable to your 500GB ssd ...IF it is connected via sata

run lsblk first to confirm how your drives are mounted.

You can even put 0.5 instead of 1 if you want, but some have said that could risk data loss in certain scenarios. I'm fine risking that for my 16TB movies drive as I'm working to use handbrake to shrink movies to make room. You decide.
Mint 21.2 Cinnamon 5.8.4
asrock x570 taichi ...bios p5.00
ryzen 5900x
128GB Kingston Fury @ 3600mhz
Corsair mp600 pro xt NVME ssd 4TB
three 4TB ssds
dual 1TB ssds
Two 16TB Toshiba hdd's
24GB amd 7900xtx vid card
Viewsonic Elite UHD 32" 144hz monitor
User avatar
AndyMH
Level 21
Level 21
Posts: 13759
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: available & free space?

Post by AndyMH »

From memory, the partition you are running tune2fs on has to be unmounted. If it is your / partition you are trying to change you need to boot from your install disk to do it.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
carlamint+3
Level 1
Level 1
Posts: 35
Joined: Sun Aug 30, 2020 5:06 pm

Re: available & free space?

Post by carlamint+3 »

Thank you all for your replies.

I am not sure about whether the issue has to do with how the apps display the memory available. Both Files and Disks clearly display Gigabytes as GB (not GiB), so there is no conflict there.

There are only two partitions: Partition 1 (EFI System, FAT, 529MB), and Partition 2 (Linux FileSystem, Ext4, 500GB). Both are 'mounted'.
When I install Mint, I choose the option that erases the whole SSD.

Hope that clarifies something.
Thanks.
Post Reply

Return to “Other topics”