Skip to content

Instantly share code, notes, and snippets.

View Deckoz2302's full-sized avatar

Brad Williams Deckoz2302

  • Cisco
  • United States
View GitHub Profile
@Deckoz2302
Deckoz2302 / 81-mount-sata-to-media-by-label.rules
Last active May 30, 2025 18:46 — forked from eklex/80-mount-usb-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