It seems you're facing issues with accessing your network shares via SMB on Ubuntu, which is a common issue when transitioning from Windows to Linux-based systems like Ubuntu.
1. Ensure Samba (SMB) is Installed
Ubuntu uses Samba to communicate with SMB shares. Make sure it's installed on your system. Open a terminal and run the following command to install Samba and the required dependencies:
sudo apt update
sudo apt install samba smbclient cifs-utils
2. Check SMB Access via File Explorer
In the Ubuntu File Explorer (Nautilus), go to Other Locations, and in the Connect to Server box, enter:
`smb://IP-address-of-share`
You should be prompted for a username and password. If you are still having issues: Try entering your credentials manually, or if the network share is public, try accessing it without credentials. Sometimes authentication errors prevent access.
3. Mount the Network Share
If using the File Explorer isn't working well, you can try mounting the SMB share manually. Here’s how: First, create a directory where the share will be mounted:
sudo mkdir /mnt/share
Then, mount the share using the mount.cifs command:
sudo mount -t cifs //IP-address-of-share/share-name /mnt/share -o username=your-username,password=your-password,uid=$(id -u),gid=$(id -g)
This will mount the SMB share at the /mnt/share location.
4. Grant Plex Access to the Share
For Plex to access the network shares, ensure the following; Plex should have access to the mounted directory. You may need to grant Plex access to these folders:
sudo chown -R plex:plex /mnt/share
In Plex, when adding media directories, you should now be able to browse to /mnt/share and add the appropriate media directories.
5. Automount on Boot (Optional)
If you want the network share to be mounted automatically on every boot, you can add it to your /etc/fstab file: Edit the /etc/fstab file:
sudo nano /etc/fstab
Add the following line to mount the share at boot:
//IP-address-of-share/share-name /mnt/share cifs username=your-username,password=your-password,uid=1000,gid=1000 0 0
Save the file and test it with:
sudo mount -a
6. Test with SMB Client
You can also test the SMB connection from the terminal using smbclient:
smbclient //IP-address-of-share/share-name -U your-username
If the connection works here, it should indicate the share is correctly configured.