Eject USB Disk After Backup

If your question pertains to using an external HDDs or even the USB Copy feature, post it here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: for any compatibility issues, please contact from the Synology technical support team:
https://myds.synology.com/support/suppo ... p?lang=enu

Eject USB Disk After Backup

Postby zimbonz » Thu Feb 19, 2009 2:37 am

Hi All,
I am new to Synology products, and had recently used ReadyNas devices for network backup. I can safely say that your product, is in all ways far superior and I only wish I had heard of it sooner!

Anyway, I have DS207+ that I have just commissioned for a client. I have setup a local backup schedule, to run every day, to backup the contents of my "Backup" folder - to the external USB disk. I am using Maxtor OneTouch4 Mini 250Gb drives.

My question is: How important is it, for the USB disk to be "ejected" from the the web console, prior to the disk being physically disconnected? I have a basic Onsite-Offsite local backup rotation schedule, so two disks are rotated every day.
I am an offsite consultant, so I am not at the site everyday to perform the "Eject" function, the responsibilty of replacing the disks would fall onto an employee at the site. I would rather not give this employee access to the Web Console, so that they could perform the Eject function themselves, because they will undoubtedly break something in there.
If it is crucial for the USB disks to be "Ejected" prior to them being disconnected, is there anyway that the backup software could automate this task, as something to run, once the backup has finished?
I would sincerely appreciate any thoughts on this.

Regards,
ZM
zimbonz
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Feb 19, 2009 2:16 am

Re: Eject USB Disk After Backup

Postby HarryPotter » Thu Feb 19, 2009 8:37 pm

I am also interested in the answer to this question.

I use a timer switch to power on the usb disk a few minutes before the scheduled backup and to power it off an hour later.

Until now I have no issues with this procedure, but I fear a bit too that this will dammage the external HDD one day.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS713+ / DSM 5.0-4458-1 / 2 x HD204UI (RAID0) / LMS 7.7.3-032
DS712+ / DSM 5.0-4458-1 / 2 x HDS721010KLA330 (RAID0)
DS110+ / DSM 5.0-4458-1 / HD154UI
DS408 / DSM 4.0 2228 / 2 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1637 / ST31000340AS + WD5000KS

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 13920
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Eject USB Disk After Backup

Postby Franklin » Thu Feb 19, 2009 8:44 pm

Greetings zimbonz

Thanks for your comment and feedback about Synology products, and welcome to the community. :-)

About your questions

1. The risk of removing the USB HDD from the Synology system without ejecting it is the same risk as removing USB HDD from your Windows/Mac computer without ejecting it. You have a small risk of data loss because some of the data is stuck in the RAM or Cache of the HDD - properly ejecting the drive will flush this data to the HDD. As such, it's recommended to eject the drive from the WebGUI to ensure that all data has been flushed from the system.

Suggestions
1. You could conduct port forwarding of the Synology system, and therefore manage the system remotely from any Web-capable computer
2. No, the Synology system will not eject the USB/eSATA drive after conducting a backup, as the USB/eSATA drive can be used for other storage purposes (after 722 and above)
2a. In theory, you could create your own Linux Script to eject the drive on a certain time period, however you will have to consult with The Underground for further information. However, the problem with this is that if a backup is taking longer than usual, and the drive is ejected, the backup will fail
3. You could use Network Backup with a DS108j located off site - and data from the DS207+ can be sent through the internet to the DS108j for backup purposes. In firmware 803 and above, you can even enable the incremental option, where data deleted on the source will not be deleted at the destination.


Hope this clarifies things for you, have a good day.
**Franklin is not available**
**Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!**
Library ~ SynologyWiki ~ Synology FAQ ~ Compatibility Lists
Forum Links ~ Forum Policy ~ 3rd-party forums ~ Help us help you ~ Posting Images
Demo Links ~ DSM GUI ~ Photo Station
Downloads ~ Firmware Downloads ~ Beta Program
Support ~ Support Form ~ Submit Kernel ~ Synology eNews
User avatar
Franklin
Synology Inc
Synology Inc
 
Posts: 6649
Joined: Sat Oct 14, 2006 11:33 pm
Location: Washington, USA

Re: Eject USB Disk After Backup

Postby jekyll » Sat Feb 28, 2009 5:08 am

Hi all, Could it not be intergrated into the final version of the beta as it's only a script and a few people are interested?
i ask because a few syno customers have hibernation problems regarding USB devices, and since some of us would only use the device for backup & not storage we would gain greater life from our drives.
User avatar
jekyll
Wizard
Wizard
 
