Create iso image of persistent live usb with multiple partitions












1















Using this awesome tutorial I was able to create a bootable Debian live USB with persistence.



After some days using it, it's quite configured and I would like to be able to replicate it into another usb drive.



Is there any way to do it?



I was thinking of creating an ISO image of the configured USB flash drive, but since it has multiple partitions I don't even know if it is possible.










share|improve this question
















bumped to the homepage by Community 29 mins ago


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




















    1















    Using this awesome tutorial I was able to create a bootable Debian live USB with persistence.



    After some days using it, it's quite configured and I would like to be able to replicate it into another usb drive.



    Is there any way to do it?



    I was thinking of creating an ISO image of the configured USB flash drive, but since it has multiple partitions I don't even know if it is possible.










    share|improve this question
















    bumped to the homepage by Community 29 mins ago


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


















      1












      1








      1








      Using this awesome tutorial I was able to create a bootable Debian live USB with persistence.



      After some days using it, it's quite configured and I would like to be able to replicate it into another usb drive.



      Is there any way to do it?



      I was thinking of creating an ISO image of the configured USB flash drive, but since it has multiple partitions I don't even know if it is possible.










      share|improve this question
















      Using this awesome tutorial I was able to create a bootable Debian live USB with persistence.



      After some days using it, it's quite configured and I would like to be able to replicate it into another usb drive.



      Is there any way to do it?



      I was thinking of creating an ISO image of the configured USB flash drive, but since it has multiple partitions I don't even know if it is possible.







      debian






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 15 '17 at 5:49









      Noam M

      4311516




      4311516










      asked Aug 14 '17 at 20:16









      UxioUxio

      185




      185





      bumped to the homepage by Community 29 mins 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 29 mins 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


















          0














          Just dd or cat the whole device file like /dev/sdb into a file and the other way around.






          share|improve this answer
























          • It's also required to umount first the device in order to make iso image or dump the iso image.

            – Uxio
            Aug 15 '17 at 11:58



















          0














          If the new USB drive is equal in size or larger, you can use dd to duplicate the drive (/dev/sdX being the template drive, /dev/sdY being the new drive):



          dd if=/dev/sdX of=/dev/sdY bs=1M conv=sync



          Otherwise, or if the new drive is larger than the template drive and you want to use a maximum amount of space for the persistence partition, you can prepare the new drive like you did prepare the template drive and then copy the persistence partition contents from the template drive to the new drive (simple file copy).






          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f386100%2fcreate-iso-image-of-persistent-live-usb-with-multiple-partitions%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Just dd or cat the whole device file like /dev/sdb into a file and the other way around.






            share|improve this answer
























            • It's also required to umount first the device in order to make iso image or dump the iso image.

              – Uxio
              Aug 15 '17 at 11:58
















            0














            Just dd or cat the whole device file like /dev/sdb into a file and the other way around.






            share|improve this answer
























            • It's also required to umount first the device in order to make iso image or dump the iso image.

              – Uxio
              Aug 15 '17 at 11:58














            0












            0








            0







            Just dd or cat the whole device file like /dev/sdb into a file and the other way around.






            share|improve this answer













            Just dd or cat the whole device file like /dev/sdb into a file and the other way around.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Aug 14 '17 at 21:26









            L29AhL29Ah

            559114




            559114













            • It's also required to umount first the device in order to make iso image or dump the iso image.

              – Uxio
              Aug 15 '17 at 11:58



















            • It's also required to umount first the device in order to make iso image or dump the iso image.

              – Uxio
              Aug 15 '17 at 11:58

















            It's also required to umount first the device in order to make iso image or dump the iso image.

            – Uxio
            Aug 15 '17 at 11:58





            It's also required to umount first the device in order to make iso image or dump the iso image.

            – Uxio
            Aug 15 '17 at 11:58













            0














            If the new USB drive is equal in size or larger, you can use dd to duplicate the drive (/dev/sdX being the template drive, /dev/sdY being the new drive):



            dd if=/dev/sdX of=/dev/sdY bs=1M conv=sync



            Otherwise, or if the new drive is larger than the template drive and you want to use a maximum amount of space for the persistence partition, you can prepare the new drive like you did prepare the template drive and then copy the persistence partition contents from the template drive to the new drive (simple file copy).






            share|improve this answer




























              0














              If the new USB drive is equal in size or larger, you can use dd to duplicate the drive (/dev/sdX being the template drive, /dev/sdY being the new drive):



              dd if=/dev/sdX of=/dev/sdY bs=1M conv=sync



              Otherwise, or if the new drive is larger than the template drive and you want to use a maximum amount of space for the persistence partition, you can prepare the new drive like you did prepare the template drive and then copy the persistence partition contents from the template drive to the new drive (simple file copy).






              share|improve this answer


























                0












                0








                0







                If the new USB drive is equal in size or larger, you can use dd to duplicate the drive (/dev/sdX being the template drive, /dev/sdY being the new drive):



                dd if=/dev/sdX of=/dev/sdY bs=1M conv=sync



                Otherwise, or if the new drive is larger than the template drive and you want to use a maximum amount of space for the persistence partition, you can prepare the new drive like you did prepare the template drive and then copy the persistence partition contents from the template drive to the new drive (simple file copy).






                share|improve this answer













                If the new USB drive is equal in size or larger, you can use dd to duplicate the drive (/dev/sdX being the template drive, /dev/sdY being the new drive):



                dd if=/dev/sdX of=/dev/sdY bs=1M conv=sync



                Otherwise, or if the new drive is larger than the template drive and you want to use a maximum amount of space for the persistence partition, you can prepare the new drive like you did prepare the template drive and then copy the persistence partition contents from the template drive to the new drive (simple file copy).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 3 '17 at 18:02









                schlimmchenschlimmchen

                6681615




                6681615






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f386100%2fcreate-iso-image-of-persistent-live-usb-with-multiple-partitions%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

                    CARDNET

                    Boot-repair Failure: Unable to locate package grub-common:i386

                    濃尾地震