• February 23, 2025, 01:39:45 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Mounting/unmounting usb drive for security reasons?  (Read 3933 times)

heliotrope

  • Level 1 Member
  • *
  • Posts: 9
Mounting/unmounting usb drive for security reasons?
« on: August 05, 2011, 09:16:51 AM »

Hello again-
I'm still struggling with the stupid email thing.  However, I've got another idea.  Is it possible to use a crontab script to mount and unmount the USB drive after rsync?  The USB drive has anonymous read/write permissions by default (barf) so I don't want to keep it mounted.  I know (I think) how to mount/unmount, but how do I find out if rsync is done/successful?
Thanks!
Logged

ivan

  • Level 8 Member
  • ***
  • Posts: 1480
Re: Mounting/unmounting usb drive for security reasons?
« Reply #1 on: August 05, 2011, 09:40:14 AM »

Ask that over on the other site as well - you should get answers there.
Logged

heliotrope

  • Level 1 Member
  • *
  • Posts: 9
Re: Mounting/unmounting usb drive for security reasons?
« Reply #2 on: August 05, 2011, 09:50:09 AM »

Again, trollpatrol here.  Stop giving me useless information here, and go troll somewhere else.
Logged

threepwood

  • Level 2 Member
  • **
  • Posts: 27
Re: Mounting/unmounting usb drive for security reasons?
« Reply #3 on: August 05, 2011, 10:09:29 AM »

I guess you could parse the output of rsync for common error messages.
But I don't see why you shouldn't unmount if the process was not successful. I'd just do
Code: [Select]
rsync blah blah; umount /mnt/USB/HD_c1/
( /mnt/USB/HD_c1 being where the USB drive is mounted on my DNS-320)
Logged

heliotrope

  • Level 1 Member
  • *
  • Posts: 9
Re: Mounting/unmounting usb drive for security reasons?
« Reply #4 on: August 05, 2011, 11:35:19 AM »

Seems like a good way to do it.  Thanks!
Logged