Hey guys,
if I unplug and replug my sticks in DietPi, they don’t show up in Kodi anymore. I have to reboot my Pi to make them visible again. Plus if I use a new stick, I initially have to mount them in the dietpi-launcher and assign a name to it. Is there a way to just automount whatever I plug in ? It was possible in LibreELEC.
DietPi is a great OS, using it every day, thanks a lot for you work!
What kodi version you are trying to load? Krypton or Leia?
I don’t think it has something to do with it, but I’m using the almost up-to-date Leia 18.4.
probably you would need something like this request on GitHub
Even though this is an old thread, it is still open, so I’m adding my findings. I faced the same issue with no automatic mounting of USB devices on Kodi 20 running on 9.7. While I mainly use a NAS, it would be a hassle to manually mount/unmount USB drives when I would occasionally use them.
After finding several outdated solutions that didn’t work or couldn’t even be installed anymore (like usbmount), I found the information that PCManFM is able to handle this. Just needs the following:
apt install udisks2 gvfs
I initially tested it on LXDE, where USB drives mounted automatically with a PCManFM popup and also appeared in Kodi. However, it turned out that neither PCManFM nor a desktop environment is needed. The drives now mount automatically, even in terminal or Kodi without a desktop installed, and can be safely detached from Kodi’s context menu before removing.