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 //machineIPadress/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 //RPi4/_XChange/TESTMOVIESmachineNameOrIPadress/folder /mnt/TESTMOVIESfolder -o username=root,myusername,password=01664892ganjah12,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