How can I encrypt my hard drive?











up vote
0
down vote

favorite












I am running 16.04 and I want to encrypt my computer. How can I do that?



I haven't had much luck searching online.










share|improve this question






















  • Possible duplicate: askubuntu.com/questions/366749/…
    – ThatGuy
    Nov 18 '16 at 0:03















up vote
0
down vote

favorite












I am running 16.04 and I want to encrypt my computer. How can I do that?



I haven't had much luck searching online.










share|improve this question






















  • Possible duplicate: askubuntu.com/questions/366749/…
    – ThatGuy
    Nov 18 '16 at 0:03













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am running 16.04 and I want to encrypt my computer. How can I do that?



I haven't had much luck searching online.










share|improve this question













I am running 16.04 and I want to encrypt my computer. How can I do that?



I haven't had much luck searching online.







encryption






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 '16 at 0:00









user62372

3618




3618












  • Possible duplicate: askubuntu.com/questions/366749/…
    – ThatGuy
    Nov 18 '16 at 0:03


















  • Possible duplicate: askubuntu.com/questions/366749/…
    – ThatGuy
    Nov 18 '16 at 0:03
















Possible duplicate: askubuntu.com/questions/366749/…
– ThatGuy
Nov 18 '16 at 0:03




Possible duplicate: askubuntu.com/questions/366749/…
– ThatGuy
Nov 18 '16 at 0:03










3 Answers
3






active

oldest

votes

















up vote
0
down vote













You can use the "encrypt OS" option when installing Ubuntu but I've ran into errors with Nvidia video drivers trying to do that. But this will probably work if you aren't trying to use 3rd party drivers.



You can also use the "encrypt home directory" option when installing Ubuntu. I'm using this currently and I haven't had any issues.



Also there's a program called encfs which works well for encrypting folders. Install it using sudo apt-get install encfs and learn how to use it by typing man encfs






share|improve this answer

















  • 1




    You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
    – user62372
    Nov 18 '16 at 13:52


















up vote
0
down vote













There is documentation provided for every version of Ubuntu after 12.10.



The official document states:




During installation, check the checkbox “Encrypt the new Ubuntu installation for security




There is a good guide on eCryptfs here



Here are the quoted instructions:




First, install the necessary packages. From a terminal prompt enter:



sudo apt install ecryptfs-utils



Now mount the partition to be encrypted:



sudo mount -t ecryptfs /srv /srv



You will then be prompted for some details on how ecryptfs should encrypt the data.



To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:



sudo cp -r /etc/default /srv



Now unmount /srv, and try to view a file:



sudo umount /srv



cat /srv/default/cron



Remounting /srv using ecryptfs will make the data viewable once again.




You can find information here (some are old, but relevant):




  • https://help.ubuntu.com/community/FullDiskEncryptionHowto

  • https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption

  • http://thesimplecomputer.info/full-disk-encryption-with-ubuntu

  • Ubuntu full disk encryption with encrypted /boot

  • Enable disk encryption after installation

  • https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/


And many more resources found via Google.






share|improve this answer























  • What can I do now that Ubuntu is already installed? Thanks!
    – user62372
    Nov 18 '16 at 13:54


















up vote
0
down vote













Have you tried VeraCrypt ?



https://www.veracrypt.fr/en/Downloads.html




Creates a virtual encrypted disk within a file and mounts it as a real disk.
Encrypts an entire partition or storage device such as USB flash drive or hard drive.
Encrypts a partition or drive where Windows is installed (pre-boot authentication).
Encryption is automatic, real-time(on-the-fly) and transparent.
Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
Encryption can be hardware-accelerated on modern processors.
Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden


operating system.
More information about the features of VeraCrypt may be found in the documentation




I haven't tried the below links, but it should help



https://www.linuxbabe.com/ubuntu/install-veracrypt-ubuntu-16-04-16-10



