User Tools

Site Tools


makerbase-automount-files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
makerbase-automount-files [2024/02/18 11:02] – created tortemakerbase-automount-files [2025/01/21 12:33] (current) torte
Line 1: Line 1:
 +{{page>redirect#this_wiki_has_moved}}
 +https://torte71.github.io/InsideSovolKlipperScreen/makerbase-automount-files.html
 +{{page>redirect#section}}
 +----
 +
 ==== makerbase-automount.service files ==== ==== makerbase-automount.service files ====
  
Line 141: Line 146:
 fi fi
 </code> </code>
 +
 +=== /usr/lib/udev/rules.d/60-usbmount.rules ===
 +<code>
 +# KERNEL=="sd[a-z]", NAME="%k", SYMLINK+="%k", GROUP="users"
 +
 +# ACTION=="add", KERNEL=="sd[a-z][0-9]", SYMLINK+="%k", GROUP="users", NAME="%k"
 +
 +# ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mkdir -p /home/mks/gcode_files/%k"
 +
 +# ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/systemd-mount --no-block --collect /dev/%k /home/mks/gcode_files/%k"
 +
 +# ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/systemd-umount /home/mks/gcode_files/%k"
 +
 +# ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rm -rf /home/mks/gcode_files/%k"
 +
 +# mount the device when added
 +KERNEL=="sd[a-z]*", ACTION=="add",      RUN+="/usr/bin/systemctl --no-block restart makerbase-automount@%k.service"
 +
 +# clean up after device removal
 +KERNEL=="sd[a-z]*", ACTION=="remove",   RUN+="/usr/bin/systemctl --no-block restart makerbase-automount@%k.service"
 +</code>
 +
 +=== /usr/lib/udev/rules.d/99-makerbase-automount.rules ===
 +<code>
 +# none
 +</code>
 +
 +=== /etc/makerbase-automount.d/auto ===
 +<code>
 +# -*- sh -*-
 +
 +# Options to use for auto-mounting generic filesystems
 +AUTOMOUNT_OPTS='users'
 +
 +# Type to use for auto-mounting generic filesystems
 +AUTOMOUNT_TYPE=auto
 +</code>
 +
 +=== /etc/makerbase-automount.d/hfsplus ===
 +<code>
 +# -*- sh -*-
 +
 +# Options to use for auto-mounting devices detected with an hfsplus filesystem
 +AUTOMOUNT_OPTS=ro,users,relatime
 +</code>
 +
 +=== /etc/makerbase-automount.d/ntfs ===
 +<code>
 +# -*- sh -*-
 +
 +# Mount options to use for auto-mounting NTFS drives
 +AUTOMOUNT_OPTS='errors=remount-ro,relatime,utf8,users,flush'
 +
 +# If NTFS-3G is installed, use it as the mount type
 +hash ntfs-3g && AUTOMOUNT_TYPE="ntfs-3g"
 +</code>
 +
 +=== /etc/makerbase-automount.d/vfat ===
 +<code>
 +# -*- sh -*-
 +
 +# Options to use for auto-mounting devices detected with a vfat filesystem
 +AUTOMOUNT_OPTS='errors=remount-ro,relatime,utf8,users,flush,gid=100,dmask=000,fmask=111'
 +</code>
 +
  
makerbase-automount-files.1708250557.txt.gz · Last modified: 2024/02/18 11:02 by torte