D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-320 => Topic started by: heliotrope on August 05, 2011, 09:16:51 AM

Title: Mounting/unmounting usb drive for security reasons?
Post by: heliotrope 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!
Title: Re: Mounting/unmounting usb drive for security reasons?
Post by: ivan on August 05, 2011, 09:40:14 AM
Ask that over on the other site as well - you should get answers there.
Title: Re: Mounting/unmounting usb drive for security reasons?
Post by: heliotrope on August 05, 2011, 09:50:09 AM
Again, trollpatrol here.  Stop giving me useless information here, and go troll somewhere else.
Title: Re: Mounting/unmounting usb drive for security reasons?
Post by: threepwood 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)
Title: Re: Mounting/unmounting usb drive for security reasons?
Post by: heliotrope on August 05, 2011, 11:35:19 AM
Seems like a good way to do it.  Thanks!