Mounting Bitlocker Drives in Ubuntu
Introduction
Bitlocker is the software used in Windows operiating systems to encrypt hard drvies. It can also be used to encrypt USB flask disks. It is a very useful software to make sure your data is safe in case you lost your drive. Mounting bitlocker-encrypted devices on Ubuntu is possible using dislocker.
Installation
To install dislocker and required libraries, run:
sudo apt -y install libmbedtls-dev libfuse-dev
sudo apt -y install gcc cmake make libfuse-dev libmbedtls-dev ruby-dev
sudo apt -y install git
cd ~
sudo git clone https://github.com/Aorimn/dislocker.git
cd dislocker
sudo apt-get -y install dislocker
sudo cmake .
sudo make
sudo make install
Automount on Boot
You need to create two folders in order to mount the drive. A filder for mounting the encrypted drive and another one (which you will use to access the data) for mounting the decrypted one, respectively. Here, let's call them /mnt/dis-hdd1 and /mnt/hdd1. To automatiacally mount dislocker on boot, you need to add it to fstab file. First however, you need to find the device address. Run:
sudo blkid
It will show you a list of devices connected to your computer. Find the one that belongs to your encrypted hard drive. You can either use the address in form of /dev/sdXY, or UUID=... (or somethimes PARTUUID=.... Then,
sudo nano /etc/fstab
and at the end of the file add
/dev/sdXY /mnt/dis-hdd1 fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000 0 0
/mnt/dis-hdd1 /mnt/hdd1 auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0
Make sure to enter your own recovery password of the bitlocker drive and chage the path for both folders based on your own setup. Also, you can change the drive letter(C:)