416-621-9348 cgreaves@chrisgreaves.com Visit www.ChrisGreaves.com for this image! Chris_GEDC1894_Head (Small).JPG
Home Services Products

Encryption And Off-site Backup Storage (Home) ; Overview ; The Problem ; The Essence Of The Solution ; How Long Does It Take To Do A Backup? ; Assumptions ; Breakdown Of Tasks ; The Stand-Alone Solution ; The Networked Solution ; Let’s Get Started ; Mounting The Backup Drive ; Mounting An Encrypted Drive ; Waiting For The Backup Drive ; Processing Each Local Drive ; RoboCopy New And Later Files ; RoboCopy Parameter Files ; Append Session Details To A Log File ; Shutting Down the Computer ; Review For Local Systems ; Putting Together The Local Backup System ; SUBSTituting A Drive For A Folder ; Assembling The Batch File ; ( TITLE commands ); Running The Backup Batch File ; Examining Our Results ; Waiting For A Set Of Drives ; Issue the Backup Command To A Set Of Drives ; Modifying The Driving Batch File ; What About The Log File? ; The Upgraded Set Of Batch Files ; Encryption of backup data ; What Is Involved In Encrypting A Backup Device? ; ( Advice On Passwords ); What Is Involved In Mounting An Encrypted Device? ; User Mounted Or Automated? ; Using A DOS Batch File To Facilitate Mounting ; Using A DOS Batch File To Facilitate Dismounts ; Making The External Drives Available Across The Network ; Mounting A Shared Drive For Sharing ; Installing On A Networked Computer ; Running On The Big Beige Box ; An Improved Method Of Waiting ; Shutdown Or Restart? ; At Long Last! A Working Version! ; The Backup.BAT file ; The Mount.BAT file ; The ProcessDrive.BAT file ; The Shutdown.BAT File ; The Encryption Process


Loading

Toronto and Mississauga, Friday, December 03, 2010 8:30 AM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.

Mounting An Encrypted Drive

If you are not using an encrypted drive (yet) you can skip this section and go immediately to )

Here is a very simple DOS batch file, Mount.BAT that you can save in your C:\SAFE.

TITLE %0 Mount an encrypted drive
if not exist X: 	"C:\Program Files\TrueCrypt\TrueCrypt.exe" /Q /LX  /V \Device\Harddisk1\Partition1
REM End

On my system, I elected to use drive X as the target for backup files.

The excellent TrueCrypt documentation told me how to mount a drive.

The only operation line in the batch file tests to see if drive X: exists.

If drive X: does NOT EXIST then the TrueCrypt command will be executed.

TrueCrypt installed itself in "C:\Program Files\TrueCrypt\TrueCrypt.exe" (note the double-quotes) so that’s where it will be found.

/Q

“Automatically perform requested actions and exit “, also known as Quiet operation. No user intervention is required. Lovely!

/LX

“Driver letter to mount the volume”. I want the encrypted drive to be mounted as drive X:, hence the letter “X”

/V \Device\Harddisk1\Partition1

“File and path name of a TrueCrypt volume to mount”.

Visit www.ChrisGreaves.com for this image! BackE005.JPG

When I run TrueCrypt and choose Select Device, a window pops up in which I can see all the devices recognised by TrueCrypt. I choose the appropriate device and key its full name in here.

When my little batch file has run, drive X: will be available to me.

Visit www.ChrisGreaves.com for this image! BackE006.JPG

In the rather lengthy screen shot above, you can see that I have executed C:\Safe\Mount.bat and that drive X: is now available to me in unencrypted form.

Waiting For The Backup Drive


Loading

Toronto and Mississauga, Friday, December 03, 2010 8:30 AM

Copyright © 1996-2010 Chris Greaves. All Rights Reserved.