ASSUME: your image data files are being written into "/data/.../my_data/01Jul2017" ------------------------------------ Summary: 1) Plug into your hard drive the USB cable labeled "crush17", 2) Open a teminal window on graphics3, type "rsh crush17" 3) type "df -h" to see if it mounted 4) If more than 1 partition, pick one you want to use, e.g. /media/usb1 5) Issue the "rsync_usb.com", e.g.: rsync_usb.com /data/.../my_data/01Jul2017 /media/usb1/ALS_BL831_010717 6) IF you want to copy your processed files in /home (NOT! in /data/) then e.g. rsync_usb.com /home/.../my_data/01Jul2017/ /media/usb1/ALS_BL831_010717/processed 7) After "rsync_usb.com" has copied all the files " C" 8) BEFORE unplugging the drive, type "df -h" and make sure /media/usb1 does NOT show up (Another way to UNMOUNT /media/usb1 on crush17 : "sudo umount /media/usb1' ) 9) Unplug your drive from the crush17 USB cable. &&&&&& DETAILS &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& 1) Plug into your hard drive the USB cable labeled "crush17", The cable is to right of the data collection work station and a bit of Pink tape at the end.) Your drive should mount automatically on the crush17 computer, which is in the rack above you. 2) Open a teminal window on graphics3 (in another "work space", if you like) and type "rsh crush17" to open a Remote SHell on the crush17 computer (IF the command failed, (you can "up arrow" to) try again. 3) Once on crush17: if all went well your drive will have already mounted as "/media/usb" if your drive has 2 partitions there will also be "/media/usb1" if your drive has 3 partitions there will also be "/media/usb2" type "df -h" to see if it mounted ("df" reports file system disk space usage: size and availability, the "-h" means "human" use readable sizes: M,G,T for Mega,Giga,Tera Bytes) It might take a minute or so to mount, ... re-issue command until you see it listed. If it doesn't mount something is wrong, contact beamline support at x2249. The "df -h" command will show you the size and availability of your drive partition(s). 4) If more than 1 partition, decide which you want to use, in this example we'll user /media/usb1 The script should have already created a directory in /media/usb1/ named as DDmmmYYYY, e.g. /media/usb1/01Jul2017 Type "ls /media/usb1" to see the files and directories (NOT NECESSARY, but it's nice to have a look) you don't have to use that subdirectory, you can remove it, but NOT "/media/usb1" that has to stay! 5) To start backing up your image data, decide where you want to put it on your usb drive. For example to copy all your data in /data/.../my_data/01Jul2017 into /media/usb1/ALS_BL831_010717 issue this command: rsync_usb.com /data/.../my_data/01Jul2017 /media/usb1/ALS_BL831_010717 Note: It is not necessary to "mkdir /media/usb1/ALS_BL831_010717 " it will be created by rsync_usb.com if it doesn't exist. 6) if you want to backup/copy your Processed data (which should be in /home NOT /data !) into that directory you could do this rsync_usb.com /home/.../my_data/01Jul2017/ /media/usb1/ALS_BL831_010717/processed ... again the "/processed" directory will be created by the script. 7) After "rsync_usb.com" has copied all the files it will wait for more files to appear, checking every 10 seconds. During the wait period, if you are finished collecting and processing, you can press " C" to quit the script. The disk will automatically unmount after an additional 10 seconds. If you do NOT want the disk to umount press " C" again. 8) BEFORE unplugging the drive, type "df -h" and make sure /media/usb1 does NOT show up 9) Unplug your drive from the crush17 USB cable ------------------------------------ EXAMPLE output from the "df -h" command on crush17 WITH a Portable Drive already mounted: mcfuser@graphics3: rsh crush17 ;###(If rsh fails, just "up arrow" and try it again.) mcfuser@crush17: df -h Filesystem Size Used Avail Use% Mounted on /dev/sda3 9.5G 5.8G 3.3G 64% / tmpfs 16G 4.2G 12G 27% /dev/shm /dev/sda1 477M 159M 293M 36% /boot /dev/sda5 1.8T 4.4G 1.8T 1% /local dataserver4:/data 161T 54T 107T 34% /data . . . homeserver2:/home 21T 17T 3.9T 81% /home /dev/sdb1 500G 250G 230G 60% /media/usb /dev/sdb2 3.2T 260M 3.2T 1% /media/usb1 ----------------------------------------------------------------------------------- OTHER WAY to UNmount /media/usb1 on crush17 To un-mount the drive safely at any time, you will need to be on crush17 NOT have "cd'd into a directory in /media/usb and NOT have any jobs running which are accessing /media/usb Then you can just type this command to unmount the drive: "sudo umount /media/usb1" When the command prompt comes back, issue the command again to make sure it is no longer mounted and/or by checking with the "df -h" command. If your drive is NOT listed then it's safe to pull the plug.