Mount an SMB share.
You need the helper program installed for either the nfs or cifs file system. For nfs based file system, following utility is required
sudo apt-get install nfs-common
To mount a Cifs file system, install the following utility
sudo apt install cifs-utils
Then
sudo mount -t cifs //machineNameOrIPadress/folder /mnt/folderĀ -o username=myusername,password=mypassword
You might want to add puid:pgid to make it writable, eg: 998:100
sudo mount -t cifs //machineNameOrIPadress/folder /mnt/folderĀ -o username=myusername,password=mypassword,uid=998,gid=100
To unmount an SMB share, you can use the umount
command followed by the mount point directory. Here's an example:
sudo umount /mnt/folder