I want create scrip for mount partition bit locker.
for mount bitlocker i type this commands
: /tmp$ sudo dislocker -v -V /dev/sdb1 -p000000-000000-000000-000000-000000-000000-000000-000000 – /mnt/tmp
: /tmp$ ls /mnt/tmp
: /tmp$ sudo mount -o loop,rw /mnt/tmp/dislocker-file /mnt/disk
: /tmp$ ls /mnt/disk/
I want after create script mount just one click not write commands again and add scrip for running startup
how to create scrip for mount partition bitlocker?
I am not sure what you are trying to do. Is the bitlocked partition no a fixed or removable hard drive?
If this is a fixed drive partition, then do you wish to mount the decrypted filesystem in e.g. /mnt/disk at boot time?
A simple way would be to create the script (without the sudos) in e.g. /usr/loca/bin (make it executable), and then add a “@reboot” entry for it in root’s crontab.
I am sorry, but I do not fully understand. If the commands that you posted work,then use any text editor (I use vim) to create a file e.g.* /usr/local/bin/mount-dislocked-1* containing the following:
#! /bin/bash
## or /bin/dash if preferred and installed
## mount-dislocked-1
bitloked="/dev/sdb1"
mountpoint="/mnt/disk"
if "$mountpoint/" ] ;then mkdir -p "$mountpoint/" ; fi chmod a+x $mountpoint
dislocker -v -V $bitloked -p000000-000000-000000-000000-000000-000000-000000-000000 -- /mnt/tmp
mount -o loop,rw /mnt/tmp/dislocker-file /mnt/disk
# no liability for errors accepted.#
I want make script for mount partition bitlocker
I want to put the commands in a file(Commands placed in a script )
And boot the system to be implemented
please re-make script
this is my commands for make script
[QUOTE=eng-int;2738419
A simple way would be to create the script (without the sudos) in e.g. [i]/usr/loca/bin (make it executable), and then add a “@reboot” entry for it in root’s crontab.[/QUOTE]
Thanks for help
I can create script but runing my script with
Sudo ./test
I wan add script on the startup
I added. Systemsettings5->autostart but not runing in the startup system
How to runing in startup?