TLDR: I can access an external harddrive via GUI tools but not via fstab / mount tooling.
I'm at my wits end with this one. I've got an external harddrive plugged into the back of my Asus router, with samba share enabled. I can access the files on it from all of my devices, android, W10, Ubuntu, Mac. I can even access it on this device, again Ubuntu, accessing the files via Kodi and the file explorer. I've also been able to connect via the smbclient package. One oddity I did notice connecting via ubuntu's file explorer is the requirement for a domain in addition to the standard username and password. It wouldn't accept it blank so I just through an 'a' in there and it connected fine.
However, I've burned a good few hours now attempting and failing to mount the drive for easier access and on-boot mounting. Unfortunately, of all the forum posts I've scraped, I'm seeing nothing new, no new tricks to try so I'm offering myself to the forum gods.
I've edited the /etc/fstab file with the following, see image. They're all commented out but they have been uncommented one at a time and their are other permutations that I forgot to keep for the screenshot:
From there I've been running
Two posts that seemed the most relevant to my ametueurish eyes:
https://unix.stackexchange.com/questions/643411/cant-mount-samba-share-cifs-mount-failed-w-return-code-13
https://unix.stackexchange.com/questions/489647/cant-connect-to-smb-shared-storage-from-ubuntu-18-04

sudo mount -a
I've received many different errors while debugging, mostly #22, but now its settled on #13
Tailing the kernel log with tail -f /var/log/kern.log
I see:
2025-02-22T17:38:13.145098-05:00 nous kernel: CIFS: VFS: Use of the less secure dialect vers=1.0 is not recommended unless required for access to very old servers
2025-02-22T17:38:13.145100-05:00 nous kernel: CIFS: enabling forceuid mount option implicitly because uid= option is specified
2025-02-22T17:38:13.145101-05:00 nous kernel: CIFS: enabling forcegid mount option implicitly because gid= option is specified
2025-02-22T17:38:13.145102-05:00 nous kernel: CIFS: Attempting to mount //MY-ROUTERS-IP/photos
2025-02-22T17:38:13.168078-05:00 nous kernel: CIFS: VFS: cifs_mount failed w/return code = -13
Again, I can access the harddrive through the file explorer but can't mount it via the terminal.
And for completeness a screenshot of the router's samba share settings:

Asked by Douglas G. Wright III
(1 rep)
Feb 23, 2025, 01:52 PM