Posts: 1829
Joined: Thu Feb 28, 2008 7:55 pm
Location: Low Burnham, Epworth - UK

Re: Eject USB Disk After Backup

Postby chrischambers » Sat Mar 06, 2010 3:58 pm

frankiln, a question then using the WEBCon, is they a re Lunix command line like "poweroff" that can used to unmouth and USB HD, then this way all we need to do is create a on like command to log onto the DS and call the command. ?
Regards

Chris Chambers

ISP - NTL Boardboard - 60mb
Router - NTL's Own Brand
NAS - DS110j : FirmWare DSM 5.0-4458
HardDrive 1 X Western digital WD10EADS-00L5B1 1TB

External USB Drive - WD My Book Essential 3TB External Hard Driver (USB 3.0/2.0) - Data
External USB Drive - Seagate 4TB External Hard Driver (USB 3.0/2.0) - Media - Formatted as EXT4.


No longer Connected
External USB Drive - Western Digital IDE 500G in Max Value USB 2.0 Combo Hard Drive Enclosure
chrischambers
Sharp
Sharp
 
Posts: 164
Joined: Thu Dec 24, 2009 4:09 pm
Location: Hampshre, UK

Re: Eject USB Disk After Backup

Postby HarryPotter » Sat Mar 06, 2010 4:28 pm

To eject the usb drive, I added the folowing commands to /etc/crontab:

Code: Select all
sync; /usr/syno/bin/synousbdisk -umount sdk1; >/tmp/usbtab
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS713+ / DSM 5.0-4458-1 / 2 x HD204UI (RAID0) / LMS 7.7.3-032
DS712+ / DSM 5.0-4458-1 / 2 x HDS721010KLA330 (RAID0)
DS110+ / DSM 5.0-4458-1 / HD154UI
DS408 / DSM 4.0 2228 / 2 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1637 / ST31000340AS + WD5000KS

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 13920
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Eject USB Disk After Backup

Postby B4sH » Wed Dec 29, 2010 10:04 am

HarryPotter wrote:To eject the usb drive, I added the folowing commands to /etc/crontab:

Code: Select all
sync; /usr/syno/bin/synousbdisk -umount sdk1; >/tmp/usbtab


Hi all,

First msg, cause im new in the synology community, but very pleased to use the products :)

I've just bought a Synology DS211 and ive got the same problem as said in the topic.
I would like to automatically eject the USB HD when the backup is complete. At least, i would like to perform this 1 time per day.

Does the command line "sync; /usr/syno/bin/synousbdisk -umount sdk1; >/tmp/usbtab " work to unmount the USB drive ?
My DSM version is: DSM 3.0-1354

Thank you for ur answer, and sry for having up this topic :)
B4sH
I'm New!
I'm New!
 
Posts: 3
Joined: Wed Dec 29, 2010 9:56 am

Re: Eject USB Disk After Backup

Postby HarryPotter » Wed Dec 29, 2010 11:22 am

Yes and no :D

sync:
makes sure that all pending write operations are finished

/usr/syno/bin/synousbdisk -umount sdk1:
does just unmount the HD for the file system

>/tmp/usbtab:
removes the disk from the system (ejects it)
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS713+ / DSM 5.0-4458-1 / 2 x HD204UI (RAID0) / LMS 7.7.3-032
DS712+ / DSM 5.0-4458-1 / 2 x HDS721010KLA330 (RAID0)
DS110+ / DSM 5.0-4458-1 / HD154UI
DS408 / DSM 4.0 2228 / 2 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1637 / ST31000340AS + WD5000KS

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 13920
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Eject USB Disk After Backup

Postby B4sH » Wed Dec 29, 2010 11:30 am

Ok ok, ill try it and come back to you for the feedbacks.

Thx a lot for ur quickly answer HarryPotter :)

B4sH
B4sH
I'm New!
I'm New!
 
Posts: 3
Joined: Wed Dec 29, 2010 9:56 am

Re: Eject USB Disk After Backup

Postby 3rdparty » Wed Jul 20, 2011 6:53 pm

Is there any update on a way to auto-unmount an external USB drive after a backup is completed?
DS211j - DSM 5.0-4458
Volume1: Seagate ST2000DL003-9VT1 (backs up Volume 2 nightly)
Volume2: Western Digital WD40EFRX
3rdparty
Trainee
Trainee
 
