Re: auto mount and unmount using udev rules

2019-05-17 Thread Danishka Navin
Hi Seth, On Thu, May 16, 2019 at 3:23 AM Seth Kenlon wrote: > Here's what I use for my automated backup script (see > https://gitlab.com/slackermedia/attachup for context): > > If you adapt this, you'll need to update the path (I use /media), > you'll need to update the UUID, and you'll probabl

Re: auto mount and unmount using udev rules

2019-05-15 Thread Seth Kenlon
Here's what I use for my automated backup script (see https://gitlab.com/slackermedia/attachup for context): If you adapt this, you'll need to update the path (I use /media), you'll need to update the UUID, and you'll probably need to verify that your drive has a label, because this rule uses the

auto mount and unmount using udev rules

2019-05-15 Thread Danishka Navin
Hi, I am trying to mount a USB drive to given symlink and mount it to a given mount point. Mount is working but when the device removed, I can still see the mount cat /etc/udev/rules.d/81-hnt-usb-rule.rules ACTION=="add", KERNEL=="sd?1", SUBSYSTEM=="block", ENV{ID_BUS}=="usb", \ SYMLINK+="hant