Where do I find my external hdd? Hassio knows it is there but

Hi! I just realized that I did not post the reply last time :frowning: sorry…Here you go!

Hi! First of all wow, this is a very impressive project!
Judging from the description I would assume that you know the basics of Linux and Hass.IO as well and you would also be able to use simple git operations. Let me know if you need details in these topics and I will explain more.

So the drive is accessed by the Linux system running on your pi, that is why the drive spins up. Hass.IO add-ons can access the drives if they are explicitly asking for it. This is the good news part.
The bad news are that most add-ons will not do this because most people are probably not using external hard drives with their home assistant installs.

So the way you have to handle this is the following:

  1. fork the samba add-on into your GitHub account: https://github.com/home-assistant/hassio-addons/tree/master/samba
  2. change the config.json file of your fork and add your HDD to the devices section: “devices”: ["/dev/sda1:/dev/sda1:rwm"] (for an example look here:
    https://github.com/bboti86/addon-torrdlna/blob/master/torrdlna/config.json)
  3. add the privileged section as well from the example above, the hass.io system will need this to access the drive
  4. create the /share/mnt directory and mount the filesystem for this we will use

Putting it all together I realized that this is quite complicated. Let me know if you understand what I’ve wrote.
I actually started to create the fork I’ve mentioned above but got quite busy :frowning:
I’ll try to work it out for you maybe in the near future however I can’t guarantee anytime soon. I’d suggest you to contact @frenck, who makes all these amazin community addons for hass.io, maybe he has something on his roadmap that supports accesing hard drives connected. Frenck, can you help us out here?

Thanks!
Botond

2 Likes