-2
$ df -i /mnt/large_linux/
Filesystem       Inodes   IUsed    IFree IUse% Mounted on
/dev/sda1      29376512 1035086 28341426    4% /mnt/large_linux
$ df /mnt/large_linux/
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/sda1      462509952 451315844         0 100% /mnt/large_linux
$ sudo dumpe2fs /dev/sda1 | grep -i reserved
dumpe2fs 1.42.12 (29-Aug-2014)
Reserved block count:     5875200
Reserved GDT blocks:      995
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
  Reserved GDT blocks at 30-1024
  Reserved GDT blocks at 32798-33792
  Reserved GDT blocks at 98334-99328
  Reserved GDT blocks at 163870-164864
  Reserved GDT blocks at 229406-230400
  Reserved GDT blocks at 294942-295936
  Reserved GDT blocks at 819230-820224
  Reserved GDT blocks at 884766-885760
  Reserved GDT blocks at 1605662-1606656
  Reserved GDT blocks at 2654238-2655232
  Reserved GDT blocks at 4096030-4097024
  Reserved GDT blocks at 7962654-7963648
  Reserved GDT blocks at 11239454-11240448
  Reserved GDT blocks at 20480030-20481024
  Reserved GDT blocks at 23887902-23888896
  Reserved GDT blocks at 71663646-71664640
  Reserved GDT blocks at 78675998-78676992
  Reserved GDT blocks at 102400030-102401024

However I have plenty of free space:

$ pydf -k
Filesystem      Size      Used    Avail Use%         Mounted on                
[omitted]
/dev/sda1  462509952 451315844 11177724 97.6 [#####] /mnt/large_linux 

GParted

I've also tried running sudo tune2fs -m 0 /dev/sda1, to no avail.

A T
  • 397
  • 1
  • 4
  • 15
  • @EEAA: Those answers do not solve my problem. I've restarted multiple times, so it's not like there's some file that was to be deleted that hasn't yet been removed. There is >11GB of free-space, but I can't use it. Reopen this question. – A T Sep 22 '15 at 03:39
  • Please include that information in your question, as it's very relevant. – EEAA Sep 22 '15 at 03:41
  • I think it's time for an `fsck`. – Michael Hampton Sep 23 '15 at 21:24
  • How do I run `sudo e2fsck -f -y -v -C 0 /dev/sda1` before it gets mounted? – A T Sep 23 '15 at 22:46
  • Boot from installation or live media. – Michael Hampton Sep 24 '15 at 01:17
  • What if you had one file of 11GB which was deleted, but it's in use by some process yet? When you delete a file that is in use, the file disappears, but still exists. Linux just expunge it when there no reference on it. – Eduardo Ramos Sep 24 '15 at 12:54

1 Answers1

0

I don't see in the info you provided any reason for which you'd think you have 11G left (other than the difference in G between Size and Used + Available, but it's incorrect to assume that such difference means Available, especially when Available is clearly stated as 0). On all extX filesystems Used + Available < Size due to reserved blocks and maybe other reasons.

There is no discrepancy between the df and pydf reports on the respective columns (as you questions appears to suggest) if you take into account that 1G = 1024 * 1024 K:

  • int(462509952/1024/1024) = 441
  • int(451315844/1024/1024) = 430

Plus both df and pydf indicate 0 on the available column.

Dan Cornilescu
  • 327
  • 4
  • 10
  • Does that also explain this? - http://i.imgur.com/KwqY5f3.png - Also, even when I delete a few files (let's say 10MB of files), I don't gain [10MB] free space. – A T Sep 23 '15 at 11:52
  • Yes, unused doesn't mean available. If the running system has /tmp, /var or the active user's homedir on that partition there are many processes constantly trying to write to it and will immediately use any little free space you make available. In general I try to keep at least 10-15% (or 10-20G for the homedir) free to prevent problems and reduce fragmentation which can degrade performance significantly. – Dan Cornilescu Sep 23 '15 at 12:29