Firstly I have to say I love the geek.menu and its security features - keep up the good work.
Secondly I'm not sure this post is in the correct forum but I'm not after help or putting forward a feature suggestion so here goes...
I have been using the geek.menu for around a week and have everything setup just the way I want - apart from the geekEjector totally failing to work every time. I also didn't like the need to have the exe stored/copied to the local PC for the ejection to work either so I started looking into alternatives.
I tried various scripts and apps that I found on the web with varying degrees of success however none catered for the un-mounting of the TrueCrypt volume as well as the USB ejection. Not being a particularly proficient scripter (and lazy to boot) I have come up with the following to dismount TrueCrypt and eject my drive and it has worked for me every time I’ve tried it so far…
First I downloaded a small but highly flexible USB ejection app from here “http://quick.mixnmojo.com/usb-disk-ejector”. This app will run in GUI or command line mode with switches (check the readme for the list). Next I downloaded another little app from here “http://www.commandline.co.uk/chp/” and extracted just the chp.exe file from the zip to the root of my USB drive. This is not a necessary step to get the ejection process to work however it will make the process invisible. Finally I wrote a very simple batch file which performs a command line dismount of my TrueCrypt volume and then calls the USB ejection app in command line mode using the switch /REMOVETHIS (so that the app ejects the drive from which it is run). My batch file contents are as follows:
Obviously change the paths so they match the locations of your TrueCrypt and USB Disk Ejector executables and after the TrueCrypt /d switch substitute the t with your TrueCrypt volume letter. When the batch file is written to suit your drive layout, save it to the root of your drive naming it ‘USBDiskEjector.bat’ and ensure the chp.exe file is also in the root of the drive. To get all this working open your geek.menu and go to the options -> advanced options -> ejection tab. In the eject command box enter “$HOSTDRIVE$:\CHP.exe” and in the parameters box enter “USBDiskEjector.bat”. Click OK and you are done.
You should now get the eject button on your geek.menu (a restart of the menu may be required) and when pressed the chp.exe will run the batch file you created hidden in the background and dismount the TrueCrypt volume then eject your USB stick. One thing I have not yet tested is running this on a PC under a guest account so I cannot guarantee it will work. This is not an issue for me as I use it only on my own PC’s and at work where I am an admin so I’m happy!
Anyway sorry for the long post, hope this is useful to someone out there,
HeadSwim.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I found a good application that works with all the drives I have tested on, and it doesn't require installing the exe on the hard drive. It is called: RemoveDrive Check it out at http://www.uwe-sieber.de
I use the exe with the small batch file below. it will shutdown TrueCrypt and will keep running until the usb drive is unmounted.
Hi all,
Firstly I have to say I love the geek.menu and its security features - keep up the good work.
Secondly I'm not sure this post is in the correct forum but I'm not after help or putting forward a feature suggestion so here goes...
I have been using the geek.menu for around a week and have everything setup just the way I want - apart from the geekEjector totally failing to work every time. I also didn't like the need to have the exe stored/copied to the local PC for the ejection to work either so I started looking into alternatives.
I tried various scripts and apps that I found on the web with varying degrees of success however none catered for the un-mounting of the TrueCrypt volume as well as the USB ejection. Not being a particularly proficient scripter (and lazy to boot) I have come up with the following to dismount TrueCrypt and eject my drive and it has worked for me every time I’ve tried it so far…
First I downloaded a small but highly flexible USB ejection app from here “http://quick.mixnmojo.com/usb-disk-ejector”. This app will run in GUI or command line mode with switches (check the readme for the list). Next I downloaded another little app from here “http://www.commandline.co.uk/chp/” and extracted just the chp.exe file from the zip to the root of my USB drive. This is not a necessary step to get the ejection process to work however it will make the process invisible. Finally I wrote a very simple batch file which performs a command line dismount of my TrueCrypt volume and then calls the USB ejection app in command line mode using the switch /REMOVETHIS (so that the app ejects the drive from which it is run). My batch file contents are as follows:
“@echo off
.\PortableApps\TrueCrypt\TrueCrypt /dt /q
.\PortableApps\USBDiskEjector\USB_Disk_Eject.exe /REMOVETHIS /SHOWEJECT”
Obviously change the paths so they match the locations of your TrueCrypt and USB Disk Ejector executables and after the TrueCrypt /d switch substitute the t with your TrueCrypt volume letter. When the batch file is written to suit your drive layout, save it to the root of your drive naming it ‘USBDiskEjector.bat’ and ensure the chp.exe file is also in the root of the drive. To get all this working open your geek.menu and go to the options -> advanced options -> ejection tab. In the eject command box enter “$HOSTDRIVE$:\CHP.exe” and in the parameters box enter “USBDiskEjector.bat”. Click OK and you are done.
You should now get the eject button on your geek.menu (a restart of the menu may be required) and when pressed the chp.exe will run the batch file you created hidden in the background and dismount the TrueCrypt volume then eject your USB stick. One thing I have not yet tested is running this on a PC under a guest account so I cannot guarantee it will work. This is not an issue for me as I use it only on my own PC’s and at work where I am an admin so I’m happy!
Anyway sorry for the long post, hope this is useful to someone out there,
HeadSwim.
I found a good application that works with all the drives I have tested on, and it doesn't require installing the exe on the hard drive. It is called: RemoveDrive Check it out at http://www.uwe-sieber.de
I use the exe with the small batch file below. it will shutdown TrueCrypt and will keep running until the usb drive is unmounted.
@echo off
cls
\TrueCrypt\TrueCrypt.exe /q /d
RemoveDrive.exe \ -l -b -w:1000
Enjoy.