Mount SMB filesystem to a designated directory on Linux
Mount SMB filesystem to a designated directory on Linux
I'm attempting to connect a share from my Synology NAS named Backups to a designated folder on my Ubuntu VM running Windows Hyper-V. I've reviewed several guides that use CIFS and tried the following command: sudo mount -t CIFS -o username=corectusername //NasIP/Backups BackupDel. However, I'm encountering the error: mount error: cifs filesystem not supported by the system mount error(19). Please refer to the mount.cifs manual or check kernel logs for more details. Your help would be greatly appreciated.
Did you insert the placeholders or simply paste the text here? If it’s the latter, replace the markers with the correct values. If the system was recently updated, try restarting; the CIFS kernel modules might still be missing even after an update.
Typically, when you need to connect a NAS to a particular folder regularly, you should use fstab instead. To set this up, open the file with sudo nano /etc/fstab and insert the following line at the end: //NAS_IP/Backups /Path/To/BackupDel cifs username=correctusername,password=correctpassword 0 0. After saving, verify it works before restarting. Then execute sudo mount -a for a permanent setup or use sudo mount //NASIP/Backups /Path/To/BackupDel -o username=correctusername for temporary access.
@Sauron Appreciate your prompt reply. I included the placeholders NasIP and corectusernem to avoid revealing personal details. I also restarted the system but the issue persists. @RONOTHAN## Thank you for your timely response. I attempted the final command and now encounter this error: mount error(13): Permission denied. See the mount.cifs manual (e.g., man mount.cifs) and check kernel logs (dmesg).
Thanks for your feedback. The addition of ~ before BackupDel was necessary. I didn't realize it was required since the command was run from the same directory as the folder.