Date: Mon, 5 Feb 2018 11:00:27 -0700 From: Cerebus <kreme@kreme.com> To: freebsd-questions@freebsd.org Subject: Automount USB drive when connected Message-ID: <3BAACBF6-C4E0-44AA-AD5F-277D3C8267C0@kreme.com>
next in thread | raw e-mail | index | archive | help
I have a USB enclosure that I'd like to be able to walk up to the machine a= nd plug in and have a series of things happen: 1) Disk mounts in /mnt/backup (or wherever, the key is it mounts without int= ervention) 2) a backup script I specify runs when the disk successfully mounts 3) when complete /mnt/backup unmounts=20 I've got step 2 (mostly), and step 3 is trivial, but I can't get step 1 work= ing (To be clear, this disk would never be present at startup. Basically, walk i= n, plug in drive, let the backup run, unplug the drive, and leave. I want th= is to work without requiring anyone to login) --=20 ADVANCE TO THE REAR!=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3BAACBF6-C4E0-44AA-AD5F-277D3C8267C0>