I have been searching but haven’t found an answer on how to set up Home Assistant to share the hard drive that I just added.
I have added a hard drive to my Home Assistant installed on a Raspberry Pi 4. I added it through System → Storage. It is mounted as ext4. I want to be able to access it as an NFS drive from my desktop Linux system.
I have added an NFS share on Raspberry Pi (running Raspbian) before. I can set one up again using the hard drive I have. However, Home Assistant is running Linux so it should be very easy to do the same.
There is no supported way to connect a second drive directly. You need to consider one of the supported methods.
Mounting drives can VERY much break your system. If the drive mounted brings the backup size bigger than available, for instance, the HA drive will fill up and the system will crash. If you plug in a memory stick, for instance, with malware, that would cause all kinds of problems.
That is why this is not supported and if you do find a way to do it, you will be using an unsupported version of HAOS and you will be on your own when it breaks. It is absolutely not recommended behavior, however it is not impossible to do.
Plus if you really want a drive mounted, install core or another install method where you are in control of the OS.
It’s a problem with mounting location and where the backup looks for files to backup. Samba happens in an add-on. NFS happens in the actual path of the backup.