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
*****
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
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
Hi @LeonardoCT!
I can help you with that: you can generate the public and private key with puttygen if you are using windows or ssh-keygen if you are a linux user. The private key must be in sambanas configuration and the public key should be used in this addon: [add-on] HassOS SSH port 22222 Configurator - Home Assistant OS - Home Assistant Community (home-assistant.io).
That is the theory but I can’t make it work
can someone give an example of configuration I am lost, I would like to mount two folders of my nas in the media folder ?
Sorry I can’t give you any solution. I’m stuck with the configuration too. I think a detailed tutorial from someone that has it working would be soooooooooooo useful…
Anyone, please!
Thank you so much for this addon! Mounted my 6TB external HDD (re-formated from NTFS to EXT4) today, works like a charm.
I use it as backup & data server within my home network and also access the drive via VPN from my phone.
Only thing I noticed is that the disk will never spin down, it’s running 24/7 even without any read/write actions. Is this a general problem with disks mounted under Home Assistant Operating System? I remember that I had some issues back when I had Home Assistant running on an Ubuntu installation too, had to do some tricks to get it to spin down on idle.
It does not depend on the addon but on the host system and the HDD case.
There are external HDDs that accept spindown commands others instead of using USB gate suspend.
In the first case the powersave works independently from the Host system (RPi etc) in the second case it depends on the ability of the hw to turn off the unused USB outputs.