Open Bitlocker Drive on Linux

When it comes to encryption, you have the choice, in most cases at least, to go for either Linux (LUKS) or Windows (BitLocker). But if you have a Drive you want to use on Linux AND Windows, you may run into some complications. Gladly, it’s possible to Open BitLocker Drive on Linux.

Open Bitlocker Drive on Linux


We are going to use a Tool called Dislocker to do the job.

Step 1 – Install Dislocker to Open BitLocker Drive on Linux

First, we need to install Dislocker. It doesn’t get any easier than that.

sudo apt-get install dislocker

Open Bitlocker Drive on Linux


Step 2 – Create a Folder to Mount the Drive

Next, we are going to create a Folder so we can mount the Drive.

sudo mkdir /media/bitlocker
sudo mkdir /media/mount

Open Bitlocker Drive on Linux


Step 3 – Finding our USB Drive

Now we need to figure out which drive description our USB Drive has. We can do that easily using fdisk.

sudo fdisk -l

Most likely, you’ll have to scroll down to the bottom. You can easily identify your Drive by the Size. Make sure to use the drive description under Device, in this example sde1 and not only sde.

Open Bitlocker Drive on Linux


Step 4 – Unlocking your USB Drive

Now we are going to use Dislocker to Decrypt the Drive. Make sure to replace –uYourPassword with your password and sde1 with your drive description! But leave the -u in front of it. So if your password is Horseradish the command should call: -uHorseradish . Alternatively, just leave it at -u and you will get prompted for the password.

sudo dislocker -r -V /dev/sde1 -uYourPassword -- /media/bitlocker

Open Bitlocker Drive on Linux Tutorial


Step 5 – Mounting your Drive

Finally, we are going to Mount the now encrypted Drive.

sudo mount -r -o loop /media/bitlocker/dislocker-file /media/mount

Open Bitlocker Drive Linux


And voila, you can access the files on your previously encrypted Drive. You can use a Bitlocker Encrypted Drive to store your Passwords on, for example. If you work on Windows & Linux like me, this is a good way to utilize your USB Drive on both Systems.

Step 6 – Creating a Script to automatically Mount the locked Drive

Because we are all lazy (and so we should!), we don’t want to run those commands again every single time we plug in our Drive. I created a Bash script to do this for us. We need to create a new file in our /usr/local/bin Path, so we can access the script from everywhere.

sudo gedit /usr/local/bin/

Go ahead and paste my script in your Text File. Make sure you adjust it to your own Drive Letters etc.

sudo dislocker -r -V /dev/sde1 -u -- /media/bitlocker
sudo mount -r -o loop /media/bitlocker/dislocker-file /media/mount

Save the File by hitting CTRL+S. Adjust the permission to make the File executable:

sudo chmod +x /usr/local/bin/

So the next time you restart and need to access your USB Drive again, simply open a Terminal and type:


And you will need to enter your Sudo Password and your Bitlocker Password and your Drive will be unlocked and automatically mounted.

Leave a Reply

Tell us what you think!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

newest oldest most voted
Notify of

In terminal, type ‘dislocker –help’ It will explain the ‘-r’, the ‘-V’ and many other options. Also, for every mount or operation on drive, one must make sure of its drive letters!

Thanks Ceos3c


Why dont you describe the parameter you use?
“sudo dislocker -r -V /dev/sde1 -uYourPassword — /media/bitlocker”
You only describe the obvious but not for what -r -V stands.
Also you script wont work often because “sde1” is not always the drive you want to unlock.
You should say ‘dislocker -r -V /dev/”$1″‘ or something like this.
And why do you write “sudo” in every single line? Pretty bad practis, just execute the script as sudo.

Also you should inform the people here that you don’t have write acces to that drive on linux.


Thank you for your advise
but i can not write on drive.
how can i write on disk?


great advice, worked very well. However, i’m unable to write on the flash drive, how can i enable this?


first … thank you. this was EXACTLY what i was trying to do. secondly … well … how would you go about doing this for TWO NTFS drives?? any advices would certainly be appreciated … i’m a linux newbie 😉

%d bloggers like this: