MiSTer-devel / Scripts_MiSTer

Miscellaneous Bash scripts for MiSTer
GNU General Public License v3.0
83 stars 43 forks source link

Fix cifs mount options for guest access #74

Closed symm closed 2 years ago

symm commented 2 years ago

Issue

Leaving the default config as recommended in the script:

#The user name, leave blank for guest access.
USERNAME=""

Gives the following error:

mount: /media/fat/_CIFS: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

Fix

This is because the wrong arguments get passed to mount:

mount -t cifs //192.168.1.102/MiSTer /media/fat/_CIFS -o guest

vs

mount -t cifs //192.168.1.102/MiSTer /media/fat/_CIFS -o sec=none