Loading a backup in a freshly linux installation

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











up vote
0
down vote

favorite












Please reference if this question is already answered.



I am doing a backup of my hardrive before installing again Linux. I am doing this process with my dd command. If I reinstall Linux Mint, how can I do to install everything in the home partition?



I suppose that it should be enough to do:



$ dd if=/dev/sdb1 of=/dev/sda1


Is this enough, or do I need to do something more?







share|improve this question




















  • Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
    – Timothy Martin
    Mar 16 at 18:14






  • 3




    Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
    – Christopher
    Mar 16 at 18:20






  • 1




    If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
    – ivanivan
    Mar 16 at 18:41










  • @Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
    – user2820579
    Mar 17 at 2:15














up vote
0
down vote

favorite












Please reference if this question is already answered.



I am doing a backup of my hardrive before installing again Linux. I am doing this process with my dd command. If I reinstall Linux Mint, how can I do to install everything in the home partition?



I suppose that it should be enough to do:



$ dd if=/dev/sdb1 of=/dev/sda1


Is this enough, or do I need to do something more?







share|improve this question




















  • Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
    – Timothy Martin
    Mar 16 at 18:14






  • 3




    Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
    – Christopher
    Mar 16 at 18:20






  • 1




    If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
    – ivanivan
    Mar 16 at 18:41










  • @Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
    – user2820579
    Mar 17 at 2:15












up vote
0
down vote

favorite









up vote
0
down vote

favorite











Please reference if this question is already answered.



I am doing a backup of my hardrive before installing again Linux. I am doing this process with my dd command. If I reinstall Linux Mint, how can I do to install everything in the home partition?



I suppose that it should be enough to do:



$ dd if=/dev/sdb1 of=/dev/sda1


Is this enough, or do I need to do something more?







share|improve this question












Please reference if this question is already answered.



I am doing a backup of my hardrive before installing again Linux. I am doing this process with my dd command. If I reinstall Linux Mint, how can I do to install everything in the home partition?



I suppose that it should be enough to do:



$ dd if=/dev/sdb1 of=/dev/sda1


Is this enough, or do I need to do something more?









share|improve this question











share|improve this question




share|improve this question










asked Mar 16 at 18:08









user2820579

1011




1011











  • Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
    – Timothy Martin
    Mar 16 at 18:14






  • 3




    Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
    – Christopher
    Mar 16 at 18:20






  • 1




    If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
    – ivanivan
    Mar 16 at 18:41










  • @Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
    – user2820579
    Mar 17 at 2:15
















  • Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
    – Timothy Martin
    Mar 16 at 18:14






  • 3




    Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
    – Christopher
    Mar 16 at 18:20






  • 1




    If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
    – ivanivan
    Mar 16 at 18:41










  • @Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
    – user2820579
    Mar 17 at 2:15















Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
– Timothy Martin
Mar 16 at 18:14




Possible duplicate of unix.stackexchange.com/questions/45165/home-partition.
– Timothy Martin
Mar 16 at 18:14




3




3




Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
– Christopher
Mar 16 at 18:20




Reading between the lines, it seems to me that dd is not the right tool for the job. Instead, use rsync or tar or just cp to copy files you want to keep to an external hard drive.
– Christopher
Mar 16 at 18:20




1




1




If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
– ivanivan
Mar 16 at 18:41




If /home is a separate partition (or perhaps a RAID array) then just ignore it during system install, and after first boot go in and set it up again to be mounted in the right space, moving the existing /home to /home-default or similar
– ivanivan
Mar 16 at 18:41












@Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
– user2820579
Mar 17 at 2:15




@Christopher why you think this is not a good tool? I understand that the best option so far is rsync, and copy is better to avoid it in these cases.
– user2820579
Mar 17 at 2:15










1 Answer
1






active

oldest

votes

















up vote
1
down vote













What you do is correct, the command you use will copy one partition to another. You can also use files to backup to using DD, that way you can also put some /etc/ files ore something else you want to keep on the same external drive as where you put your home backup.






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%2f430667%2floading-a-backup-in-a-freshly-linux-installation%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













    What you do is correct, the command you use will copy one partition to another. You can also use files to backup to using DD, that way you can also put some /etc/ files ore something else you want to keep on the same external drive as where you put your home backup.






    share|improve this answer
























      up vote
      1
      down vote













      What you do is correct, the command you use will copy one partition to another. You can also use files to backup to using DD, that way you can also put some /etc/ files ore something else you want to keep on the same external drive as where you put your home backup.






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        What you do is correct, the command you use will copy one partition to another. You can also use files to backup to using DD, that way you can also put some /etc/ files ore something else you want to keep on the same external drive as where you put your home backup.






        share|improve this answer












        What you do is correct, the command you use will copy one partition to another. You can also use files to backup to using DD, that way you can also put some /etc/ files ore something else you want to keep on the same external drive as where you put your home backup.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 16 at 19:58









        switch87

        505316




        505316






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430667%2floading-a-backup-in-a-freshly-linux-installation%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)