SMB shares on MacOS not working with Vero4k using /etc/fstab

I have moved my media libraries to my Mac and I want to share them via SMB to my various Vero boxes.

Here is the output from smbclient on my Vero:

osmc@KodiKave:/mnt$ smbclient -L 10.7.10.29 -U kodi
Enter WORKGROUP\kodi's password:

	Sharename       Type      Comment
	---------       ----      -------
	Concerts        Disk
	IPC$            IPC
	kodi’s Public Folder Disk
	Movies          Disk
	Music           Disk
	TVShows         Disk
	kodi            Disk
SMB1 disabled -- no workgroup available
osmc@KodiKave:/mnt$

I then added the /etc/fstab entry as follows:

osmc@KodiKave:/mnt$ sudo cat /etc/fstab
# rootfs is not mounted in fstab as we do it via initramfs. Uncomment for remount (slower boot)
#/dev/vero-nand/root  /    ext4      defaults,noatime    0   0
//10.7.10.29/Movies /mnt/ServerMovies cifs x-systemd.automount,noauto,rw,iocharset=utf8,credentials=/home/osmc/.credentials,uid=osmc,gid=osmc,file_mode=0770,dir_mode=0770,vers=2.0 0 0
osmc@KodiKave:/mnt$

When I enter sudo mount -a, it returns to the command prompt.
When I try to cd into /mnt/ServerMovies, I get:

osmc@KodiKave:/mnt$ ls
ServerMovies
osmc@KodiKave:/mnt$ cd ServerMovies
-bash: cd: ServerMovies: No such device
osmc@KodiKave:/mnt$

Thank you.

I might be old fashion, but if I’m going to mount from fstab, I make sure that the mount point exists before trying.

That is make sure there is no mount, then: sudo mkdir /mnt/ServerMovies

you might want to chmod or chown the folder, but make sure the mountpoint exist first.

I removed the existing directories, created it manually and then tried mounting from fstab again.
Same issue:

osmc@KodiKave:/mnt$ ls -l
total 0
drwxr-xr-x 2 root root 0 Oct 29 13:45 Server-Movies
osmc@KodiKave:/mnt$ cd Server-Movies
-bash: cd: Server-Movies: No such device
osmc@KodiKave:/mnt$

The fstab entry was also changed to ‘Server-Movies’.

I figured out what was wrong.

I had formatted by credentials file like:

username=<username>
password=<password>

It should have been:

username=username
password=password

so the brackets is what stopped the ‘cd’ command from working. I can now see the files on the OSX share.

On with the rest of the config.

1 Like

Those brackets normally indicate that this part is to be replaced with your customised content