Simple Dislocker Script
Hi, I've been trying to make a simple script to mount Windows® Bitlocker® locked partitions. (Because of my job, I have a few locked drives).
Hence, I ve been trying to make the mounting a bit easier. I worte a simply (probably not very efficent) script, that once I attach I have to run manually, it has a couple lines and uses Zenity as GUI for passwords and selection. Dislocker Unlock Script Code:
#!/bin/bash But, Im looking for a way in wich the script will pop when I attach a locked drive. Is that even possible?? Probably will pop every single time I attach a drive, but since I know it is or it i not locked, I will just cancel and keep going. Anyways, I was wondering if there is a way under udev rules to detect a drive has been attached, run the script, and would be a killer if once its detached destroys the dislocker-file. |
Hello,
Quote:
-- SeB |
Question on your script
Quote:
Hi. When I run your script, I get the following error: Code:
bash: ./dislocker_unlock_script.sh: /bin/bash^M: bad interpreter: No such file or directory Code:
bash dislocker_unlock_script.sh Code:
dislocker_unlock_script.sh: line 5: $'\r': command not found Do you have any idea what I'm doing wrong? TIA Les |
Quote:
You should open it in a editor and save with the UNIX style of end of line. |
Quote:
Thanks very much! |
|
All times are GMT -5. The time now is 10:49 AM. |