Is it still possible to mount a NAS Share to Homeassistant over shell command?

Is it still possible to mount a NAS Share to Homeassistant over shell command?

My Nas runs OMV 6

I use this in my config.yaml

mount_nas_folder: mount -t cifs -o vers=3.0,noserverino,username=XXX,password=XXX,domain=WORKGROUP //192.168.2.99/Kamera /config/www/images/haustur

If i trigger it, i can see an error in proxmoxx console:
CIFS Send error in SessSetup -13

If not possible, how can I use this NAS share in Home Assistant, if I want to reach it over https . I want to show a picture from my NAS on my Android TV (use pipup) . I only get it to work when the picture is in config/www and not on my NAS.

Mine looks like this and still works fine with OMV 6:

  mount_nas_music: mkdir -p /media/NAS/Music;mount -t cifs -o username=Xxxxx,password=XXXXXXXX,domain=XXXXX //192.168.188.65/Music/Musicaudio /media/NAS/Music

I tried again with your code, but still without success. The folder is empty. Now that I know that it still works, I still have hope that I can still do it.

Maybe I have to look for the error in OMV.

I do not know how to continue.
In OMV I have released everything that is possible.

I always get the message “Permission denied” when I enter the mount command in HA Terminal

I copied your command 1:1 and only changed my data.

Folder “/media/NAS/Music” is created but is empty.

Do you actually have an SMB/CIFS shares active on OMV?

Yes, several.
I can also mount it in HA as network storage via the UI.
But since I want to integrate under /config/www I have to do it using ShellCommand.

Strange… Well, I guess, this is, where my knowledge ends… :frowning:

1 Like

Maybe Chris can help you, as I learnt this from him :wink:

1 Like