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

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?

I really don’t understand your case. Please explain. If you need to write to a NAS from a PC do it directly why use HA?

I am trying to write files from my PC to sambaNAS running on HA. But I can ´t do it because windows shows “disk is protected against writing”. Sorry I am not good in explaining.

I’ve just found out about Samba NAS and have installed the add-on. Prior to this, I have been using Samba Share. Since the NAS still able to access the regular folders as the Share does, I am sticking with this version instead.
Now, I wish to access a remote media drive that is still within the same network as HA, but is not connected physically to HA. How do I input the line in samba NAS config file? From Windows, I am able to access it via \192.168.1.25\www\MUSIC. I want to share this folder within HA.

You can’t. There is an open architectural discussion about mount network share on HA (RFC: Mount Manager · Issue #2564 · home-assistant/supervisor · GitHub). This addon allow to mount disk that are physically attached to ha ( usb/sata etc ). The only remote possible with this addon ( but never tested! ) are the iscsi and USBoE protocols but you need a customized hassos image so is more simple to customize the image to have samba client on host level and mount disk via fstab.