Can't mount RetroPie in AutoFS on Ubuntu
-
Hi,
i can access to retropie using thunar file manager on xubuntu 18.04, but i fail when i try to mount it using autofs or classic 'mount' and i think its because there is no username and password. This line works for all my samba shares
retropie -fstype=cifs,uid=1000,username=user,password=password ://192.168.10.21
When i omitt username and password the folder 'retropie' is created but when i try 'ls /autofs/retropie' i have the error that the folder doesn't exist. When i try it with this command
sudo mount -t cifs //192.168.10.21 /mnt
i have to enter a password for 'root@192.168.10.21'. Also '-o guest' doesn't work, there is no such option for mount.
-
@Maynard said in Can't mount RetroPie in AutoFS on Ubuntu:
i have to enter a password for 'root@192.168.10.21'. Also '-o guest' doesn't work, there is no such option for mount.
Actually there is such an option (see
man mount.cifs
):$ sudo mount -t cifs -o guest //retropie/roms /mnt $ ls -l /mnt/ drwxr-xr-x 2 root root 0 Jun 8 03:59 3do drwxr-xr-x 2 root root 0 Aug 31 13:38 amiga drwxr-xr-x 2 root root 0 Apr 14 2018 amstradcpc drwxr-xr-x 2 root root 0 Sep 15 15:58 arcade drwxr-xr-x 2 root root 0 Feb 7 2019 arcadia drwxr-xr-x 2 root root 0 Jul 9 20:46 atari2600 drwxr-xr-x 2 root root 0 Apr 14 2018 atari5200 drwxr-xr-x 2 root root 0 Apr 14 2018 atari7800 drwxr-xr-x 2 root root 0 Apr 14 2018 atari800 drwxr-xr-x 2 root root 0 Apr 14 2018 atarilynx drwxr-xr-x 2 root root 0 Mar 23 2019 atarist drwxr-xr-x 2 root root 0 Jul 22 18:06 c64 drwxr-xr-x 2 root root 0 Jun 9 05:26 coco drwxr-xr-x 2 root root 0 Mar 31 2019 coleco drwxr-xr-x 2 root root 0 Apr 1 2019 crvision drwxr-xr-x 2 root root 0 Jan 18 2019 daphne ...
-
OK this works. But i only works when i mount the specific folder and not when i mount only //retropie. normally when there are more then one folder i want to access to i don't mount the single folder. When i go to the mount point i can choose the folder i want.
-
That's not going to work, it's how CIFS/SMB works. You can't mount a host, just a share. Sure, the file browser shows you the available shares, but even on Windows (using Map Drive) you can't do that.
Maybe there's another solution with an intermediary program that reads the shares and mounts them separately so you can see them side-by-side, but underneathmount
will still only map each shared folder.
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.