How to auto-mount Bitlocker NTFS encrypted drive at boot?

Hi,
I am new to Bazzite and Fedora.

I have a Bitlocker NTFS encrypted drive, because I am dual booting with Windows and I would like to access it from Bazzite.
From Dolphin, I can perfectly mount it. It asks for the decryption key, and after providing it I can access the drive without any issue.
But it does not persists after a reboot. I would like this to be auto-mounted with the decryption key registered somewhere.

I looked at KDE Partition Manager Auto Mount Guide - Bazzite Documentation , but it does not work with Bitlocker drives. When doing sudo systemctl daemon-reload && sudo mount -a, I have the following error:

valentin@device-123:~$ sudo systemctl daemon-reload && sudo mount -a
mount: /mnt/Data: unknown filesystem type 'BitLocker'.
       dmesg(1) may have more information after failed mount system 

This is the drive I am trying to mount:

NAME                                          FSTYPE      FSVER LABEL                UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                                                                                      
└─sda1                                        BitLocker   2                                                                              

My fstab looks like this:

UUID=713a797f-0d8a-4e1c-8464-f65bf7f4f568   /             btrfs       subvol=root,compress=zstd:1,x-systemd.device-timeout=0   0 0 
UUID=424cb5ce-6d2d-45e4-a42d-c92997b916c1   /boot         ext4        defaults                                                 1 2 
UUID=7AFC-45EE                              /boot/efi     vfat        umask=0077,shortname=winnt                               0 2 
UUID=713a797f-0d8a-4e1c-8464-f65bf7f4f568   /home         btrfs       subvol=home,compress=zstd:1,x-systemd.device-timeout=0   0 0 
UUID=713a797f-0d8a-4e1c-8464-f65bf7f4f568   /var          btrfs       subvol=var,compress=zstd:1,x-systemd.device-timeout=0    0 0 
/dev/sda1                                   /media/Data   BitLocker   noatime,nodiratime,nofail,users                          0 0 

I don’t know what I should input for it to recognize the Bitlocker filesystem at boot. I don’t understand why it works when mounted through Dolphin but not at boot with fstab.

Thanks in advance for any answer, have a nice day.

Hey, I wrote myself a manual for that a month ago, try this:

Links

HowTo

  1. Create MOUNTPOINT directory:

    sudo mkdir <MOUNTPOINT>
    
    # Example
    sudo mkdir /mnt/Windows
    
  2. Save Bitlocker key in for example /etc/<FILENAME>.key

    1. Set ownership to root & permissions to 600 (owner rw):

      sudo chown root:root /etc/<FILENAME>.key  
      sudo chmod 600 /etc/<FILENAME>.key
      
  3. Find info about disk

    1. Use gnome-disks for example and find out which one of the /dev/nvmeXnXpX is the Bitlocker drive
    2. Find out its UUID / PARTUUID using sudo blkid -p /dev/nvmeXnXpX
  4. Create an entry in /etc/crypttab, containing:

    <LABELNAME> PARTUUID=<PARTUUID> <PATH_TO_KEY> bitlk
    
    # Example:
    Windows PARTUUID=272fa19a-3ad1-429f-9142-11d9a1b06d5b /etc/bitlocker.key bitlk
    

    <LABELNAME> can be whatever, for example “Windows”

  5. Create an entry in /etc/fstab, containing:

    /dev/mapper/<LABELNAME>   <MOUNTPOINT>   ntfs   uid=<UID>,gid=<GID>,rw,user,exec,umask=000 0 0
    
    # Example
    /dev/mapper/Windows   /mnt/Windows   ntfs   uid=1000,gid=1000,rw,user,exec,umask=000 0 0
    
  6. If using Flatpak Steam, then it needs permissions, if installed as system app:

    <sudo OR nothing> flatpak <--system OR --user> override --filesystem="<MOUNTPOINT>/Program Files (x86)/Steam" com.valvesoftware.Steam
    
    # Example
    sudo flatpak --system override --filesystem="/mnt/Windows/Program Files (x86)/Steam" com.valvesoftware.Steam
    
  7. Add the path in Steam’s Storage settings

  8. Reboot, profit