repack .img file from usb that have been partitioned to two partition

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











up vote
0
down vote

favorite












i have an img file with unix system.
i used "win32diskimager" to create a bootable usb from that img file.
i booted successfully and i installed some packages.
now i want to repack it to img file again.
the usb is split to two partitions.
i tried to use dd in two forms
that is the result of parted the original .img
Disk Flags:



Number Start End Size File system Name Flags



1 32768B 100000255B 99967488B fat32 primary msftdata



2 100000256B 7516175871B 7416175616B ext3 primary



1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)



2) dd if=/dev/sdc1 of=myimg_try2.img



dd if=/dev/sdc2 >myimg_try2.img



any of this options didn't worked to me(i tried to load the output result).
any ideas how can i do it?










share|improve this question

























    up vote
    0
    down vote

    favorite












    i have an img file with unix system.
    i used "win32diskimager" to create a bootable usb from that img file.
    i booted successfully and i installed some packages.
    now i want to repack it to img file again.
    the usb is split to two partitions.
    i tried to use dd in two forms
    that is the result of parted the original .img
    Disk Flags:



    Number Start End Size File system Name Flags



    1 32768B 100000255B 99967488B fat32 primary msftdata



    2 100000256B 7516175871B 7416175616B ext3 primary



    1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)



    2) dd if=/dev/sdc1 of=myimg_try2.img



    dd if=/dev/sdc2 >myimg_try2.img



    any of this options didn't worked to me(i tried to load the output result).
    any ideas how can i do it?










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      i have an img file with unix system.
      i used "win32diskimager" to create a bootable usb from that img file.
      i booted successfully and i installed some packages.
      now i want to repack it to img file again.
      the usb is split to two partitions.
      i tried to use dd in two forms
      that is the result of parted the original .img
      Disk Flags:



      Number Start End Size File system Name Flags



      1 32768B 100000255B 99967488B fat32 primary msftdata



      2 100000256B 7516175871B 7416175616B ext3 primary



      1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)



      2) dd if=/dev/sdc1 of=myimg_try2.img



      dd if=/dev/sdc2 >myimg_try2.img



      any of this options didn't worked to me(i tried to load the output result).
      any ideas how can i do it?










      share|improve this question













      i have an img file with unix system.
      i used "win32diskimager" to create a bootable usb from that img file.
      i booted successfully and i installed some packages.
      now i want to repack it to img file again.
      the usb is split to two partitions.
      i tried to use dd in two forms
      that is the result of parted the original .img
      Disk Flags:



      Number Start End Size File system Name Flags



      1 32768B 100000255B 99967488B fat32 primary msftdata



      2 100000256B 7516175871B 7416175616B ext3 primary



      1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)



      2) dd if=/dev/sdc1 of=myimg_try2.img



      dd if=/dev/sdc2 >myimg_try2.img



      any of this options didn't worked to me(i tried to load the output result).
      any ideas how can i do it?







      dd disk-image






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 27 at 15:25









      Yonatan Amir

      11




      11

























          active

          oldest

          votes











          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%2f471859%2frepack-img-file-from-usb-that-have-been-partitioned-to-two-partition%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471859%2frepack-img-file-from-usb-that-have-been-partitioned-to-two-partition%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)