Posts: 11
Joined: Wed Jul 06, 2011 10:05 pm

Re: Eject USB Disk After Backup

Postby HarryPotter » Fri Jul 22, 2011 6:53 pm

The commands I currently use in crontab is:

Code: Select all
sync; umount -f /dev/sdq1; echo 1 > /sys/block/sdq/device/delete


It seems to work, but I dont know if it is the best way to go.
*Please do not Private Message me for support questions; leave it on the forum so all members can learn. Thanks!*

DS713+ / DSM 5.0-4458-1 / 2 x HD204UI (RAID0) / LMS 7.7.3-032
DS712+ / DSM 5.0-4458-1 / 2 x HDS721010KLA330 (RAID0)
DS110+ / DSM 5.0-4458-1 / HD154UI
DS408 / DSM 4.0 2228 / 2 x ST31000340AS (RAID0) + 1 x HDS721010KLA330
DS207+ / DSM 3.1.1637 / ST31000340AS + WD5000KS

2 Squeezebox 3 + Boom
Rapsody N35

APC Smart UPS SUA750i
User avatar
HarryPotter
Honorary Moderator
Honorary Moderator
 
Posts: 13920
Joined: Mon Oct 23, 2006 12:48 pm
Location: Switzerland

Re: Eject USB Disk After Backup

Postby patters » Tue Sep 20, 2011 9:10 am

I have searched but found nothing on how to eject a USB drive from inside DSM. I use NTFS disks and they are mounted to /usbshare1. However when I select that in File Browser and click on the mount button the unmount option is greyed out so I have no option but to just pull them out of the USB port. Am I missing something obvious or are NTFS partitions not mounted in the same way (because they use the NTFS-3G driver or something)?
For my packages (Java, Serviio, CrashPlan, CrashPlan PRO, CrashPlan PROe, Minecraft, Craftbukkit, OpenRemote, and Bliss), add my repo URL to Package Center: http://packages.pcloadletter.co.uk
patters
Experienced
Experienced
 
Posts: 112
Joined: Mon Feb 07, 2011 3:41 am

Re: Eject USB Disk After Backup

Postby henkg » Tue Sep 20, 2011 10:15 am

Eject USB: DSM | Control Panel | External devices. Select disk, then use subtab Eject.
DS412+. 4x WD40EFRX, RAID5. DSM 5.0-4458 update 2
DS210j. 2x HD204UI, RAID1. DSM 5.0-4458 update 2
Windows 8.1 Pro. Router Netgear WNDR3700. Switch TP-Link TL-SG1008D. AcRyan Mini v1. UPS APC BE700G-GR. Ipcam Edimax IC-3010.
henkg
Seasoned
Seasoned
 
Posts: 510
Joined: Sat Sep 25, 2010 8:16 am
Location: Netherlands

Re: Eject USB Disk After Backup

Postby patters » Tue Sep 20, 2011 4:35 pm

Ah thanks for that henkg - I'd never noticed! I had assumed it would be in the File Browser window itself.
For my packages (Java, Serviio, CrashPlan, CrashPlan PRO, CrashPlan PROe, Minecraft, Craftbukkit, OpenRemote, and Bliss), add my repo URL to Package Center: http://packages.pcloadletter.co.uk
patters
Experienced
Experienced
 
Posts: 112
Joined: Mon Feb 07, 2011 3:41 am

Re: Eject USB Disk After Backup

Postby AlanF » Thu Jan 24, 2013 1:39 pm

Hi we are a Backup Company with hundreds of Synology NAS units, we use the USB share for off site copies. We rotate these weekly. We never eject HDD's (as we don't want users to have control panel access)and I've never had a problem. If the activity LED is off its usually fairly safe to unplug.

One solution is DSM4.2 Beta now supports a scheduler that can execute user defined scripts, so you could eject a disk at a specific time if need be. You have to power off to remount the device, rebooting doesn't seem to help. I guess there is a Re-mount command as well (not sure of the format).

Remember to set R/W access (permissions) to the USB share or you will definitely have problems with local backups failing (big files)or when using more than one USB HDD. The Local backup HDD grows dramatically in size if you used DR3 Restore Points as the Symbolic links can't be supported on a different volume.

Have fun
Alan
AlanF
Beginner
Beginner
 
Posts: 21
Joined: Sun Aug 29, 2010 10:44 am
Location: Cape Town

Next

Return to External Harddrives & USB Flash Drives

Who is online

Users browsing this forum: No registered users and 2 guests