Discrepancy between df and du

Greeting earthlings and others. :slight_smile:

I've successfully mounted my mega.nz cloud storage with the command:
rclone mount --vfs-cache-mode full mega: ~/cloud/mega

To try and resolve the error below I've used rclone config to delete and recreate the share. I've cleared all files located in .cache/rclone/vfs/mega. I've logged into the Web UI of Mega and confirmed there are no files in the storage.

The output of df is:

Filesystem Size Used Avail Use% Mounted on
megajp: 25G 23G 2.6G 90% /home/user/cloud/mega

However, the output of du -shc ~/cloud/mega is:

0 /home/user/cloud/mega/
0 total

The version I'm using is:

rclone v1.65.0

  • os/version: debian 12.4 (64 bit)
  • os/kernel: 6.5.0-5mx-ahs-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.4
  • go/linking: static
  • go/tags: none

Output of "rclone config redacted" is:

type = mega
user = XXX
pass = XXX

I've not posted any log because I'm not having any issues running commands against the share. I'm just having the discrepancy between what df and du report and I'm trying to figure out how to resolve it.

Make sure that you purge mega "Rubbish bin" using Web UI.

Here results with empty mega account:

$ df -h /Users/kptsky/Temp/mount
Filesystem      Size    Used   Avail Capacity iused ifree %iused  Mounted on
fuse-t:/mega    20Gi     0Bi    20Gi     0%       0  1.0G    0%   /Users/kptsky/Temp/mount

$ du -sh /Users/kptsky/Temp/mount
  0B	/Users/kptsky/Temp/mount

Thank you kind sir, I'm embarrassed to say that was the problem. :face_with_open_eyes_and_hand_over_mouth:

1 Like

Nah - The only way to learn is by asking questions and I've gotten many things wrong/incorrect over the years, but keep asking!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.