Solved Got old hard drive mounted, but Samba can't seem to make connection

Hi All,

In the process of writing this post, I found the problem. The path was incorrect.
Hopefully, by posting this, someone else may be helped.

Starting a new thread, since this is a slightly different topic. Thread to mount
old hard drive located here:

https://forums.freebsd.org/threads/old-server-died-trying-to-mount-that-old-working-disk-in-new-server.85349/

Problem: although the main hard drive is working fine and Windows computers can access it,
the recently installed hard drive in a USB carrier (from an old server) is not able to be seen by Windows.

Via console, /media/ExtUSB/usr/home/samba/public is accessible.

Edited /usr/local/etc/smb4.conf by adding 2nd section called "extusb":

Code:
[public]
    comment = %h shared public directory
    path = /usr/home/samba/public
    force directory mode = 0777
    force create mode =    0777
    force group =          nobody
    # force group =        MYGROUP
    force user =           nobody
    public =               yes
    writable =             yes
    read only =            no
    printable =            no
    # write list = @staff
    
[extusb]
    comment = %h shared public directory (extusb)
    path = /media/ExtUSB/usr/home/samba/public
    force directory mode = 0777
    force create mode =    0777
    force group =          nobody
    force user =           nobody
    public =               yes
    writable =             yes
    read only =            no
    printable =            no

When the Windows computer tries to connect, the FreeBSD server throws this error:

Code:
smbd[1078]: make_connection_snum: canonicalize_connect_path failed for service extusb,
path /media/ExtUSB/usr/home/samba/public

Took a look here, but nothing jumps out at me:

Found problem. The path in the conf file was:

/media/ExtUSB/usr/home/samba/public

when it should have been:

/media/ExtUSB/home/samba/public

Posting this since it might help someone in the future.
 
Back
Top