LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-27-2019, 06:27 PM   #1
g_s
LQ Newbie
 
Registered: Feb 2014
Location: Western Oregon now, moving south later this year.
Distribution: New Laptop, Linux dual boot: Mint 19, Debian 10. Old Laptop: Debian 10
Posts: 10

Rep: Reputation: 1
A puzzling problem: Gparted and my file manager disagree about how much empty space there is on my harddrive.


I don't think I've ever asked a question on Linux Questions before. I hope I am doing it right. I've attached a file to show the problem, although right now it seems more of a mystery than a problem.

I'm currently running Mint 19. I'm more familiar with Debian but Debian stopped maintaining rednotebook.

Anyway, what I noticed today is that Gparted and the Mint file manager disagree about how much free space there is on my harddrive, by about 19 gb. I would really like to know why.

Can anyone help, please? Thanks for reading.
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2019-08-27 15-54-35.jpg
Views:	29
Size:	109.5 KB
ID:	31219  
 
Old 08-27-2019, 06:54 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
Technically they are both correct. ext4 by default when it is formatted reserves 5% for root which is supposed to reduce fragmentation and allow root to login when the filesystem becomes full.

380GB * .05 = 19GB. Gparted shows the total free space including reserved but the file manager does not. If you look at the output of the df -h command it is also missing the reserved space. You can safely reduce the amount of free space to like 1% if you need to free some up.

Last edited by michaelk; 08-27-2019 at 08:13 PM. Reason: typo
 
6 members found this post helpful.
Old 08-27-2019, 06:56 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Are you sure that the files displayed in the file manager window are on the same filesystem as /home?

I'd compare that to the output of the df -h command, which shows free space in all mounted file systems.

To be honest, I don't know where the two tools, gparted and the file manager, get their information from. You could be looking at a bug, or two different ways to calculate file system usage.

EDIT: Thanks to michaelk this is resolved, I think. There are indeed two ways to calculate free space.

Last edited by berndbausch; 08-27-2019 at 06:57 PM.
 
2 members found this post helpful.
Old 08-27-2019, 06:59 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
I would have to guess at partial files with holes
gparted looks at the allocated , and the file manager is looking at the 'when complete' file size.
that is just a wild guess, I don't know if ether actualy behave like that.

do you have any downloads that have not finshed yet?


Edit: ahh, ok yeah that 5% makes more sense

Last edited by Firerat; 08-27-2019 at 07:03 PM.
 
Old 08-27-2019, 07:02 PM   #5
g_s
LQ Newbie
 
Registered: Feb 2014
Location: Western Oregon now, moving south later this year.
Distribution: New Laptop, Linux dual boot: Mint 19, Debian 10. Old Laptop: Debian 10
Posts: 10

Original Poster
Rep: Reputation: 1
Hey, that was fast guys, thanks very much. I figured it was probably harmless like that, but I thought I should find out for sure. Now that I know how easy it is to ask a question, and how quick you guys are to answer, I just might ask another question. Thanks again.

[edit] To answer the question about files downloading, no, that was the first thing I thought of. I would like to point out that I am not a newbie. I am not an expert, but I generally get by and have been using Linux for 10 years now.

Last edited by g_s; 08-27-2019 at 07:05 PM. Reason: add text
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Empty a File, Delete N Lines From a File, Remove Matching String From a File, And Remove Empty/Blank Lines From a File In Linux LXer Syndicated Linux News 0 11-22-2017 12:30 PM
Why do EDAC and my memtest disagree ? jackd1000 Red Hat 2 11-06-2013 08:51 AM
kde and fdisk disagree on a partition size Tortanick Linux - Hardware 2 04-25-2007 06:30 AM
Hardware, /proc/cpuinfo disagree with smp_num_cpus Dagda99 Linux - General 1 08-09-2004 01:18 PM
parted, diskdrake disagree with df n8tx Linux - Software 2 10-15-2001 02:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration