How to migrate from ext2 to ext4 when my filesystem is encrypted (LUKS)?











up vote
0
down vote

favorite












The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.



I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:




  • https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/

  • https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/


However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?










share|improve this question


























    up vote
    0
    down vote

    favorite












    The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.



    I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:




    • https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/

    • https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/


    However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.



      I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:




      • https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/

      • https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/


      However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?










      share|improve this question













      The reason why I am posting this question is that Dropbox has notified me (via e-mail), that it will soon no longer support ext2 for its desktop client.



      I have a LUKS encrypted file system on top of an extended ext2 partition and I found the following "How To"s for migrating to ext4:




      • https://www.howtoforge.com/tutorial/migrate-ext2-ext3-filesystem-to-ext4/

      • https://www.ghacks.net/2010/08/11/convert-ext23-to-ext4/


      However, the previous "How To"s do not mention anything about what to do if you have an encrypted file system such as LUKS. Is there no difference? If there is, how does one do this migration?







      16.04 filesystem ext4 dropbox luks






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 17 at 14:03









      Benny

      1011




      1011






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          I would do the following:




          • Back up all of your data no matter what you decide to do


          • Boot to live CD


          • sudo bash


          • tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or

            something differant and the ? is the partition number.


          • e2fsck -pf /dev/sda?


          • sudo mount -t ext4 /dev/sda1 /mnt Check for errors.


          • edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.


          • update-grub



          The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.






          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%2f1093733%2fhow-to-migrate-from-ext2-to-ext4-when-my-filesystem-is-encrypted-luks%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            I would do the following:




            • Back up all of your data no matter what you decide to do


            • Boot to live CD


            • sudo bash


            • tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or

              something differant and the ? is the partition number.


            • e2fsck -pf /dev/sda?


            • sudo mount -t ext4 /dev/sda1 /mnt Check for errors.


            • edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.


            • update-grub



            The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.






            share|improve this answer

























              up vote
              0
              down vote













              I would do the following:




              • Back up all of your data no matter what you decide to do


              • Boot to live CD


              • sudo bash


              • tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or

                something differant and the ? is the partition number.


              • e2fsck -pf /dev/sda?


              • sudo mount -t ext4 /dev/sda1 /mnt Check for errors.


              • edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.


              • update-grub



              The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                I would do the following:




                • Back up all of your data no matter what you decide to do


                • Boot to live CD


                • sudo bash


                • tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or

                  something differant and the ? is the partition number.


                • e2fsck -pf /dev/sda?


                • sudo mount -t ext4 /dev/sda1 /mnt Check for errors.


                • edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.


                • update-grub



                The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.






                share|improve this answer












                I would do the following:




                • Back up all of your data no matter what you decide to do


                • Boot to live CD


                • sudo bash


                • tune2fs -O extents,uninit_bg,dir_index,has_journal /dev/sda? The sda may be hd or

                  something differant and the ? is the partition number.


                • e2fsck -pf /dev/sda?


                • sudo mount -t ext4 /dev/sda1 /mnt Check for errors.


                • edit the fstab on the root of the drive where the LUKS partition is to reflect the change in partition type.


                • update-grub



                The LUKS encrypted filesystem exists inside the ext2 partition, thus the migrating from one partition type to another should not matter as far as the data within as long as nothing goes wrong. Hence the backup. It is like taking the water in one glass and moving it to another as long as the proccess is comleted without error, the water should be the same in both amount and purity.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 19 at 2:25









                Michael Prokopec

                1033




                1033






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093733%2fhow-to-migrate-from-ext2-to-ext4-when-my-filesystem-is-encrypted-luks%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

                    mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?