Cannot connect to NAS drives/shares

I just installed latest zorin 17. New to this OS...
I use this computer for media on my TV.
After hours fiddling with sudo commands I was finally able to install Samba.
I can now connect to 2 NAS but cannot access the shares on those drives...

Is there an easy way to do this like in Windows ?

Thanks...

Hi and welcome. I don't own a NAS or use NAS devices, but using Brave A.I. search engine via Mojeek inside Zen Browser gives:

"Accessing NAS Shares in Ubuntu 22.04

To access shares on NAS devices in Ubuntu 22.04 after Samba has been installed, follow these steps:

  1. Install CIFS-utils : Ensure that the CIFS-utils package is installed, as it is required for mounting SMB shares. You can install it using the command:
sudo apt install cifs-utils -y
  1. Create a Directory for Mounting : Create a directory where the NAS shares will be mounted. For example:
sudo mkdir /media/share
  1. Create a Credential File : Create a credential file to store the username and password for the NAS shares. This file should be hidden and secure. Use the nano text editor to create and edit the file:
sudo nano ~/.smbcredentials

Add the following content to the file:

username=example_username
password=example_password

Replace example_username and example_password with your actual NAS credentials. Save the file and set the appropriate permissions:

chmod 600 ~/.smbcredentials
  1. Mount the NAS Share : Use the mount command to mount the NAS share. For example:
mount -t cifs //nas_ip/share_name /media/share -o credentials=~/.smbcredentials,uid=1000,gid=1000,vers=2.0

Replace nas_ip with the IP address of your NAS device and share_name with the name of the share you want to mount.

  1. Automate Mounting with /etc/fstab : To ensure the NAS shares are mounted automatically at boot, add an entry to the /etc/fstab file. Open the file with a text editor:
sudo nano /etc/fstab

Add the following line:

//nas_ip/share_name /media/share cifs credentials=/home/your_username/.smbcredentials,uid=1000,gid=1000,vers=2.0 0 0

Replace your_username with your actual username.

  1. Verify the Mounting : After adding the entry to /etc/fstab , you can verify that the share is mounted by checking the mount points or using the mount command:
mount -a
  1. Access the Share : You can now access the mounted NAS share through the file manager or command line. For example, open the file manager and navigate to /media/share .

By following these steps, you can access and mount NAS shares in Ubuntu 22.04 after Samba has been installed.69

AI-generated answer. Please verify critical facts."

Note that I used Ubuntu 22.04 in the search criteria as Zorin 17 is a fork of it.

Thank you !

I also received a series of commands to execute from ChatGPT...

Moving from Windows to Linux is like being dropped into a new country where everyone speaks command line and your mouse suddenly needs a translator. Nothing works… until it does, and then you feel like a wizard but you don't know what you just did...

That's normal, we all go though that phase. Just hold on tight, have an open mind willing to learn and all will be well.

1 Like