Shell Commands/Smb2FS
From MorphOS Library
Smb2FS - Mounts a samba share (SMB2/3)
DOMAIN=WORKGROUP/K, USER=USERNAME/K, PASSWORD/K, CHANGECASE/S, CASE=CASESENSITIVE/S, OMITHIDDEN/S, QUIET/S, ASKPASSWORD=AP/S, POPUPONERRORS/S, CLIENT=CLIENTNAME/K, SERVER=SERVERNAME/K, DEVICE=DEVICENAME/K, VOLUME=VOLUMENAME/K, CACHE=CACHESIZE/N/K, DEBUGLEVEL=DEBUG/N/K, TZ=TIMEZONEOFFSET/N/K, NETBIOS/S, TRANSLATE=TRANSLATIONFILE/K, NETBIOSNAMESERVICEPORT/N/K, PORT=NETBIOSSESSIONPORT/N/K, SERVICE/A
A more detailed documentation can be found on the SYS:MorphOS/Locale/Help/english/SmbFS.txt file.
Smb2FS also accepts the URL format as an argument:
smb://[<domain;][<username>@]<host>[:<port>]/<share>/<path>
Example:
Smb2FS WORKGROUP=example VOLUME=Net: USER=morphosuser PASSWORD=example SERVICE=//sambaserver/sharedfiles
Tips for quitting the command if you've started it as a background process:
- With the UnMount command from the shell.
- If you have used the default device name for a samba share, you can unmount the share with the Eject screenbar module.
- Right-clicking a share icon on the desktop and selecting Eject.
- It can be quitted from the shell by finding out the process number with the Status command and giving that number to the Break command.
- If you want to do the previous operation automatically for example in a script, you can use the following command (including all the apostrophes and alikes): Break `Status COM "Smb2FS '//sambaserver/sharedfiles'"`
- Any program which can send a CTRL-C signal to the program can quit it, for example the TaskManager program.