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

Restart HA.

I just restarted HA, and the whole System, the sensors are still there.
I can’t find the place, where I can delete them.

I think they were auto-discovered by MQTT.

Sensors are created with auto discovery in MQTT with persistent messages. ( as ha documentation )
For now to delete sensors you need do remove the messages from MQTT server, you can do it with any MQTT client.

I will investigate why the UI don’t allow the management and if is possible…

L.

Thanks for the information! :smiley:
I removed the zombie entities with MQTT-Explorer.

Hi, I am unable to start this succesfully and connect to it… the normal “samba share” works just fine.
am on rpi4, here’s my log… would appreciate if anyone had any idea!!

You need to disable Protected Mode, in the Info tab.

Thank you @KTibow
it is disabled tho.
I had the wrong log pasted, I changed it with the correct one now if you have any other idea.

You haven’t configured MQTT in Home Assistant.

thanks, will look into it!

Thanks for the great Addon. This is exactly what I was looking for :slight_smile:

One problem though - I’ve mounted a usb drive and everything works fine with locating and writing, but I don’t have delete rights. Any ideas here on how to change the access right?

Thanks

The rw rights allow also the delete. If you can’t delete but you can write the problem is not permission but other. I need some other information to understand.

  • what is the fs type of your drive? ( extfs4, ntfs… )
  • what do you use as client? ( macOS, window, linux … )
  • don’t work delete or move to trash or both?

L.

Thanks for the quick reply.
I’m using a micro sd via usb which is formatted to exFAT.
Windows is showing a generic error message while android is advanced enough to let me know it’s a permission issue.

I tried a simple delete and overwrite the file with a slightly modified version of itself.

I might also add that the default file-system shared “media” directory (or any of the other default dirs for that matter) do not exhibit the issue

Hi,
I’ve already been testing this addon for some days. And I have only one problem. When I mount the driver then this driver is mounted only few hours then it is unmounting. In this situation I always restart the addon and the driver is mounted again. it wouldn’t be a huge problem if it isn’t happened when we are watching a film via Plex.
Have you got any idea what is the problem?

If you plug it in to another PC, does the same issue happen?

The problem is the use of fuse type fs in a samba share. There are many documented issue on samba forum.
I suggest you to use a native Linux fs such as ext3/4 if the problem persists can be an hw issue.

Also if you are on rpi platform a low usb power capacity can explain. Try to change usb port or check rpi power.

I need to see the addon logs after the umount. The next time it’s append can you post the logs before the reboot?

Works like a charm with ext4. Many thanks :slight_smile:

1 Like

Here is the log

[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... 
[17:16:47] INFO: Protection Mode is false
[17:16:48] WARNING: MoreDisk option found!
[17:16:48] INFO: More Disks mounting.. ext_media
[17:16:48] INFO: Mount ext_media
[17:16:48] 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... 
[17:16:51] INFO: Hostname: homeassistant
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/private/passdb.tdb file.
Added user pz-ha.
[cont-init.d] samba.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[17:16:52] INFO: Starting the MQTT daemon for disks info...
[17:16:52] INFO: Starting the AVAHI daemon for homeassistant...
Server version: avahi 0.7; Host name: homeassistant.local
nmbd version 4.12.7 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.12.7 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
[17:16:52] INFO: Sending MQTT autodiscovery...
Established under name 'homeassistant'
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 172.17.0.1
*****
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 172.30.32.1
*****
*****
Samba name server HOMEASSISTANT is now a local master browser for workgroup WORKGROUP on subnet 192.168.0.143
*****
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded
Failed to fetch record!
pcap cache not loaded

Hi everyone,

How can I integrate my NAS folder into Hassio?
So that I can access it from the media browser.
For example music.image