TranslateProject/sources/tech/20211111 How to Mount Bitlocker Encrypted Windows Partition in Linux.md
DarkSun 27e1b2af8d 选题[tech]: 20211111 How to Mount Bitlocker Encrypted Windows Partition in Linux
sources/tech/20211111 How to Mount Bitlocker Encrypted Windows Partition in Linux.md
2021-11-11 05:03:03 +08:00

7.2 KiB
Raw Blame History

How to Mount Bitlocker Encrypted Windows Partition in Linux

Heres the scenario. My system came with Windows 10 Pro and that came with BitLocker encryption. I installed Ubuntu in the dual boot mode even with the BitLocker encryption enabled for Windows.

You can easily access the Windows files from within Linux. No hi-fi stuff here. Just go to the file manager and click on the Windows partition which is located usually under the “Other Locations” tab.

Mounting Windows partition through the file manager in Linux desktop

The process is not too complicated with BitLocker encrypted Windows partition as well. Its just that when you try to mount the Windows partition, it will ask for the password.

Password required for encrypted Windows drive mount in Linux

It works though. In my case, I entered the 48 digit BitLocker recovery password and it decrypted the Windows partition and mounted it without any issue in Ubuntu 21.10 with GNOME 40.

Try your BitLocker password. If that does not work, try the recovery password. For normal Windows 10 Pro users, the recovery password is stored in your Microsoft account.

BitLocker Recovery Password in Micrsoft Account

Enter the recovery and youll see that Windows partition and its files are accessible now. Checking the “Remember Password” box is also a time saver for further usage.

Encrypted Windows partition now mounted in Linux

If the above does not work for you or if you are stuck with the command line, there is an alternative method.

This method involves using a tool called Dislocker.

Mount BotLocker encrypted Windows partition in Linux with Dislocker [Command Line Method]

Dislocker process works in two parts. The first part decrypts the BitLocker encryption and gives a file named dislocker-file. This is basically a virtual NTFS partition. The second part is basically mounting the virtual NTFS partition you just got.

Youll need either the BitLocker password or the recovery password to decrypt the encrypted drive.

Lets see the steps in details.

Step 1: Install Disclocker

Dislocker is available in the repositories of most Linux distributions. Please use your distributions package manager to install it.

On Ubuntu and Debian based distributions, use this command:


    sudo apt install dislocker

Installing Dislocker in Ubuntu

Step 2 : Create mount points

Youll need to create two mount points. One for where Dislocker will generate the dislocker-file and the other one which will mount this dislocker-file (virtual filesystem) as a loop device.

There is no naming restrictions and you may name these mount directories anything you want.

Use these commands one by one:


    sudo mkdir -p /media/decrypt
    sudo mkdir -p /media/windows-mount

Creating mount points for dislocker

Step 3: Get the partition info which needs to be decrypted

You need the name of the Windows partition. You can use the file explorer or GUI tools like Gparted.

Get the partition name

In my case, the Windows partition is /dev/nvme0n1p3. It will be different for your system. You may also use command line for this purpose.


    sudo lsblk

Step 4: Decrypt the partition and mount

You have everything set up. Now comes the real part.

If you have the BitLocker password, use the dislocker command in this fashion (replace <partition_name> and <password> with actual values):


    sudo dislocker <partition_name> -u<password> -- /media/decrypt

Please note that there is no space between u and password.

If you only have the recovery password, use the command in this fashion (replace <partition_name> and <recovery_password> with actual values):


    sudo dislocker <partition_name> -p<recovery_password> -- /media/decrypt

Again, there is no space between p and password.

It should not take a long time in decrypting the partition. You should see the dislocker-file in the designated mount point, /media/decrypt in our case. Now mount this dislocker-file:


    sudo mount -o loop /media/decrypt/dislocker-file /media/windows-mount

You are done. Your BitLocker encrypted Windows partition is decrypted and mounted in Linux. You can access it from the file explorer as well.

Mounting Dislocker decrypted Windows partition with file manager

Troubleshooting tips for wrong fs type error

If you get an error like this:


    mount: /media/windows-mount: wrong fs type, bad option, bad superblock on /dev/loop35, missing codepage or helper program, or other error.

You should specify the filesystem while mounting.

For NTFS, use:


    sudo mount -t ntfs-3g -o loop /media/decrypt/dislocker-file /media/windows-mount

For exFAT, use:


    sudo mount -t exFAT-fuse -o loop /media/decrypt/dislocker-file /media/windows-mount

Unmount the Windows partition

You can unmount the mounted partition from the file manager. Just click the unmount symbol beside the partition named windows-mount.

Otherwise, unmount command is always there for you.


    sudo umount /media/decrypt
    sudo umount /media/windows-mount

I hope it helps you. If you still have questions or suggestions, please let me know in the comments.


via: https://itsfoss.com/mount-encrypted-windows-partition-linux/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出