Auto-remount USB HDD to unprivileged LXC on hotplug without rebooting container

Martellus

New Member
Nov 1, 2025
1
0
1
Hi everyone,

I'm running Proxmox VE 9.0.11 on a mini PC. I have an unprivileged LXC container (Ubuntu 24.04) hosting Jellyfin for media streaming. The container has a USB external HDD (NTFS) passed through as a bind mount: host /mnt/media -> LXC /mnt/media with uid=1005,gid=1005 for proper perms.

Current setup:
fstab on host: UUID=XXXX /mnt/media ntfs-3g uid=1005,gid=1005,defaults 0 2
LXC config: mp0: /mnt/media,mp=/mnt/media
Mount works perfectly on host reboot (fstab handles it).
Mount also works on LXC reboot (bind refreshes).

The issue: On unplug/replug the USB HDD (hotplug), the LXC bind doesn't refresh – ls /mnt/media in the LXC shows empty until I reboot the LXC. Jellyfin loses access to the library until then.

Goal: Auto-remount on hotplug and refresh the bind in the running LXC without rebooting it. I'd rather keep unprivileged.
Has anyone solved USB HDD hotplug to unprivileged LXC without reboot?

Thanks for any pointers!