Skip to content

Instantly share code, notes, and snippets.

View hulkhaugen's full-sized avatar

hulkhaugen

View GitHub Profile
@eklex
eklex / 80-mount-usb-to-media-by-label.rules
Last active December 21, 2024 21:48
udev rule for Home Assistant OS (hassio) to mount USB drives into the Supervisor Media directory
#
# udev rule
# Mount USB drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts any USB drives
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a USB drive is connected to the board, the rule creates one directory
# per partition under the media directory. The newly created partition is named
# as the partition name. If the partition does not have a name, then the following