F5F Stay Refreshed Software Operating Systems Mount SMB filesystem to a designated directory on Linux

Mount SMB filesystem to a designated directory on Linux

Mount SMB filesystem to a designated directory on Linux

I
IdaT
Junior Member
2
03-16-2020, 05:51 AM
#1
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.
I
IdaT
03-16-2020, 05:51 AM #1

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.

S
Summer_Cool
Member
175
03-17-2020, 04:50 PM
#2
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.
S
Summer_Cool
03-17-2020, 04:50 PM #2

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.

J
Jovani_Salami
Member
65
03-19-2020, 07:33 AM
#3
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.
J
Jovani_Salami
03-19-2020, 07:33 AM #3

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.

A
AlexBun
Junior Member
21
03-19-2020, 07:56 AM
#4
@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).
A
AlexBun
03-19-2020, 07:56 AM #4

@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).

C
CreepAssassin
Member
50
03-19-2020, 01:55 PM
#5
C
CreepAssassin
03-19-2020, 01:55 PM #5

I
iKegreenS_
Posting Freak
878
04-02-2020, 12:06 AM
#6
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.
I
iKegreenS_
04-02-2020, 12:06 AM #6

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.