consolidate into one file and add wd backup drive

This commit is contained in:
2025-07-11 11:59:02 -07:00
parent 6c336ec2b7
commit 43fe5e6304
3 changed files with 8 additions and 2 deletions

View File

@ -1 +0,0 @@
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[a-d][0-9]", ENV{ID_FS_UUID}=="386D-51FE", RUN+="/usr/bin/systemd-mount --automount=yes --no-block --collect /dev/%k /home/nik/usb/kindle"

8
udev/99-mount.rules Normal file
View File

@ -0,0 +1,8 @@
# mount discs with filesystems on them
ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr0", ENV{ID_CDROM_MEDIA}=="1", RUN+="/usr/bin/systemd-mount --automount=yes --no-block --collect --type iso9660 --options ro /dev/sr0 /home/nik/rom/"
# kindle storage (obsolete)
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[a-d][0-9]", ENV{ID_FS_UUID}=="386D-51FE", RUN+="/usr/bin/systemd-mount --automount=yes --no-block --collect /dev/%k /home/nik/usb/kindle/"
# mount WD backup drive
ACTION=="add", SUBSYSTEM=="block", KERNEL=="sd[a-d][0-9]", ENV{ID_FS_UUID}=="25252ea0-4836-44cf-bcbf-914da4a5ffa0", RUN+="/usr/bin/systemd-mount --automount=yes --no-block --collect /dev/%k /home/nik/usb/wd_backup/"

View File

@ -1 +0,0 @@
ACTION=="change", SUBSYSTEM=="block", KERNEL=="sr0", ENV{ID_CDROM_MEDIA}=="1", RUN+="/usr/bin/systemd-mount --automount=yes --no-block --collect --type iso9660 --options ro /dev/sr0 /home/nik/rom"