How to display free disk space on cifs mount on linux command line?
5,424
That's what I'd try:
df -a
.df /mnt/a_share
.stat -f /mnt/a_share
.
Related videos on Youtube
Author by
Kalle Richter
Updated on September 18, 2022Comments
-
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 withsudo 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. withdu
. 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 innautilus
.df
doesn't include cifs mounts. I didn't have any further ideas.-
EEAA over 9 yearsShow us what you've tried so far, and why it's not giving you the information you expect.
-
-
Kalle Richter over 9 yearsSo 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)