autofs with removables
Removable devices
auto.master
/media/automatic /etc/autofs/auto.media --timeout=5
Check /dev/disk/by-* and append to your auto.media by UUID (or label if you wish)
element -fstype=auto,async,nodev,nosuid,umask=000 :/dev/disk/by-uuid/442462FA2462EDFC
Append line to /etc/nsswitch.conf
automount: files
mount|grep element| sed .... (to be continued)
in conky :)
${if_mounted /media/automatic/element}Element :: $else${endif}
Stopped working (2014.Aug)
Debug:
stop the daemon
# systemctl restart autofs
run in non daemeon verbose mode
# automount -vdf
Problem: autofs appends -s option (Tolerate sloppy mount options) which is not supported by the ntfs-3g, hence each time autofs calls mount it fails
Workaround: didn't fixi it, instead I've decided to manually mount it and unmount it
alias element_mount="sudo mount -t ntfs-3g -o umask=000 /dev/disk/by-uuid/442462FA2462EDFC /media/element"
Workaround2: http://archlinuxarm.org/forum/viewtopic.php?f=53&t=7673
No comments:
Post a Comment