Accessing a NAS from UmbrelOS

Hi,

Some have already posted similar questions, without answer I think.
I take my chance.

I Have Umbrel OS Ver. 1.4.2 running on a small PC. Beside this I have a Raspberry Pi running as a file server, with 3 connected USB drives containing videos, pictures, music, etc.

I would like to see theses files in the “files” app, on umbrel.

The drives are under /mnt/usb1, /mnt/usb2 and /mnt/usb3, on the Pi.

I managed to connect to UmbrelOS by SSH but did not find how to mount these 3 drives.

Any clue?

Thank you in advance.

Phil.

Hi Phil,

I have a full guide on how to do this but its still sitting in Pending. I dont know how long it takes for it to be approved but its coming.

Good news! Just wait and see, then…
Have a nice day

Hi Phil,

Still hasnt been approved but here it is:

This guide will walk you through connecting a SMB share to Umbrel for use with Plex, Sonarr, Radarr, Transmission and others. Useful if your Umbrel Server has limited space or you just want to use a NAS you already have.

*** Please note I do know know if this will survive an update. If one of the Dev’s could confirm this ***

Connect to your Umbrel Server using Putty or your SSH Client of choice.

Run the following command to install CIFS utilities:

sudo apt install cifs-utils

Enter your password to proceed.

Now we will create the folder to map the SMB share to in the Downloads folder.

(Reason we use Downloads as all docker images that I have tested so far have access to this folder.)

sudo mkdir /home/umbrel/umbrel/home/Downloads/Multimedia

(Change Multimedia to whatever you want it called.)

Now we will create the credential file to connect to the SMB Share. These are typically the username and password for your NAS. Test and confirm first.

sudo nano /root/.smbcredentials

Add the following lines:
username=smb_username

password=smb_password

Remember to replace the username and password with your SMB Share details.

Press Ctrl+O to save, then Ctrl+X to exit.

Now we will test the connection to ensure the SMB share mounts

sudo mount -t cifs -o rw,vers=3.0,credentials=/root/.smbcredentials //192.168.0.10/Multimedia /home/umbrel/umbrel/home/Downloads/Multimedia

Remember to change //192.168.0.10/Multimedia to whatever your SMB Share is.

Open Umbrel file browser and make sure you can browse the folder.

If all is well, lets jump back into Putty and add the connection to FSTAB to make sure it mounts on boot.

sudo nano /etc/fstab

Add the following to the end of the file:

# network share mount
//192.168.0.10/Multimedia /home/umbrel/umbrel/home/Downloads/Multimedia cifs credentials=/root/.smbcredentials,uid=1000,user 0 0

Press Ctrl+O to save, then Ctrl+X to exit.

At this stage we will reboot the Umbrel Server. Either run “systemctl reboot” in Putty or reboot from Umbrel’s UI.

Once rebooted confirm the SMB Share is mounted and you can access the files.

Proceed to edit the paths in your apps like Plex, Radarr and Transmission.

Plex:

Radarr:

Transmission:

Hi,

It is not working.
when I type:

sudo mount -t cifs -o rw,vers=3.0,credentials=/root/.smbcredentials //192.168.1.59/mnt /home/
umbrel/umbrel/home/Downloads/Multimedia

I have the following error:
mount error(13): Permission denied

Hi Phil,

Try accessing the SMB Share on a Windows or Mac via //192.168.1.59/mnt and use the same password you used in the .smbcredentials file you created. Make sure there are no errors. Seems like an error with the credentials or the share location.

Regards,

HVB Media

Hi,

You were right. Just a stupid typo in the credentials…

Thanks again

1 Like