I’m a newb, but here I go. I’m running Ubuntu Server 23.10 and I have been trying to mount a NAS to it for days. Right up front I should mention that I have GNOME desktop installed and I can see as well as MOUNT any of the 4 shares using the GUI, but I want to be able to do this from the command line via SSH for example. I feel like I have been to the ends of the internet for clues, but nothing seems to work. At this point I am also wondering if I’m missing something very fundamental, like, “Oh you can’t do that”.
The NAS is PC based, running TrueNAS-SCALE-22.12.3.1. and there are 4 “Windows (SMB) Shares” on it. It’s ip address is 192.168.68.63 and if I ping it with “truenas.local” I get a proper response. PING truenas.local (192.168.68.63) 56(84) bytes of data.
My fstab file contains this line: /192.168.68.63/TrueNAS /mnt/nas cifs username=slingshot,password=bur$t,workgroup=WORKGROUP,iocharset=utf8 0 0
When I run: mount – a
, I get this error: mount.cifs: bad UNC (/192.168.68.63/TrueNAS)
When I run: mount -t cifs //192.168.68.63/SFX /mnt/nas -o username=slingshot,password=bur$t,workgroup=WORKGROUP iocharset=utf8
I get this error: mount: bad usage
When I run: smbclient -L 192.168.68.63
I get all of this (correct) information:
Sharename Type Comment--------- ---- -------IPC$ IPC IPC Service (TrueNAS Server)WORK_BAK Disk Sessions and Projects BAKSFX Disk Sound EffectsMACHINE_TIME Disk NONENATIVE_CONTENT Disk Sample LibrariesSMB1 disabled -- no workgroup available
I’ve run nmap
and gotten this:
Nmap scan report for 192.168.68.63Host is up (0.0015s latency).Not shown: 991 closed tcp ports (reset)PORT STATE SERVICE80/tcp open http111/tcp open rpcbind139/tcp open netbios-ssn179/tcp open bgp443/tcp open https445/tcp open microsoft-ds5357/tcp open wsdapi6000/tcp open X119001/tcp open tor-orportMAC Address: E0:3F:49:86:1C:EA (ASUSTek Computer)
I am a bit confused about specifying cifs or smb3.Here are some other facts:
Samba version 4.18.6-Ubuntucifs-utils: Installed: 2:7.0-2 Candidate: 2:7.0-2 Version table: *** 2:7.0-2 500
Any thoughts would be welcome, I'm at wits end. Cheers.