How to clone Ubuntu 18.04 LTS from HDD to SSD?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda (93% free space) on my laptop:



/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)


I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.



What would be the best way to achieve this?







share|improve this question

















  • 1




    Create partitions, copy files, update boot manager.
    – Ipor Sircer
    Jul 3 at 17:17










  • Is sda2 is your / filesystem? Do you need to clone sda3?
    – Emmanuel Rosa
    Jul 4 at 20:42














up vote
1
down vote

favorite












I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda (93% free space) on my laptop:



/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)


I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.



What would be the best way to achieve this?







share|improve this question

















  • 1




    Create partitions, copy files, update boot manager.
    – Ipor Sircer
    Jul 3 at 17:17










  • Is sda2 is your / filesystem? Do you need to clone sda3?
    – Emmanuel Rosa
    Jul 4 at 20:42












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda (93% free space) on my laptop:



/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)


I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.



What would be the best way to achieve this?







share|improve this question













I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda (93% free space) on my laptop:



/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)


I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.



What would be the best way to achieve this?









share|improve this question












share|improve this question




share|improve this question








edited Jul 3 at 17:21
























asked Jul 3 at 17:14









TitusQuinn

154




154







  • 1




    Create partitions, copy files, update boot manager.
    – Ipor Sircer
    Jul 3 at 17:17










  • Is sda2 is your / filesystem? Do you need to clone sda3?
    – Emmanuel Rosa
    Jul 4 at 20:42












  • 1




    Create partitions, copy files, update boot manager.
    – Ipor Sircer
    Jul 3 at 17:17










  • Is sda2 is your / filesystem? Do you need to clone sda3?
    – Emmanuel Rosa
    Jul 4 at 20:42







1




1




Create partitions, copy files, update boot manager.
– Ipor Sircer
Jul 3 at 17:17




Create partitions, copy files, update boot manager.
– Ipor Sircer
Jul 3 at 17:17












Is sda2 is your / filesystem? Do you need to clone sda3?
– Emmanuel Rosa
Jul 4 at 20:42




Is sda2 is your / filesystem? Do you need to clone sda3?
– Emmanuel Rosa
Jul 4 at 20:42










1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










option a)



  • install fresh and copy over your personal files / restore installed packages

option b)



  • save your disk encryption key from the old install

  • boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)

  • clone partition 1 and 2

  • create partion 3 new with cryptsetup/zuluCrypt using the old key

  • mount both encrypted partitions

  • clone files from sda3 to the new disk using rsync.





share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453269%2fhow-to-clone-ubuntu-18-04-lts-from-hdd-to-ssd%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    option a)



    • install fresh and copy over your personal files / restore installed packages

    option b)



    • save your disk encryption key from the old install

    • boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)

    • clone partition 1 and 2

    • create partion 3 new with cryptsetup/zuluCrypt using the old key

    • mount both encrypted partitions

    • clone files from sda3 to the new disk using rsync.





    share|improve this answer

























      up vote
      1
      down vote



      accepted










      option a)



      • install fresh and copy over your personal files / restore installed packages

      option b)



      • save your disk encryption key from the old install

      • boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)

      • clone partition 1 and 2

      • create partion 3 new with cryptsetup/zuluCrypt using the old key

      • mount both encrypted partitions

      • clone files from sda3 to the new disk using rsync.





      share|improve this answer























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        option a)



        • install fresh and copy over your personal files / restore installed packages

        option b)



        • save your disk encryption key from the old install

        • boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)

        • clone partition 1 and 2

        • create partion 3 new with cryptsetup/zuluCrypt using the old key

        • mount both encrypted partitions

        • clone files from sda3 to the new disk using rsync.





        share|improve this answer













        option a)



        • install fresh and copy over your personal files / restore installed packages

        option b)



        • save your disk encryption key from the old install

        • boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)

        • clone partition 1 and 2

        • create partion 3 new with cryptsetup/zuluCrypt using the old key

        • mount both encrypted partitions

        • clone files from sda3 to the new disk using rsync.






        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jul 3 at 18:41









        Thomas

        344




        344






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453269%2fhow-to-clone-ubuntu-18-04-lts-from-hdd-to-ssd%23new-answer', 'question_page');

            );

            Post as a guest













































































            4xcOIOjt3dS0KF8Z,V8FNrLAwK,pZjFua4OCwbqGXdIZ6Tqnm0zmliBbZ,UwApLcxY03lemVPzJX1K JFqraSoAj8m m votieITmgJ
            N64rZZmuau9k 4,YVVY9tHpU1sp30elfYJEt0blYY56GNt4SzA zKX uo,b Tsi4A16VDuIfSi

            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            How many registers does an x86_64 CPU actually have?

            Displaying single band from multi-band raster using QGIS