4

I have some shares that are located on mount points like:

media/
  backups/
    01/
    02/
    03/
    ...

01, 02, 03 and so on are different physical drives mounted at those locations for organizational purposes.

This seems to cause samba to report the available space of the root drive for these volumes and not the drive on the mount point.

The problem is that when these shares are accessed from a network client, that client cannot copy a set of files to the share the exceed the space of the root drive, despite having plenty of space on the actual target disk on the mount point.

As a side note, a functional workaround for Windows is to use TeraCopy, which allows you to ignore disk space warnings

Is there a configuration I can set or anything I can do to have samba report the disk space correctly?

2 Answers 2

2

You can use "dfree command" in "global" section of smb.conf, like this:

dfree command = /usr/local/samba/bin/dfree

when "dfree" is a simple script, for example:

#!/bin/sh
df  $1 | tail -1 | awk '{print $2" "$4}'

Reference: dfree command (S)

0

I ran into this problem also and I think the correct solution is to create a new samba share for each physical drive. When listed as a separate share, it correctly reports the size of the physical drive.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .