[New Addon] Samba NAS. (Mount external disk and share it )

Just wanted to get some more info/help with this. So I have HA OS installed on a NUC, and a network drive that I’d like to use for Plex through HA. How can I set this up to either mount the network drive, or could I just connect external storage to my NUC and have this mount it to use with Plex?

I´m trying to use the mount in different addons - but since adding the Private Key the Addon is not starting anymore:


My Config:

Any idea what is going wrong?

Anyone else able to Help? Im still struggeling to mount the external Drive in addons :frowning:

I’m interested in this as well

Hello,

Recently I have been getting this error under repairs…

I see the following in my supervisor log:

22-12-09 06:28:07 WARNING (SyncWorker_1) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Samba NAS
22-12-09 06:28:09 WARNING (SyncWorker_0) [supervisor.addons.validate] Add-on have full device access, and selective device access in the configuration. Please report this to the maintainer of Samba NAS

Odd thing is, I no longer have this add-on installed. Any ideas?
Thanks.

have you acces to port 22222?

try put in SSH

ssh 127.0.0.1 -p22222

Hi guys

i’m trying to save video from a cam using MotionEye; can you help me on what to put in the “custom path” field to use the added mass storage?

thanks

Yes its enabled and working - verified with putty

added mass storage is formatted in ext3/4?

have you put the correct label under

moredisk

try to disable the “media library” option so you can look if it’s a problem of mounting or private key

Without media library everything is working as expected.
I just created a new key pair with ssh-keygen (enter, enter, enter, enter) and copied both keys. The public key was set using the addon “HassOS SSH port 22222 Configurator” from “~/.ssh/id_rsa.pub” - before I did this manually. rebooted twice.
As mentioned here: 🆕[add-on] HassOS SSH port 22222 Configurator - #224 by adamoutler

I changed also the private key for SAMBA NAS (from ~/.ssh/id_rsa)- but same behavior. ;-(

I got it working using a usb stick - three times before I did the same without success. I don´t know what has changed. But it is working :grinning:

1 Like

Hi,
Maybe it was because your key was not formatted in 64 bit per line ?

I changed my private key with 64 characters per line.

And I also add the “|” (but you already have it)

ssh_private_key: |
1 Like

Thank you for for this addon. I have mounted a USB drive for recordings from the frigate and it works very well. I made a bit of a mess during the configuration attempts, how can I remove it?

/media is one of the disk exposed by the addon do use your pc, connect the disk and remove the directories.

where do you set , in Frigate , the path for recording in the USB?

Hi @Lucio_Tarantino thank you for this great add-on!
My setup is rpi4 with HD usb 500gb but it keeps spinning all the time even when not in use and this brings the temp of the HD quite high.
Any solution to set it to go in idle after X amount of time or when not in use?
Thanks in advance

Hello, I aprreciate your add-on but i can´t find solution for writing files to NASserver via sambaNAS.
I will be happy for every single idea.

power management for USB disks is quite problematic. Many Chinese adapters do not implement it or partially implement it.

By default a disk connected to a USB goes into standby when the USB goes into standby. This obviously does not happen if the disk is connected through a USB HUB.

You can do the following tests:

  • If the disk is connected through a USB HUB, try connecting it directly to the HA. If it suspends it is the fault of the USB HUB which does not support suspending ports. There is little to do but change the HUB.
  • If you have a Linux PC: try the hdparm -I /dev/... command to see how the disk is configured. In case you can always use hdparam to change the configuration.
  • If you have a Windows PC try leaving it plugged in to see if it goes to sleep or not. If it doesn’t suspend it means that the USB adapter can’t support it.

In the next version I plan to include smart control. It doesn’t fix it but it helps to see immediately if APM on the disk is enabled/supported.

1 Like

Let’s see if I understand. Would you like to write to an external NAS Server using this addon? No you can’t, the addon was created to be able to use a HA Operating System as a NAS by exposing any additional disks not used by the haos itself via SAMBA.

L.

So there is no way to write files to this NAS through my PC which is connected to the NAS running on HA via sambaNAS?