Problem mounting BitLocker nvme with dislocker on Linux

I’m trying to mount my Windows drive with BitLocker on in Fedora by following this guide.

When I run the command it tells me “No BitLocker volume path given. Abort”

[root@mynix]# dislocker /dev/nvme0n1p4 -p<password> -- /media/bitlocker
Thu May 14 09:44:06 2020 [CRITICAL] No BitLocker volume path given. Abort.
free(): double free detected in tcache 2
Aborted (core dumped)

But the partition nvme0n1p4 has Bitlocker on which is what mount tells me if I just try to mount it.

[root@mynix]# mount /dev/nvme0n1p4 /media/bitlocker
mount: /media/bitlocker: unknown filesystem type 'BitLocker'.

Lsblk for my system shows.

[root@mynix]# lsblk
NAME                                          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                                             8:0    0 238.5G  0 disk  
├─sda1                                          8:1    0   600M  0 part  /boot/efi
├─sda2                                          8:2    0     1G  0 part  /boot
└─sda3                                          8:3    0 236.9G  0 part  
  └─luks-                                              0 236.9G  0 crypt 
    ├─fedora_localhost--live-root             253:1    0    70G  0 lvm   /
    ├─fedora_localhost--live-swap             253:2    0   7.8G  0 lvm   [SWAP]
    └─fedora_localhost--live-home             253:3    0 159.2G  0 lvm   /home
nvme0n1                                       259:0    0   477G  0 disk  
├─nvme0n1p1                                   259:1    0   450M  0 part  
├─nvme0n1p2                                   259:2    0   100M  0 part  
├─nvme0n1p3                                   259:3    0    16M  0 part  
├─nvme0n1p4                                   259:4    0 475.4G  0 part  
└─nvme0n1p5                                   259:5    0   999M  0 part

Does dislocker not support NVME drives or am I missing something?

For me the problem on 19.04 was that dislocker and bdemount in the repos are too old so I had to compile it on my own. BDEMount works great in read only mode after that. You’ll find everything you need in this repo https://github.com/libyal/libbde/wiki/Mounting If you need any assistance don’t hesitate to ask!

The easiest way to get the build dependencies should be dnf builddep libbde{,-tools} but as Fedora’s packages are mostly pretty recent the version in the repos might work as well.

EDIT
I added my small script to mount bitlocker partitions with bdemount. I quickly translated it so be aware of potential mistakes.

mount-bitlocker.zip (705 Bytes)

1 Like

Thanks @modzilla, will check it out !

1 Like

Did you leave your BitLocker key in the script? :slight_smile:

No I change it :wink: I just left one to make it more obvious.

You need to make sure the ntfs-3g package is installed to be able to read ntfs.