SMB mounting only works at command line!
-
Hey there,
so I figured out how to mount my NAS share on my new Retropie. :)sudo mount -t cifs -o sec=ntlm,user='username',password='password' //192.168.2.102/sky-z-media/roms /home/pi/RetroPie/roms
This line fully works at the command line (F4).
But when I put this line to the autostart.sh under /opt/retropie/configs/all the share's NOT mounted.
I even get an error if I hit F4: "no such file or directoryRetroPie/roms".
It doesn't matter if I edit the file directly on the Pie with sudo nano or with notepad via SMB share (\retropie).
It looks like the command is being cut or something.
Any ideas, friends? -
@proxypunk Did you follow the instructions in Running ROMs from a Network Share? In not, you could try that and report any further problems here. There are two different options described in the article.
-
Yes, I already tried it with the etc/stab option but that doesn't work. I'm sure it's a Samba specific detail.
But why does it work when I type the command in, and why not if the same line is executed by autostart.sh? -
Ok, funny thing. Previously I put the mount line after emulationstation #auto. After putting it in the first line, before emulationstation it works wonderful. Makes sense...
Feel free to throw RTFMs at me. ;) -
@proxypunk said in SMB mounting only works at command line!:
Makes sense...
Feel free to throw RTFMs at me. ;)I'd rather throw books about basic logic at you. ;)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.