How to clone a whole partition from usb while booting

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












-2















im searching a way to clone a whole partition from a usb stick to a pc.



I could use a live operation system e.g. ubuntu and use dd to copy it, but im searching for a way that laity can also do that.
Example:
A laity plug in the usb-stick, the usb-stick automaticly clone the partition from the usb-stick to the hdd from the pc.



Is there maybe already a way for that ?










share|improve this question






















  • It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

    – sudodus
    Mar 6 at 13:34












  • I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

    – False
    Mar 6 at 13:50











  • So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

    – sudodus
    Mar 6 at 13:55











  • How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

    – False
    Mar 6 at 14:04











  • Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

    – sudodus
    Mar 6 at 14:14
















-2















im searching a way to clone a whole partition from a usb stick to a pc.



I could use a live operation system e.g. ubuntu and use dd to copy it, but im searching for a way that laity can also do that.
Example:
A laity plug in the usb-stick, the usb-stick automaticly clone the partition from the usb-stick to the hdd from the pc.



Is there maybe already a way for that ?










share|improve this question






















  • It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

    – sudodus
    Mar 6 at 13:34












  • I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

    – False
    Mar 6 at 13:50











  • So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

    – sudodus
    Mar 6 at 13:55











  • How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

    – False
    Mar 6 at 14:04











  • Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

    – sudodus
    Mar 6 at 14:14














-2












-2








-2








im searching a way to clone a whole partition from a usb stick to a pc.



I could use a live operation system e.g. ubuntu and use dd to copy it, but im searching for a way that laity can also do that.
Example:
A laity plug in the usb-stick, the usb-stick automaticly clone the partition from the usb-stick to the hdd from the pc.



Is there maybe already a way for that ?










share|improve this question














im searching a way to clone a whole partition from a usb stick to a pc.



I could use a live operation system e.g. ubuntu and use dd to copy it, but im searching for a way that laity can also do that.
Example:
A laity plug in the usb-stick, the usb-stick automaticly clone the partition from the usb-stick to the hdd from the pc.



Is there maybe already a way for that ?







linux boot partition clone






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 6 at 13:12









FalseFalse

12




12












  • It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

    – sudodus
    Mar 6 at 13:34












  • I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

    – False
    Mar 6 at 13:50











  • So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

    – sudodus
    Mar 6 at 13:55











  • How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

    – False
    Mar 6 at 14:04











  • Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

    – sudodus
    Mar 6 at 14:14


















  • It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

    – sudodus
    Mar 6 at 13:34












  • I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

    – False
    Mar 6 at 13:50











  • So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

    – sudodus
    Mar 6 at 13:55











  • How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

    – False
    Mar 6 at 14:04











  • Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

    – sudodus
    Mar 6 at 14:14

















It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

– sudodus
Mar 6 at 13:34






It seems risky to do that automatically. At least there should be a dialogue where the user can check carefully before deciding to run the cloning operation. Otherwise there is a big risk that valuable data will be overwritten. - What is the content of the partition? How should the target drive be prepared in order to get things right? - Do you actually intend to clone the whole drive, not only a partition?

– sudodus
Mar 6 at 13:34














I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

– False
Mar 6 at 13:50





I have 2 partitions, one for the os (always 20GB) and the other partition for variable data e.g. images etc. I want to copy the os partition so the customer can update the system.

– False
Mar 6 at 13:50













So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

– sudodus
Mar 6 at 13:55





So the customer has a similar partition table, and the cloning should be safe? In that case you could have a persistent live system and autostart a shellscript, that runs the commands necessary for the correct cloning of the image to the target.

– sudodus
Mar 6 at 13:55













How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

– False
Mar 6 at 14:04





How i can start the shellscript on the usb-stick ? I want that the customer plugin the usb-stick, boot from there and automaticly copy the os partition from the usb-stick to the pc.

– False
Mar 6 at 14:04













Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

– sudodus
Mar 6 at 14:14






Maybe the following link can help you. It is not exactly what you want, but you can probably use the same method. A: How can I make a bootable, unattended USB restore disk?

– sudodus
Mar 6 at 14:14











0






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',
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%2f504705%2fhow-to-clone-a-whole-partition-from-usb-while-booting%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















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%2f504705%2fhow-to-clone-a-whole-partition-from-usb-while-booting%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

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?