Home Assistant addon : FileBrowser

Cool, thanks!

One final question. I’m struggling to find a way of how I’ll be able to find that mounted drive to make Immich backups. Your docs mention that HA cannot access that mounted drive, so I don’t think I can use HA or Google Drive backups…

I feel stuck with this.

I have 2 hdd and have put a script in my script injector (see my GitHub wiki) to copy from once to the other upon addon start. Then I restart the addon with an automation every night, which triggers the backup

There is probably an easier way but this works

That’s a bit too complex for me.

I have been looking for an alternative and I have made some progress. Sharing in case it helps anyone else.

Instead of using the option to mount localdisks (which makes the drive only accessible to the single add-on), I have found another add-on called Samba NAS2, which is an alternative Samba add-on to the official. This one is able to mount a USB drive, AND share it over Samba quite easily (and without crazy udev methods). This makes it accessible to any add-on.

I personally made it accessible inside the “Share” folder as well.

So then I was able to use Immich just setting the data_location as /share/immich2, without doing using your localdisks option at all.

It launched and worked just fine.

Only thing left is to find a way of making a backup of that drive. HA backups still don’t pick it up. Last resort would be doing the backups over SMB, but I’m still not done trying.

Edit: The solution to make the backup is Rclone Backup.

1 Like

@alexbelgium I’m not sure if you can help with this or it’s Immich territory already.

As mentioned in my prev post:

I was using Immich with its data folder in an external USB drive.

I mounted this drive using the add-on Samba NAS2. This one mounted the volume in /mnt/4tb/ with a virtual hook (no clue what’s the right name) and then shared it as network storage too.

I was using Immich with this data route: /media/4tb/immich/.

Samba NAS2 add-on was a bit unreliable and sometimes it crashed, breaking the setup. So I searched for a different way of mounting the USB drive directly. This was via udev rule.

Now the drive (untouched), same label, same files, is mounted directly on /media/4tb/. Exactly the same.

I started Immich back again, and I got this log.

It seems it’s able to find the right folder, but then it tries to set permissions and it can’t.

I was asking AI for help to review the permissions, and ended up trying

chmod o+w /mnt/data/supervisor/media/4tb/immich

But right after doing that I checked and Immich had actually started some time earlier on its own. So I reverted that permission change.

The thing is the add-on struggles with that permission line on every fresh start. It gets stuck there for a long while. It doesn’t make a diff if I set permissions o+w or o-w (original). The same happens. And it wasn’t happening before when mounted with Samba NAS.

Tbh it seems inconsistent. In a couple of starts, it went through just fine. But then just a restart, and it gets stuck there again.

Do you know what is the add-on expecting or trying to do there? And how can I fix it?

If this is Immich territory, let me know and I’ll ask them directly. But I thought maybe it was the add-on initializing.

Many thanks!

Edit: I couldn’t find a cause, so I ended up reinstalling Immich and the db and starting from scratch, deleting all its data folders. Now it seems to work well. I just hope it doesn’t happen again once I’ve set up my full library properly.

Edit 2: This was fixed here.

Hi, I have a filebrowser installed in HA but I can only use 11.6 GB of my 2 TB?
fromat is ext 4

Sorry to replay to an old thread…hopefully you’ll see this! I’m looking everywhere for a “configuration” tab, but I can’t find one, and editing the config yaml doesn’t seem to mount the drives.

Aaaaand, nevermind. For anyone else looking for it, the configuration tab is in settings - add-ons - filebrowser (it’s not in the add-on’s UI).