RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    SMB mounting only works at command line!

    Scheduled Pinned Locked Moved Help and Support
    retropie rasp
    5 Posts 2 Posters 812 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • proxypunkP
      proxypunk
      last edited by proxypunk

      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?

      ClydeC 1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde @proxypunk
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • proxypunkP
          proxypunk
          last edited by proxypunk

          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?

          1 Reply Last reply Reply Quote 0
          • proxypunkP
            proxypunk
            last edited by

            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. ;)

            ClydeC 1 Reply Last reply Reply Quote 0
            • ClydeC
              Clyde @proxypunk
              last edited by

              @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. ;)

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              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.