How to display free disk space on cifs mount on linux command line?

5,424

That's what I'd try:

  1. df -a.
  2. df /mnt/a_share.
  3. stat -f /mnt/a_share.
Share:
5,424

Related videos on Youtube

Kalle Richter
Author by

Kalle Richter

Updated on September 18, 2022

Comments

  • Kalle Richter
    Kalle Richter over 1 year

    In case there's any distinction between OS and shell necessary, I want to run the command on Ubuntu 14.04 with Linux 3.13 in GNU bash 4.3.11. mount.cifs's version is 6.0 using smb2 protocol. After mounting a share with sudo mount -t cifs -o user=auser,uid=4322,gid=4322,rw //1.2.3.4/a_shared /mnt/a_share I'd like to be able to monitor the free space on the share e.g. with du. The actual space on the device providing the share shouldn't matter, quotas should be respected. The result should reveal the same as the properties dialog in nautilus.

    df doesn't include cifs mounts. I didn't have any further ideas.

    • EEAA
      EEAA over 9 years
      Show us what you've tried so far, and why it's not giving you the information you expect.
  • Kalle Richter
    Kalle Richter over 9 years
    So one has to believe that 1. cifs is a dummy filesystem (no wonder such a statement causes trouble if it written without any definition or reference) and that 2. the cifs mountpoint is a FILE, otherwise the man page wouldn't make any sense (as there's no accessible file on which a cifs can reside)