https://www.youtube.com/watch?v=BY83PuG4uLE






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',
    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%2f850655%2fhow-can-i-encrypt-my-hard-drive%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You can use the "encrypt OS" option when installing Ubuntu but I've ran into errors with Nvidia video drivers trying to do that. But this will probably work if you aren't trying to use 3rd party drivers.



    You can also use the "encrypt home directory" option when installing Ubuntu. I'm using this currently and I haven't had any issues.



    Also there's a program called encfs which works well for encrypting folders. Install it using sudo apt-get install encfs and learn how to use it by typing man encfs






    share|improve this answer

















    • 1




      You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
      – user62372
      Nov 18 '16 at 13:52















    up vote
    0
    down vote













    You can use the "encrypt OS" option when installing Ubuntu but I've ran into errors with Nvidia video drivers trying to do that. But this will probably work if you aren't trying to use 3rd party drivers.



    You can also use the "encrypt home directory" option when installing Ubuntu. I'm using this currently and I haven't had any issues.



    Also there's a program called encfs which works well for encrypting folders. Install it using sudo apt-get install encfs and learn how to use it by typing man encfs






    share|improve this answer

















    • 1




      You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
      – user62372
      Nov 18 '16 at 13:52













    up vote
    0
    down vote










    up vote
    0
    down vote









    You can use the "encrypt OS" option when installing Ubuntu but I've ran into errors with Nvidia video drivers trying to do that. But this will probably work if you aren't trying to use 3rd party drivers.



    You can also use the "encrypt home directory" option when installing Ubuntu. I'm using this currently and I haven't had any issues.



    Also there's a program called encfs which works well for encrypting folders. Install it using sudo apt-get install encfs and learn how to use it by typing man encfs






    share|improve this answer












    You can use the "encrypt OS" option when installing Ubuntu but I've ran into errors with Nvidia video drivers trying to do that. But this will probably work if you aren't trying to use 3rd party drivers.



    You can also use the "encrypt home directory" option when installing Ubuntu. I'm using this currently and I haven't had any issues.



    Also there's a program called encfs which works well for encrypting folders. Install it using sudo apt-get install encfs and learn how to use it by typing man encfs







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 18 '16 at 2:12









    Nug U

    741110




    741110








    • 1




      You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
      – user62372
      Nov 18 '16 at 13:52














    • 1




      You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
      – user62372
      Nov 18 '16 at 13:52








    1




    1




    You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
    – user62372
    Nov 18 '16 at 13:52




    You mentioned I can do those things when installing Ubuntu. Is there anything I can do if Ubuntu is already installed?
    – user62372
    Nov 18 '16 at 13:52












    up vote
    0
    down vote













    There is documentation provided for every version of Ubuntu after 12.10.



    The official document states:




    During installation, check the checkbox “Encrypt the new Ubuntu installation for security




    There is a good guide on eCryptfs here



    Here are the quoted instructions:




    First, install the necessary packages. From a terminal prompt enter:



    sudo apt install ecryptfs-utils



    Now mount the partition to be encrypted:



    sudo mount -t ecryptfs /srv /srv



    You will then be prompted for some details on how ecryptfs should encrypt the data.



    To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:



    sudo cp -r /etc/default /srv



    Now unmount /srv, and try to view a file:



    sudo umount /srv



    cat /srv/default/cron



    Remounting /srv using ecryptfs will make the data viewable once again.




    You can find information here (some are old, but relevant):




    • https://help.ubuntu.com/community/FullDiskEncryptionHowto

    • https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption

    • http://thesimplecomputer.info/full-disk-encryption-with-ubuntu

    • Ubuntu full disk encryption with encrypted /boot

    • Enable disk encryption after installation

    • https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/


    And many more resources found via Google.






    share|improve this answer























    • What can I do now that Ubuntu is already installed? Thanks!
      – user62372
      Nov 18 '16 at 13:54















    up vote
    0
    down vote













    There is documentation provided for every version of Ubuntu after 12.10.



    The official document states:




    During installation, check the checkbox “Encrypt the new Ubuntu installation for security




    There is a good guide on eCryptfs here



    Here are the quoted instructions:




    First, install the necessary packages. From a terminal prompt enter:



    sudo apt install ecryptfs-utils



    Now mount the partition to be encrypted:



    sudo mount -t ecryptfs /srv /srv



    You will then be prompted for some details on how ecryptfs should encrypt the data.



    To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:



    sudo cp -r /etc/default /srv



    Now unmount /srv, and try to view a file:



    sudo umount /srv



    cat /srv/default/cron



    Remounting /srv using ecryptfs will make the data viewable once again.




    You can find information here (some are old, but relevant):




    • https://help.ubuntu.com/community/FullDiskEncryptionHowto

    • https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption

    • http://thesimplecomputer.info/full-disk-encryption-with-ubuntu

    • Ubuntu full disk encryption with encrypted /boot

    • Enable disk encryption after installation

    • https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/


    And many more resources found via Google.






    share|improve this answer























    • What can I do now that Ubuntu is already installed? Thanks!
      – user62372
      Nov 18 '16 at 13:54













    up vote
    0
    down vote










    up vote
    0
    down vote









    There is documentation provided for every version of Ubuntu after 12.10.



    The official document states:




    During installation, check the checkbox “Encrypt the new Ubuntu installation for security




    There is a good guide on eCryptfs here



    Here are the quoted instructions:




    First, install the necessary packages. From a terminal prompt enter:



    sudo apt install ecryptfs-utils



    Now mount the partition to be encrypted:



    sudo mount -t ecryptfs /srv /srv



    You will then be prompted for some details on how ecryptfs should encrypt the data.



    To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:



    sudo cp -r /etc/default /srv



    Now unmount /srv, and try to view a file:



    sudo umount /srv



    cat /srv/default/cron



    Remounting /srv using ecryptfs will make the data viewable once again.




    You can find information here (some are old, but relevant):




    • https://help.ubuntu.com/community/FullDiskEncryptionHowto

    • https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption

    • http://thesimplecomputer.info/full-disk-encryption-with-ubuntu

    • Ubuntu full disk encryption with encrypted /boot

    • Enable disk encryption after installation

    • https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/


    And many more resources found via Google.






    share|improve this answer














    There is documentation provided for every version of Ubuntu after 12.10.



    The official document states:




    During installation, check the checkbox “Encrypt the new Ubuntu installation for security




    There is a good guide on eCryptfs here



    Here are the quoted instructions:




    First, install the necessary packages. From a terminal prompt enter:



    sudo apt install ecryptfs-utils



    Now mount the partition to be encrypted:



    sudo mount -t ecryptfs /srv /srv



    You will then be prompted for some details on how ecryptfs should encrypt the data.



    To test that files placed in /srv are indeed encrypted copy the /etc/default folder to /srv:



    sudo cp -r /etc/default /srv



    Now unmount /srv, and try to view a file:



    sudo umount /srv



    cat /srv/default/cron



    Remounting /srv using ecryptfs will make the data viewable once again.




    You can find information here (some are old, but relevant):




    • https://help.ubuntu.com/community/FullDiskEncryptionHowto

    • https://www.eff.org/deeplinks/2012/11/privacy-ubuntu-1210-full-disk-encryption

    • http://thesimplecomputer.info/full-disk-encryption-with-ubuntu

    • Ubuntu full disk encryption with encrypted /boot

    • Enable disk encryption after installation

    • https://utappia.org/2016/03/23/how-to-do-a-full-disk-encryption-with-ubuntu-installation/


    And many more resources found via Google.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 13 '17 at 12:24









    Community

    1




    1










    answered Nov 18 '16 at 0:03









    ThatGuy

    3,39311033




    3,39311033












    • What can I do now that Ubuntu is already installed? Thanks!
      – user62372
      Nov 18 '16 at 13:54


















    • What can I do now that Ubuntu is already installed? Thanks!
      – user62372
      Nov 18 '16 at 13:54
















    What can I do now that Ubuntu is already installed? Thanks!
    – user62372
    Nov 18 '16 at 13:54




    What can I do now that Ubuntu is already installed? Thanks!
    – user62372
    Nov 18 '16 at 13:54










    up vote
    0
    down vote













    Have you tried VeraCrypt ?



    https://www.veracrypt.fr/en/Downloads.html




    Creates a virtual encrypted disk within a file and mounts it as a real disk.
    Encrypts an entire partition or storage device such as USB flash drive or hard drive.
    Encrypts a partition or drive where Windows is installed (pre-boot authentication).
    Encryption is automatic, real-time(on-the-fly) and transparent.
    Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
    Encryption can be hardware-accelerated on modern processors.
    Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden


    operating system.
    More information about the features of VeraCrypt may be found in the documentation




    I haven't tried the below links, but it should help



    https://www.linuxbabe.com/ubuntu/install-veracrypt-ubuntu-16-04-16-10



    https://www.youtube.com/watch?v=BY83PuG4uLE






    share|improve this answer

























      up vote
      0
      down vote













      Have you tried VeraCrypt ?



      https://www.veracrypt.fr/en/Downloads.html




      Creates a virtual encrypted disk within a file and mounts it as a real disk.
      Encrypts an entire partition or storage device such as USB flash drive or hard drive.
      Encrypts a partition or drive where Windows is installed (pre-boot authentication).
      Encryption is automatic, real-time(on-the-fly) and transparent.
      Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
      Encryption can be hardware-accelerated on modern processors.
      Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden


      operating system.
      More information about the features of VeraCrypt may be found in the documentation




      I haven't tried the below links, but it should help



      https://www.linuxbabe.com/ubuntu/install-veracrypt-ubuntu-16-04-16-10



      https://www.youtube.com/watch?v=BY83PuG4uLE






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Have you tried VeraCrypt ?



        https://www.veracrypt.fr/en/Downloads.html




        Creates a virtual encrypted disk within a file and mounts it as a real disk.
        Encrypts an entire partition or storage device such as USB flash drive or hard drive.
        Encrypts a partition or drive where Windows is installed (pre-boot authentication).
        Encryption is automatic, real-time(on-the-fly) and transparent.
        Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
        Encryption can be hardware-accelerated on modern processors.
        Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden


        operating system.
        More information about the features of VeraCrypt may be found in the documentation




        I haven't tried the below links, but it should help



        https://www.linuxbabe.com/ubuntu/install-veracrypt-ubuntu-16-04-16-10



        https://www.youtube.com/watch?v=BY83PuG4uLE






        share|improve this answer












        Have you tried VeraCrypt ?



        https://www.veracrypt.fr/en/Downloads.html




        Creates a virtual encrypted disk within a file and mounts it as a real disk.
        Encrypts an entire partition or storage device such as USB flash drive or hard drive.
        Encrypts a partition or drive where Windows is installed (pre-boot authentication).
        Encryption is automatic, real-time(on-the-fly) and transparent.
        Parallelization and pipelining allow data to be read and written as fast as if the drive was not encrypted.
        Encryption can be hardware-accelerated on modern processors.
        Provides plausible deniability, in case an adversary forces you to reveal the password: Hidden volume (steganography) and hidden


        operating system.
        More information about the features of VeraCrypt may be found in the documentation




        I haven't tried the below links, but it should help



        https://www.linuxbabe.com/ubuntu/install-veracrypt-ubuntu-16-04-16-10



        https://www.youtube.com/watch?v=BY83PuG4uLE







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 15 at 4:43









        user227495

        1,08442443




        1,08442443






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f850655%2fhow-can-i-encrypt-my-hard-drive%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

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei