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

Fixed in 9.5.1-nas3. Please upgrade.

L.

Damn!
That was fast… :ok_hand:
Tested and working.

Thanks!

Having an odd issue with mounting.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] automount.sh: executing... 
[14:15:55] INFO: Protection Mode is false
[14:15:56] INFO: MoreDisk option found!
[14:15:56] INFO: MediaLibrary option found!
Warning: Permanently added '[192.168.100.2]:22222' (ECDSA) to the list of known hosts.
Tue Nov  2 14:15:57 CET 2021
[14:15:57] INFO: SSH connection to 192.168.100.2:22222 OK
[14:15:57] INFO: Available Disk Labels:
 External
[14:15:57] INFO: More Disks mounting.. External
[14:15:57] INFO: Mount External
mount: mounting /dev/disk/by-label/External on /mnt/data/supervisor/media/External failed: No such file or directory
[14:15:57] WARNING: Host Mount Fail!
[14:16:33] INFO: Success!
[cont-init.d] automount.sh: exited 0.

If I manually make missing directory the error changes to “Permission denied”, regardless of permissions on the directory.
Using an ext4 disc via USB in a pi4, and accessing from Linux.
Any ideas?

Not enough information. I need to know your addon config ( mask sensible information like password, key etc ) and your environment ( hw, hassos version etc etc ).
I also ask to open a issue on Issues · dianlight/hassio-addons · GitHub is a better place to trace it.

L.

1 Like

Ok, will move it there.
Thanks!

Hello,

I see that the addon creates entities for the mounted drives (Available, Used, %used…) but they all remain as unknown.
What am I doing wrong?

Thanks

Open an issue on Issues · dianlight/hassio-addons · GitHub and post your config and the addon log.

Perfect thanks

Hi
I used the samba nas but found that the USB drive is visible in listing but its contents are not visible.

Can you help me out as where I am making mistake.
I am using Homeassistant fully updated on RPI4.
Unable to find any clue or help pls,
Thanks

Not really sure. I generated the key using Puttygen. I can ssh into the machine using putty but I can not get it working using the addon. Does the config in the picture look correct?

Have you try to remove " before AAA and after ==? Why you them?

L.

In what listing? On network or media? What fs you are using? Please post also a log and your config.

Tried removing them, still no luck…

Try to follow the guide and save te private key in a separate file before import.

Now SSH is working. I converted the private to OpenSSH format. Strangely though, the drive is not showing not in media browser.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 0.banner.sh: executing... 
---------------------------------------------------
 ____                  _           _   _           
/ ___|  __ _ _ __ ___ | |__   __ _| \ | | __ _ ___ 
\___ \ / _` | '_ ` _ \| '_ \ / _` |  \| |/ _` / __|
 ___) | (_| | | | | | | |_) | (_| | |\  | (_| \__ \
|____/ \__,_|_| |_| |_|_.__/ \__,_|_| \_|\__,_|___/
                                                   
                              Version 9.5.1-nas4
---------------------------------------------------
[cont-init.d] 0.banner.sh: exited 0.
[cont-init.d] automount.sh: executing... 
[19:59:30] INFO: Protection Mode is false
[19:59:31] INFO: MoreDisk option found!
[19:59:31] INFO: MediaLibrary option found!
Warning: Permanently added '[192.168.18.100]:22222' (ECDSA) to the list of known hosts.
Wed Nov 10 18:59:39 UTC 2021
[19:59:39] INFO: SSH connection to 192.168.18.100:22222 OK
[19:59:40] INFO: More Disks mounting.. cctv
[19:59:40] INFO: Mount cctv
[19:59:45] INFO: Success!
[cont-init.d] automount.sh: exited 0.
[cont-init.d] mqtt.sh: executing... 
[cont-init.d] mqtt.sh: exited 0.
[cont-init.d] samba.sh: executing... 
[19:59:50] INFO: Using hostname=homeassistant interface=eth0
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user lol.
[cont-init.d] samba.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[19:59:52] INFO: Starting the MQTT daemon for disks info...
[19:59:52] INFO: Starting the AVAHI daemon for homeassistant...
Waiting for daemon ...
nmbd version 4.13.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
daemon_ready: daemon 'nmbd' finished starting up and ready to serve connections
smbd version 4.13.8 started.
Copyright Andrew Tridgell and the Samba Team 1992-2020
INFO: Profiling support unavailable in this build.
daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
[19:59:54] INFO: Sending MQTT autodiscovery...
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 192.168.18.100
*****

Just updated Home Assistant to version 2021.11.2 and coincidently now it works :smiley:

Hey I am pretty dumb and would like to use this add-on. So I am running Home Assistant on a Raspberry Pi 4 with a 32 GB SD Card and wanted to use it as a NAS too and I was doing that using samba share but now I am almost out of storage on that SD card. So I want to use a 64 GB usb stick as the NAS storage. Now that’s where I need help, with how to use this add-on like how do I mount the usb, basically I want the instructions.

Thanks

Hi!

I’m having problems with the public/private key. I have generated them but I still get:

Warning: Permanently added ‘[192.168.1.4]:22222’ (ECDSA) to the list of known hosts.
Load key “/root/.ssh/id_rsa”: invalid format
[email protected]: Permission denied (publickey).

Could you please detail the steps to generate, convert to OpenSSH, format in secrets.yaml, format in CONFIG USB pendrive and sambanas configuration? I have tried severals of combinations but I’m not able to make it work :frowning: :frowning:

I have also tried @shenanigan steps converting the private key to OpenSSH format but still no luck.

Please, a step by step guide will be VERY appreciated!!

Thanks!

Could anyone help me with this, please?

Thanks!

Hello, how does one config the “medialibrary” option? I don’t know where i’m suppost to get the “ssh_private_key” from