Can I mount a bitlockered volume at boot?












1















At boot (talking about Xubuntu here), I'm already asked for the decryption key for the / mount point (for the OS itself), which is set up with /etc/fstab and /etc/crypttab. The current setup is having a /boot, a LUKS-encrypted /, and a Bitlocker-encrypted Windows partition.

Currently I can mount the bitlockered partition with these lines:



sudo dislocker -vu /dev/sdXY /media/user/windows
sudo ntfs-3g /media/user/windows/dislocker-file /media/user/windows


Can I use somehow the crypttab and fstab to unlock a /dev/sdXY device with dislocker, so I'm asked for the key the same way at boot?










share|improve this question



























    1















    At boot (talking about Xubuntu here), I'm already asked for the decryption key for the / mount point (for the OS itself), which is set up with /etc/fstab and /etc/crypttab. The current setup is having a /boot, a LUKS-encrypted /, and a Bitlocker-encrypted Windows partition.

    Currently I can mount the bitlockered partition with these lines:



    sudo dislocker -vu /dev/sdXY /media/user/windows
    sudo ntfs-3g /media/user/windows/dislocker-file /media/user/windows


    Can I use somehow the crypttab and fstab to unlock a /dev/sdXY device with dislocker, so I'm asked for the key the same way at boot?










    share|improve this question

























      1












      1








      1








      At boot (talking about Xubuntu here), I'm already asked for the decryption key for the / mount point (for the OS itself), which is set up with /etc/fstab and /etc/crypttab. The current setup is having a /boot, a LUKS-encrypted /, and a Bitlocker-encrypted Windows partition.

      Currently I can mount the bitlockered partition with these lines:



      sudo dislocker -vu /dev/sdXY /media/user/windows
      sudo ntfs-3g /media/user/windows/dislocker-file /media/user/windows


      Can I use somehow the crypttab and fstab to unlock a /dev/sdXY device with dislocker, so I'm asked for the key the same way at boot?










      share|improve this question














      At boot (talking about Xubuntu here), I'm already asked for the decryption key for the / mount point (for the OS itself), which is set up with /etc/fstab and /etc/crypttab. The current setup is having a /boot, a LUKS-encrypted /, and a Bitlocker-encrypted Windows partition.

      Currently I can mount the bitlockered partition with these lines:



      sudo dislocker -vu /dev/sdXY /media/user/windows
      sudo ntfs-3g /media/user/windows/dislocker-file /media/user/windows


      Can I use somehow the crypttab and fstab to unlock a /dev/sdXY device with dislocker, so I'm asked for the key the same way at boot?







      boot dual-boot mount encryption fstab






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 31 '17 at 8:34









      ExecExec

      62




      62






















          2 Answers
          2






          active

          oldest

          votes


















          0














          Try this edit to fstab



          Backup /etc/fstab by making a copy:



          sudo cp /etc/fstab /etc/fstab.original


          Edit /etc/fstab and add the following lines



          # Windows' NTFS Disk C:/
          /dev/sdXY /media/user/windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
          /media/user/windows/dislocker-file /media/user/windows auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


          /dev/sdXY is the bitlocker encrypted partition. X can be a, b, c, etc. Y can be 1, 2, 3, etc.



          You will need to use your own recovery password instead of a bunch of zeros.



          Source: https://github.com/Aorimn/dislocker/issues/131



          Hope this helps






          share|improve this answer































            0














            Try this in fstab



            # /dev/sdxY Windows partition
            /dev/sdxY /mnt/Windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
            /mnt/Windows/dislocker-file /mnt/Data auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


            Change the Windows partition name, mount points and recovery-password as necessary.



            Then sudo mount -a to test if it works.






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "89"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f951542%2fcan-i-mount-a-bitlockered-volume-at-boot%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Try this edit to fstab



              Backup /etc/fstab by making a copy:



              sudo cp /etc/fstab /etc/fstab.original


              Edit /etc/fstab and add the following lines



              # Windows' NTFS Disk C:/
              /dev/sdXY /media/user/windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
              /media/user/windows/dislocker-file /media/user/windows auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


              /dev/sdXY is the bitlocker encrypted partition. X can be a, b, c, etc. Y can be 1, 2, 3, etc.



              You will need to use your own recovery password instead of a bunch of zeros.



              Source: https://github.com/Aorimn/dislocker/issues/131



              Hope this helps






              share|improve this answer




























                0














                Try this edit to fstab



                Backup /etc/fstab by making a copy:



                sudo cp /etc/fstab /etc/fstab.original


                Edit /etc/fstab and add the following lines



                # Windows' NTFS Disk C:/
                /dev/sdXY /media/user/windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                /media/user/windows/dislocker-file /media/user/windows auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                /dev/sdXY is the bitlocker encrypted partition. X can be a, b, c, etc. Y can be 1, 2, 3, etc.



                You will need to use your own recovery password instead of a bunch of zeros.



                Source: https://github.com/Aorimn/dislocker/issues/131



                Hope this helps






                share|improve this answer


























                  0












                  0








                  0







                  Try this edit to fstab



                  Backup /etc/fstab by making a copy:



                  sudo cp /etc/fstab /etc/fstab.original


                  Edit /etc/fstab and add the following lines



                  # Windows' NTFS Disk C:/
                  /dev/sdXY /media/user/windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                  /media/user/windows/dislocker-file /media/user/windows auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                  /dev/sdXY is the bitlocker encrypted partition. X can be a, b, c, etc. Y can be 1, 2, 3, etc.



                  You will need to use your own recovery password instead of a bunch of zeros.



                  Source: https://github.com/Aorimn/dislocker/issues/131



                  Hope this helps






                  share|improve this answer













                  Try this edit to fstab



                  Backup /etc/fstab by making a copy:



                  sudo cp /etc/fstab /etc/fstab.original


                  Edit /etc/fstab and add the following lines



                  # Windows' NTFS Disk C:/
                  /dev/sdXY /media/user/windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                  /media/user/windows/dislocker-file /media/user/windows auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                  /dev/sdXY is the bitlocker encrypted partition. X can be a, b, c, etc. Y can be 1, 2, 3, etc.



                  You will need to use your own recovery password instead of a bunch of zeros.



                  Source: https://github.com/Aorimn/dislocker/issues/131



                  Hope this helps







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 23 '18 at 14:43









                  user68186user68186

                  16.5k84969




                  16.5k84969

























                      0














                      Try this in fstab



                      # /dev/sdxY Windows partition
                      /dev/sdxY /mnt/Windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                      /mnt/Windows/dislocker-file /mnt/Data auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                      Change the Windows partition name, mount points and recovery-password as necessary.



                      Then sudo mount -a to test if it works.






                      share|improve this answer




























                        0














                        Try this in fstab



                        # /dev/sdxY Windows partition
                        /dev/sdxY /mnt/Windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                        /mnt/Windows/dislocker-file /mnt/Data auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                        Change the Windows partition name, mount points and recovery-password as necessary.



                        Then sudo mount -a to test if it works.






                        share|improve this answer


























                          0












                          0








                          0







                          Try this in fstab



                          # /dev/sdxY Windows partition
                          /dev/sdxY /mnt/Windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                          /mnt/Windows/dislocker-file /mnt/Data auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                          Change the Windows partition name, mount points and recovery-password as necessary.



                          Then sudo mount -a to test if it works.






                          share|improve this answer













                          Try this in fstab



                          # /dev/sdxY Windows partition
                          /dev/sdxY /mnt/Windows fuse.dislocker recovery-password=000000-000000-000000-000000-000000-000000-000000-000000 0 0
                          /mnt/Windows/dislocker-file /mnt/Data auto nofail,x-gvfs-show,x-gvfs-name=C: 0 0


                          Change the Windows partition name, mount points and recovery-password as necessary.



                          Then sudo mount -a to test if it works.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 3 hours ago









                          To DoTo Do

                          8,70694992




                          8,70694992






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Ask Ubuntu!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f951542%2fcan-i-mount-a-bitlockered-volume-at-boot%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              GameSpot

                              connect to host localhost port 22: Connection refused

                              Getting a Wifi WPA2 wifi connection