Can I move Linux from running on a USB to a hard drive partition?












2















I'm working on helping my brother with a project. He has been running Lubuntu Linux from a USB drive while he was setting up some server and web projects (proof of concept). Now that he has the official OK from his company to roll it out, he would like to transfer the OS that resides on the USB to a partition on his hard drive, so he can avoid having to reconfigure everything on a clean install. Neither of us has cloned a Linux install before, so I'm not sure where to start or if this type of clone/move is even possible.










share|improve this question


















  • 2





    Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

    – sourcejedi
    Feb 28 '13 at 21:51











  • I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

    – Paul
    Feb 28 '13 at 23:22











  • You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

    – sourcejedi
    Mar 1 '13 at 14:12
















2















I'm working on helping my brother with a project. He has been running Lubuntu Linux from a USB drive while he was setting up some server and web projects (proof of concept). Now that he has the official OK from his company to roll it out, he would like to transfer the OS that resides on the USB to a partition on his hard drive, so he can avoid having to reconfigure everything on a clean install. Neither of us has cloned a Linux install before, so I'm not sure where to start or if this type of clone/move is even possible.










share|improve this question


















  • 2





    Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

    – sourcejedi
    Feb 28 '13 at 21:51











  • I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

    – Paul
    Feb 28 '13 at 23:22











  • You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

    – sourcejedi
    Mar 1 '13 at 14:12














2












2








2


1






I'm working on helping my brother with a project. He has been running Lubuntu Linux from a USB drive while he was setting up some server and web projects (proof of concept). Now that he has the official OK from his company to roll it out, he would like to transfer the OS that resides on the USB to a partition on his hard drive, so he can avoid having to reconfigure everything on a clean install. Neither of us has cloned a Linux install before, so I'm not sure where to start or if this type of clone/move is even possible.










share|improve this question














I'm working on helping my brother with a project. He has been running Lubuntu Linux from a USB drive while he was setting up some server and web projects (proof of concept). Now that he has the official OK from his company to roll it out, he would like to transfer the OS that resides on the USB to a partition on his hard drive, so he can avoid having to reconfigure everything on a clean install. Neither of us has cloned a Linux install before, so I'm not sure where to start or if this type of clone/move is even possible.







linux hard-drive clone liveusb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 28 '13 at 21:34









techturtletechturtle

7,079103163




7,079103163








  • 2





    Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

    – sourcejedi
    Feb 28 '13 at 21:51











  • I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

    – Paul
    Feb 28 '13 at 23:22











  • You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

    – sourcejedi
    Mar 1 '13 at 14:12














  • 2





    Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

    – sourcejedi
    Feb 28 '13 at 21:51











  • I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

    – Paul
    Feb 28 '13 at 23:22











  • You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

    – sourcejedi
    Mar 1 '13 at 14:12








2




2





Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

– sourcejedi
Feb 28 '13 at 21:51





Possible, yes. But if you can't find a one-click option provided by Ubuntu, I would suggest not trying it as a newbie. Using the normal installer will handle a number of hassles for you. You could then try to copy various things over, like feeding.cloud.geek.nz/posts/… EXCEPT the liveusb storage is probably a bit exotic to get access to. You could do it the other way to that guy: after the hard drive install, you can boot the liveusb again, and at least copy your home directory to the hard drive. Good luck.

– sourcejedi
Feb 28 '13 at 21:51













I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

– Paul
Feb 28 '13 at 23:22





I agree with @sourcejedi - except to say not only is this possible, it is fairly straightforward as compared to windows, and cloning linux is common practice and doesn't need special tools - you can literally just copy the files. However, you will need to set up the bootloader, possibly use a different kernel, and fix up /etc/fstab. Without experience, these things are likely to be a showstopper.

– Paul
Feb 28 '13 at 23:22













You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

– sourcejedi
Mar 1 '13 at 14:12





You forgot: also (usually) need to shrink the Windows partition and create a new partition for Linux :). That's the scariest bit IMO.

– sourcejedi
Mar 1 '13 at 14:12










1 Answer
1






active

oldest

votes


















0














Linux is easily cloned because it doesn't depend on hard drive sector placements to boot. What you will need:




  1. Backup your computer AND your USB drive.

  2. Create your partition table with at least one Linux-compatible file system

  3. Boot from a live CD and rsync your system from the USB drive. (Don't boot from the USB in question).

  4. Edit your /etc/fstab to reflect your new drive configuration.

  5. chroot into your new system and set up grub as your boot manager.

  6. Reboot.


I won't go into detail on each of these steps because it's a risky procedure and you need to do your research on this yourself. At any rate, do your backups! Did I mention you need to create backups first?






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f559017%2fcan-i-move-linux-from-running-on-a-usb-to-a-hard-drive-partition%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









    0














    Linux is easily cloned because it doesn't depend on hard drive sector placements to boot. What you will need:




    1. Backup your computer AND your USB drive.

    2. Create your partition table with at least one Linux-compatible file system

    3. Boot from a live CD and rsync your system from the USB drive. (Don't boot from the USB in question).

    4. Edit your /etc/fstab to reflect your new drive configuration.

    5. chroot into your new system and set up grub as your boot manager.

    6. Reboot.


    I won't go into detail on each of these steps because it's a risky procedure and you need to do your research on this yourself. At any rate, do your backups! Did I mention you need to create backups first?






    share|improve this answer




























      0














      Linux is easily cloned because it doesn't depend on hard drive sector placements to boot. What you will need:




      1. Backup your computer AND your USB drive.

      2. Create your partition table with at least one Linux-compatible file system

      3. Boot from a live CD and rsync your system from the USB drive. (Don't boot from the USB in question).

      4. Edit your /etc/fstab to reflect your new drive configuration.

      5. chroot into your new system and set up grub as your boot manager.

      6. Reboot.


      I won't go into detail on each of these steps because it's a risky procedure and you need to do your research on this yourself. At any rate, do your backups! Did I mention you need to create backups first?






      share|improve this answer


























        0












        0








        0







        Linux is easily cloned because it doesn't depend on hard drive sector placements to boot. What you will need:




        1. Backup your computer AND your USB drive.

        2. Create your partition table with at least one Linux-compatible file system

        3. Boot from a live CD and rsync your system from the USB drive. (Don't boot from the USB in question).

        4. Edit your /etc/fstab to reflect your new drive configuration.

        5. chroot into your new system and set up grub as your boot manager.

        6. Reboot.


        I won't go into detail on each of these steps because it's a risky procedure and you need to do your research on this yourself. At any rate, do your backups! Did I mention you need to create backups first?






        share|improve this answer













        Linux is easily cloned because it doesn't depend on hard drive sector placements to boot. What you will need:




        1. Backup your computer AND your USB drive.

        2. Create your partition table with at least one Linux-compatible file system

        3. Boot from a live CD and rsync your system from the USB drive. (Don't boot from the USB in question).

        4. Edit your /etc/fstab to reflect your new drive configuration.

        5. chroot into your new system and set up grub as your boot manager.

        6. Reboot.


        I won't go into detail on each of these steps because it's a risky procedure and you need to do your research on this yourself. At any rate, do your backups! Did I mention you need to create backups first?







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 14 '13 at 18:03









        Janos PasztorJanos Pasztor

        762412




        762412






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f559017%2fcan-i-move-linux-from-running-on-a-usb-to-a-hard-drive-partition%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

            Eduardo VII do Reino Unido