[CentOS] how to automount usb drive

Thu Mar 25 23:52:36 UTC 2010
Jobst Schmalenbach <jobst at barrett.com.au>

As for the mouting (and unmouting) you're backup script needs to 
make sure the drive is UN-mounted at the end, e.g.

# flush the buffers
sync
# unmount
umount /mnt/usb



On Thu, Mar 25, 2010 at 03:52:29PM -0700, Bazooka Joe (fastfish at gmail.com) wrote:
> I have a server with no desktop - just cli that i need to have a user
> plug in a usb hd and would like it to automount to a consistent
> directory so I can schedule a backup.  The user can rotate the usb
> drives and it all just works.
> 
> Any ideas how automate so that say /media/backup mounts to any usb
> harddrive and unmounts cleanly?
> 
> -thx
> bazooka
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

-- 
A computer without Microsoft is like chocolate cake without ketchup!

  | |0| |   Jobst Schmalenbach, jobst at barrett.com.au, General Manager
  | | |0|   Barrett Consulting Group P/L & The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia