I want to clone and restore my entire Ubuntu system but I am not sure how to work with partitions
CURRENT SETTING
I have two different Ubuntu distribution coexisting: a bigger drive with Gallium OS and a smaller one with Ubuntu 18.10.
I first installed Gallium, and later I added Ubuntu. This is how my partitions are divided up.
Disk /dev/sda: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6D115618-F5A2-A34B-AD91-2692BBC3AFCA
Device Start End Sectors Size Type
/dev/sda1 8671232 17707007 9035776 4,3G Microsoft basic data
/dev/sda2 20480 53247 32768 16M ChromeOS kernel
/dev/sda3 4476928 8671231 4194304 2G ChromeOS root fs
/dev/sda4 53248 86015 32768 16M ChromeOS kernel
/dev/sda5 282624 4476927 4194304 2G ChromeOS root fs
/dev/sda6 17707008 17739775 32768 16M ChromeOS kernel
/dev/sda7 17739776 417049474 399309699 190,4G ChromeOS root fs
/dev/sda8 86016 118783 32768 16M Microsoft basic data
/dev/sda9 16450 16450 1 512B ChromeOS reserved
/dev/sda10 16451 16451 1 512B ChromeOS reserved
/dev/sda11 64 16447 16384 8M unknown
/dev/sda12 249856 282623 32768 16M EFI System
/dev/sda13 417050624 417052671 2048 1M BIOS boot
/dev/sda14 417052672 500117503 83064832 39,6G Linux filesystem
Partition table entries are not in disk order.
WHAT I WANT TO DO
Clone only Ubuntu (smaller part) into an external drive, which is itself divided into two partition (say sdX1 and sdX2). I actually want to clone Ubuntu into sdX2.
Subsequently I plan to wipe the all computer clean, fresh install Windows 10, and after install Ubuntu 18.10 alongside it. This Ubuntu install should actually be the clone I have on my sdX2
QUESTIONS
- Is it possible (and safe) to do what I am trying to do? Or is it
better to fresh install everything? I have another backup of my home
folder, so I would have to reinstall all programs manually. - Is
dd
the right tool to do this? Or should I use something else? I knowClonezilla
is a popular alternative but I ran out of external drives.. - How should I go about handling cloning with this partition setup?
dual-boot backup restore dd
add a comment |
CURRENT SETTING
I have two different Ubuntu distribution coexisting: a bigger drive with Gallium OS and a smaller one with Ubuntu 18.10.
I first installed Gallium, and later I added Ubuntu. This is how my partitions are divided up.
Disk /dev/sda: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6D115618-F5A2-A34B-AD91-2692BBC3AFCA
Device Start End Sectors Size Type
/dev/sda1 8671232 17707007 9035776 4,3G Microsoft basic data
/dev/sda2 20480 53247 32768 16M ChromeOS kernel
/dev/sda3 4476928 8671231 4194304 2G ChromeOS root fs
/dev/sda4 53248 86015 32768 16M ChromeOS kernel
/dev/sda5 282624 4476927 4194304 2G ChromeOS root fs
/dev/sda6 17707008 17739775 32768 16M ChromeOS kernel
/dev/sda7 17739776 417049474 399309699 190,4G ChromeOS root fs
/dev/sda8 86016 118783 32768 16M Microsoft basic data
/dev/sda9 16450 16450 1 512B ChromeOS reserved
/dev/sda10 16451 16451 1 512B ChromeOS reserved
/dev/sda11 64 16447 16384 8M unknown
/dev/sda12 249856 282623 32768 16M EFI System
/dev/sda13 417050624 417052671 2048 1M BIOS boot
/dev/sda14 417052672 500117503 83064832 39,6G Linux filesystem
Partition table entries are not in disk order.
WHAT I WANT TO DO
Clone only Ubuntu (smaller part) into an external drive, which is itself divided into two partition (say sdX1 and sdX2). I actually want to clone Ubuntu into sdX2.
Subsequently I plan to wipe the all computer clean, fresh install Windows 10, and after install Ubuntu 18.10 alongside it. This Ubuntu install should actually be the clone I have on my sdX2
QUESTIONS
- Is it possible (and safe) to do what I am trying to do? Or is it
better to fresh install everything? I have another backup of my home
folder, so I would have to reinstall all programs manually. - Is
dd
the right tool to do this? Or should I use something else? I knowClonezilla
is a popular alternative but I ran out of external drives.. - How should I go about handling cloning with this partition setup?
dual-boot backup restore dd
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26
add a comment |
CURRENT SETTING
I have two different Ubuntu distribution coexisting: a bigger drive with Gallium OS and a smaller one with Ubuntu 18.10.
I first installed Gallium, and later I added Ubuntu. This is how my partitions are divided up.
Disk /dev/sda: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6D115618-F5A2-A34B-AD91-2692BBC3AFCA
Device Start End Sectors Size Type
/dev/sda1 8671232 17707007 9035776 4,3G Microsoft basic data
/dev/sda2 20480 53247 32768 16M ChromeOS kernel
/dev/sda3 4476928 8671231 4194304 2G ChromeOS root fs
/dev/sda4 53248 86015 32768 16M ChromeOS kernel
/dev/sda5 282624 4476927 4194304 2G ChromeOS root fs
/dev/sda6 17707008 17739775 32768 16M ChromeOS kernel
/dev/sda7 17739776 417049474 399309699 190,4G ChromeOS root fs
/dev/sda8 86016 118783 32768 16M Microsoft basic data
/dev/sda9 16450 16450 1 512B ChromeOS reserved
/dev/sda10 16451 16451 1 512B ChromeOS reserved
/dev/sda11 64 16447 16384 8M unknown
/dev/sda12 249856 282623 32768 16M EFI System
/dev/sda13 417050624 417052671 2048 1M BIOS boot
/dev/sda14 417052672 500117503 83064832 39,6G Linux filesystem
Partition table entries are not in disk order.
WHAT I WANT TO DO
Clone only Ubuntu (smaller part) into an external drive, which is itself divided into two partition (say sdX1 and sdX2). I actually want to clone Ubuntu into sdX2.
Subsequently I plan to wipe the all computer clean, fresh install Windows 10, and after install Ubuntu 18.10 alongside it. This Ubuntu install should actually be the clone I have on my sdX2
QUESTIONS
- Is it possible (and safe) to do what I am trying to do? Or is it
better to fresh install everything? I have another backup of my home
folder, so I would have to reinstall all programs manually. - Is
dd
the right tool to do this? Or should I use something else? I knowClonezilla
is a popular alternative but I ran out of external drives.. - How should I go about handling cloning with this partition setup?
dual-boot backup restore dd
CURRENT SETTING
I have two different Ubuntu distribution coexisting: a bigger drive with Gallium OS and a smaller one with Ubuntu 18.10.
I first installed Gallium, and later I added Ubuntu. This is how my partitions are divided up.
Disk /dev/sda: 238,5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6D115618-F5A2-A34B-AD91-2692BBC3AFCA
Device Start End Sectors Size Type
/dev/sda1 8671232 17707007 9035776 4,3G Microsoft basic data
/dev/sda2 20480 53247 32768 16M ChromeOS kernel
/dev/sda3 4476928 8671231 4194304 2G ChromeOS root fs
/dev/sda4 53248 86015 32768 16M ChromeOS kernel
/dev/sda5 282624 4476927 4194304 2G ChromeOS root fs
/dev/sda6 17707008 17739775 32768 16M ChromeOS kernel
/dev/sda7 17739776 417049474 399309699 190,4G ChromeOS root fs
/dev/sda8 86016 118783 32768 16M Microsoft basic data
/dev/sda9 16450 16450 1 512B ChromeOS reserved
/dev/sda10 16451 16451 1 512B ChromeOS reserved
/dev/sda11 64 16447 16384 8M unknown
/dev/sda12 249856 282623 32768 16M EFI System
/dev/sda13 417050624 417052671 2048 1M BIOS boot
/dev/sda14 417052672 500117503 83064832 39,6G Linux filesystem
Partition table entries are not in disk order.
WHAT I WANT TO DO
Clone only Ubuntu (smaller part) into an external drive, which is itself divided into two partition (say sdX1 and sdX2). I actually want to clone Ubuntu into sdX2.
Subsequently I plan to wipe the all computer clean, fresh install Windows 10, and after install Ubuntu 18.10 alongside it. This Ubuntu install should actually be the clone I have on my sdX2
QUESTIONS
- Is it possible (and safe) to do what I am trying to do? Or is it
better to fresh install everything? I have another backup of my home
folder, so I would have to reinstall all programs manually. - Is
dd
the right tool to do this? Or should I use something else? I knowClonezilla
is a popular alternative but I ran out of external drives.. - How should I go about handling cloning with this partition setup?
dual-boot backup restore dd
dual-boot backup restore dd
asked Jan 14 at 11:38
Fede9390Fede9390
11
11
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26
add a comment |
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109609%2fi-want-to-clone-and-restore-my-entire-ubuntu-system-but-i-am-not-sure-how-to-wor%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
Thanks for contributing an answer to Ask Ubuntu!
- 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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1109609%2fi-want-to-clone-and-restore-my-entire-ubuntu-system-but-i-am-not-sure-how-to-wor%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Possible? Yes. Safe? No method of cloning and/or reinstalling an OS is "safe" - they are all deliberately the opposite. Your proposed method is certainly worth a try, and I think it will work. I gently suggest a second (non-cloned) data backup on a separate media in case of a typo or other awful mistake. This is precisely the time you want to go belt-and-suspenders.
– user535733
Jan 14 at 16:26