Can I move boot linux partition to another/drive partition and just boot from there?

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











up vote
0
down vote

favorite












Can I move working boot partition / root filesystem to another drive/partition and just boot from there?



Or device names will be changed and prevent from working?










share|improve this question














bumped to the homepage by Community♦ 2 days ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















    up vote
    0
    down vote

    favorite












    Can I move working boot partition / root filesystem to another drive/partition and just boot from there?



    Or device names will be changed and prevent from working?










    share|improve this question














    bumped to the homepage by Community♦ 2 days ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Can I move working boot partition / root filesystem to another drive/partition and just boot from there?



      Or device names will be changed and prevent from working?










      share|improve this question













      Can I move working boot partition / root filesystem to another drive/partition and just boot from there?



      Or device names will be changed and prevent from working?







      partition move-partition






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 12 '17 at 16:38









      Dims

      3151628




      3151628





      bumped to the homepage by Community♦ 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community♦ 2 days ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          0
          down vote













          If you use UUIDs in /etc/fstab (and other related files that may be relevant in your distro), like /dev/disk/by-uuid/57c59366-9196-4613-ba53-5ad24dcecfb9, and adjust your boot loader configuration if you move your kernel boot partition, then it should work.






          share|improve this answer




















          • uuid will not help if he is moving a whole partition content.
            – in1t3r
            Aug 12 '17 at 17:52










          • I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
            – in1t3r
            Aug 12 '17 at 18:01

















          up vote
          0
          down vote













          Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.



          If you are moving the files to new partition then don't forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID's of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.



          You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.



          After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sda



          Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.






          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%2f385696%2fcan-i-move-boot-linux-partition-to-another-drive-partition-and-just-boot-from-th%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            If you use UUIDs in /etc/fstab (and other related files that may be relevant in your distro), like /dev/disk/by-uuid/57c59366-9196-4613-ba53-5ad24dcecfb9, and adjust your boot loader configuration if you move your kernel boot partition, then it should work.






            share|improve this answer




















            • uuid will not help if he is moving a whole partition content.
              – in1t3r
              Aug 12 '17 at 17:52










            • I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
              – in1t3r
              Aug 12 '17 at 18:01














            up vote
            0
            down vote













            If you use UUIDs in /etc/fstab (and other related files that may be relevant in your distro), like /dev/disk/by-uuid/57c59366-9196-4613-ba53-5ad24dcecfb9, and adjust your boot loader configuration if you move your kernel boot partition, then it should work.






            share|improve this answer




















            • uuid will not help if he is moving a whole partition content.
              – in1t3r
              Aug 12 '17 at 17:52










            • I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
              – in1t3r
              Aug 12 '17 at 18:01












            up vote
            0
            down vote










            up vote
            0
            down vote









            If you use UUIDs in /etc/fstab (and other related files that may be relevant in your distro), like /dev/disk/by-uuid/57c59366-9196-4613-ba53-5ad24dcecfb9, and adjust your boot loader configuration if you move your kernel boot partition, then it should work.






            share|improve this answer












            If you use UUIDs in /etc/fstab (and other related files that may be relevant in your distro), like /dev/disk/by-uuid/57c59366-9196-4613-ba53-5ad24dcecfb9, and adjust your boot loader configuration if you move your kernel boot partition, then it should work.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 12 '17 at 17:12









            L29Ah

            481113




            481113











            • uuid will not help if he is moving a whole partition content.
              – in1t3r
              Aug 12 '17 at 17:52










            • I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
              – in1t3r
              Aug 12 '17 at 18:01
















            • uuid will not help if he is moving a whole partition content.
              – in1t3r
              Aug 12 '17 at 17:52










            • I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
              – in1t3r
              Aug 12 '17 at 18:01















            uuid will not help if he is moving a whole partition content.
            – in1t3r
            Aug 12 '17 at 17:52




            uuid will not help if he is moving a whole partition content.
            – in1t3r
            Aug 12 '17 at 17:52












            I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
            – in1t3r
            Aug 12 '17 at 18:01




            I meant if he is creating new partition and moving to that new partition content of /boot that new partition will have different UUID its easier to use labels as its easier to keep track of them.
            – in1t3r
            Aug 12 '17 at 18:01












            up vote
            0
            down vote













            Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.



            If you are moving the files to new partition then don't forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID's of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.



            You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.



            After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sda



            Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.






            share|improve this answer
























              up vote
              0
              down vote













              Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.



              If you are moving the files to new partition then don't forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID's of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.



              You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.



              After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sda



              Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.



                If you are moving the files to new partition then don't forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID's of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.



                You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.



                After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sda



                Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.






                share|improve this answer












                Yes it is possible. Also its not easy. If you intent to move separated /boot partition and or / partition you should consider first of all changing the fstab entries.



                If you are moving the files to new partition then don't forget to use cp -p while copying to preserve permissions. adjust then your /etc/fstab to the new UUID's of partitions that you will use. YOu can get the partition uuid by running blkid /dev/sdXn where X is name of the drive and n number of partition.



                You can also use blkid to attach labels to your partitions and then mount via labels which is much easier read man blkid to learn more.



                After you change the partitions and adjust /etc/fstab you should run the update-grub - available on Debian/Ubuntu script or grub-mkconfig -o /boot/grub/grub.cfg to generate a new config file and then reinstall grub into the first hdd that you bot from. grub-install --recheck /dev/sda



                Of course do not forget that when copiying mount a new / or /boot partition on /mnt and after copying all of the files mount them as / and /boot chroot and only then run update of the grub if you want things to be done correctly.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 12 '17 at 18:00









                in1t3r

                868




                868



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f385696%2fcan-i-move-boot-linux-partition-to-another-drive-partition-and-just-boot-from-th%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)