Skip to content

Instantly share code, notes, and snippets.

View SirGoodenough's full-sized avatar
🏠
Working from home

James Chaloupka SirGoodenough

🏠
Working from home
View GitHub Profile
@SirGoodenough
SirGoodenough / 80-mount-usb-to-media-by-label.rules
Last active June 20, 2023 05:55 — forked from eklex/80-mount-usb-to-media-by-label.rules
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
@SirGoodenough
SirGoodenough / 81-mount-sata-to-media-by-label-music.rules
Last active June 5, 2023 04:10 — forked from Deckoz2302/81-mount-sata-to-media-by-label.rules
udev rule for Home Assistant OS (hassio) to mount internal drives into the Supervisor Media directory
#
# udev rule
# Mount internal drive to the media directory using the partition name as mount point
#
# Description:
# Created for Home Assistant OS, this rule mounts an internal drive (SATA/NVME)
# into the Hassio media directory (/mnt/data/supervisor/media).
# When a internal 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 following