Fedora, Kodi and USB automount

My goal was to set minimal Kodi installation on top of Fedora 25 with bypassing desktop environment GNOME, LXDE or so on. USB automount is needed functionality for Kodi as standalone to be a complete media centre. This post describes how to set automount without any help from desktop environment.

Right to the point, the solution is udevil – a command line Linux program which mounts and unmounts removable devices:


Unfortunately, udevil isn’t listed with dnf package manager for Fedora and can’t be installed with “dnf install” out of the box. Luckily, google search pointed me to the following link:

udevil-0.4.4-5.1.x86_64.rpm (Fedora RPM package on software.opensuse.org)

Page offers RPM versions for Fedora 24 and Fedora 25. Just download RPM directly and install (it doesn’t require any dependencies). The last step is to enable and start devmon with systemctl command:

root> systemctl enable devmon
root> systemctl start devmon

udevil is a small package that perfectly fits for automount.

Special thanks to udevil author IgnorantGuru (he is currently in hiatus :)

2 thoughts on “Fedora, Kodi and USB automount”

  1. Hey, just wanted to note that there is now a COPR repo for udevil. So instead of downloading the OpenSUSE RPM, Fedora 25/26 users have the option to install udevil with:

    sudo dnf copr enable username/udevil
    sudo dnf install udevil

    (And they’ll have to confirm import of the repo’s package-signing key, when DNF queries after the install process starts.)

  2. Oh, also, the COPR packaging of udevil is slightly different, the systemd unit is set up as a template unit, and intended to be started instanced for a specific mount-owning user. So, instead of the systemctl commands above, it should be invoked as:

    sudo systemctl enable devmon@
    sudo systemctl start devmon@

    Replacing with the owner that udevil should assign to mounted drives.

Leave a Comment