LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-01-2019, 10:14 AM   #1
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu & Mint LTS, Manjaro Rolling; Android
Posts: 242

Rep: Reputation: Disabled
Available space on partition?


Discovering that I was low on space on a partition I'm using for recordings, I went to gparted to move some things around to get some more space until a new hard drive arrives. When I did this, I discovered that gparted shows that there was almost 7x as much free space as reported by the file manager or the df command.

gparted shows:
Partition - Mount Point - Size - Used - Unused
/dev/sdc9 - /mnt/Recordings - 260.80 GiB - 245.62 GiB - 15.18 GiB

df - h shows:
Filesystem Size Used Avail Use% Mounted on
/dev/sdc9 257G 242G 2.2G 100% /mnt/Recordings

It's not a root or boot partition, and I don't see this large discrepancy on my other partitions, so I'm curious about it.

The only suspicion I have is that, since I am sharing this directory to access it from multiple devices, there is some Samba/smb overhead due to that sharing that I'm missing and don't know how to identify what that might be. Can anyone explain what I'm looking at here?

Thanks in advance.
 
Old 10-01-2019, 10:26 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,894

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
if it was accessed from several devices it could explain this behavior. You need to detach (disconnect/unmount) if you want to be sure. Also you may need to take the cache into account.
 
Old 10-01-2019, 10:33 AM   #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
If this is an ext filesystem, I suppose df takes the 5% of reserved space into account.
 
Old 10-01-2019, 10:36 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,724

Rep: Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918Reputation: 5918
How much space do you need?

As posted it looks like the drive formatted as ext3/4 which means that 5% is reserved for root which matches information provided. Reserved space is not included in the available space output of the df command but does in the unused space output of gparted.

Reserved space is supposed to reduce fragmentation as well as allow root to log in case the filesystem becomes full. With a data partition the latter does not apply. You can reduce reserved space to zero if necessary which is about 13GB.
 
  


Reply

Tags
df, gparted



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
[SOLVED] Available space & used space of partition not tallying? ravisingh1 Linux - Hardware 4 04-27-2014 03:45 AM
Disk Space Used is Less Than Size Still Available Disk Space is Zero devUnix Linux - Server 10 10-04-2013 08:56 AM
Division of Logical Memory Space in to User Space and Kernel Space shreshtha Linux - Newbie 2 01-14-2010 09:59 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
partition resizing doesn't change available space Freex Linux - Software 5 09-08-2007 04:38 AM

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

All times are GMT -5. The time now is 06:20 AM.

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