Copy Ubuntu partition onto third drive

Clash Royale CLAN TAG#URR8PPP up vote
0
down vote
favorite
I am runnging Ubuntu 17.10 on an HD at the moment. This was just a "test" but I am so pleased with Ubuntu I would like to make it my main environment and have it on SSD. I have then bought a 500GB SSD to copy the partition onto.
Here is the sudo fdisk -l
Disk /dev/sda: 2,7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 79D251DE-01BE-42D2-9496-577131B7AAA3
Device Start End Sectors Size Type
/dev/sda1 2048 264191 262144 128M Microsoft reserved
/dev/sda2 264192 4836530175 4836265984 2,3T Microsoft basic data
/dev/sda3 4836530176 4837580799 1050624 513M EFI System
/dev/sda4 4837580800 5860532223 1022951424 487,8G Linux filesystem
Disk /dev/sdb: 465,8 GiB, 500107862016 bytes, 976773168 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
Disk /dev/sdc: 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: 8F5D0460-2DBF-4694-A678-4C3449214D1A
Device Start End Sectors Size Type
/dev/sdc1 2048 1026047 1024000 500M EFI System
/dev/sdc2 1026048 1107967 81920 40M unknown
/dev/sdc3 1107968 1370111 262144 128M Microsoft reserved
/dev/sdc4 1370112 5564415 4194304 2G Windows recovery environment
/dev/sdc5 5564416 473012518 467448103 222,9G Microsoft basic data
/dev/sdc6 473014272 474040319 1026048 501M Windows recovery environment
/dev/sdc7 474040320 500116143 26075824 12,4G Windows recovery environment
new drive is SDB. SDA being the 3TO HD with the 500GB Ubuntu partition. SDC is windows.
I have come across a lot of tutorials to copy the Ubuntu partition but most mentionned a rescue disk/USB. Is it necessary here ? Is there a preferable tutorial ?
hard-drive backup
 |Â
show 2 more comments
up vote
0
down vote
favorite
I am runnging Ubuntu 17.10 on an HD at the moment. This was just a "test" but I am so pleased with Ubuntu I would like to make it my main environment and have it on SSD. I have then bought a 500GB SSD to copy the partition onto.
Here is the sudo fdisk -l
Disk /dev/sda: 2,7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 79D251DE-01BE-42D2-9496-577131B7AAA3
Device Start End Sectors Size Type
/dev/sda1 2048 264191 262144 128M Microsoft reserved
/dev/sda2 264192 4836530175 4836265984 2,3T Microsoft basic data
/dev/sda3 4836530176 4837580799 1050624 513M EFI System
/dev/sda4 4837580800 5860532223 1022951424 487,8G Linux filesystem
Disk /dev/sdb: 465,8 GiB, 500107862016 bytes, 976773168 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
Disk /dev/sdc: 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: 8F5D0460-2DBF-4694-A678-4C3449214D1A
Device Start End Sectors Size Type
/dev/sdc1 2048 1026047 1024000 500M EFI System
/dev/sdc2 1026048 1107967 81920 40M unknown
/dev/sdc3 1107968 1370111 262144 128M Microsoft reserved
/dev/sdc4 1370112 5564415 4194304 2G Windows recovery environment
/dev/sdc5 5564416 473012518 467448103 222,9G Microsoft basic data
/dev/sdc6 473014272 474040319 1026048 501M Windows recovery environment
/dev/sdc7 474040320 500116143 26075824 12,4G Windows recovery environment
new drive is SDB. SDA being the 3TO HD with the 500GB Ubuntu partition. SDC is windows.
I have come across a lot of tutorials to copy the Ubuntu partition but most mentionned a rescue disk/USB. Is it necessary here ? Is there a preferable tutorial ?
hard-drive backup
2
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06
 |Â
show 2 more comments
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am runnging Ubuntu 17.10 on an HD at the moment. This was just a "test" but I am so pleased with Ubuntu I would like to make it my main environment and have it on SSD. I have then bought a 500GB SSD to copy the partition onto.
Here is the sudo fdisk -l
Disk /dev/sda: 2,7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 79D251DE-01BE-42D2-9496-577131B7AAA3
Device Start End Sectors Size Type
/dev/sda1 2048 264191 262144 128M Microsoft reserved
/dev/sda2 264192 4836530175 4836265984 2,3T Microsoft basic data
/dev/sda3 4836530176 4837580799 1050624 513M EFI System
/dev/sda4 4837580800 5860532223 1022951424 487,8G Linux filesystem
Disk /dev/sdb: 465,8 GiB, 500107862016 bytes, 976773168 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
Disk /dev/sdc: 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: 8F5D0460-2DBF-4694-A678-4C3449214D1A
Device Start End Sectors Size Type
/dev/sdc1 2048 1026047 1024000 500M EFI System
/dev/sdc2 1026048 1107967 81920 40M unknown
/dev/sdc3 1107968 1370111 262144 128M Microsoft reserved
/dev/sdc4 1370112 5564415 4194304 2G Windows recovery environment
/dev/sdc5 5564416 473012518 467448103 222,9G Microsoft basic data
/dev/sdc6 473014272 474040319 1026048 501M Windows recovery environment
/dev/sdc7 474040320 500116143 26075824 12,4G Windows recovery environment
new drive is SDB. SDA being the 3TO HD with the 500GB Ubuntu partition. SDC is windows.
I have come across a lot of tutorials to copy the Ubuntu partition but most mentionned a rescue disk/USB. Is it necessary here ? Is there a preferable tutorial ?
hard-drive backup
I am runnging Ubuntu 17.10 on an HD at the moment. This was just a "test" but I am so pleased with Ubuntu I would like to make it my main environment and have it on SSD. I have then bought a 500GB SSD to copy the partition onto.
Here is the sudo fdisk -l
Disk /dev/sda: 2,7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 79D251DE-01BE-42D2-9496-577131B7AAA3
Device Start End Sectors Size Type
/dev/sda1 2048 264191 262144 128M Microsoft reserved
/dev/sda2 264192 4836530175 4836265984 2,3T Microsoft basic data
/dev/sda3 4836530176 4837580799 1050624 513M EFI System
/dev/sda4 4837580800 5860532223 1022951424 487,8G Linux filesystem
Disk /dev/sdb: 465,8 GiB, 500107862016 bytes, 976773168 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
Disk /dev/sdc: 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: 8F5D0460-2DBF-4694-A678-4C3449214D1A
Device Start End Sectors Size Type
/dev/sdc1 2048 1026047 1024000 500M EFI System
/dev/sdc2 1026048 1107967 81920 40M unknown
/dev/sdc3 1107968 1370111 262144 128M Microsoft reserved
/dev/sdc4 1370112 5564415 4194304 2G Windows recovery environment
/dev/sdc5 5564416 473012518 467448103 222,9G Microsoft basic data
/dev/sdc6 473014272 474040319 1026048 501M Windows recovery environment
/dev/sdc7 474040320 500116143 26075824 12,4G Windows recovery environment
new drive is SDB. SDA being the 3TO HD with the 500GB Ubuntu partition. SDC is windows.
I have come across a lot of tutorials to copy the Ubuntu partition but most mentionned a rescue disk/USB. Is it necessary here ? Is there a preferable tutorial ?
hard-drive backup
hard-drive backup
asked Feb 28 at 14:38
Maxence
1157
1157
2
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06
 |Â
show 2 more comments
2
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06
2
2
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06
 |Â
show 2 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1010672%2fcopy-ubuntu-partition-onto-third-drive%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
2
Do not copy, just reinstall and then copy /home and perhaps list of install apps. You do want to partition in advance with gpt for UEFI since other install is UEFI. help.ubuntu.com/community/DiskSpace & askubuntu.com/questions/743095/⦠& help.ubuntu.com/community/UEFI Be sure to include ESP - efi system partition on drive, even if not immediately used. You cannot easily copy one partition on a gpt partitioned drive.
â oldfred
Feb 28 at 15:56
Thank you @oldfred, I will do what you advise. I am not very sure, when I installed Ubuntu 17.10 I guess it installed this EFI SYSTEM partition automatically. Only thing I opted out was the swap as I have enough RAM. So I will try to replicate and check your guides, especially for the Grub as I will have 2 Ubuntu environments for a while..
â Maxence
Mar 1 at 16:04
If you have two Ubuntu installs, only one will be in UEFI boot menu and you have to use grub menu to boot other install. I do backup ESP - efi system partition as I typically just install a second version for testing & want grub to be controlled by main working install. then I restore /EFI/ubuntu folder(s) with main working installs version. And then update it to add new install to grub menu.
â oldfred
Mar 1 at 20:31
ohh for now I get offered Ubuntu or Windows directly inside Grub. I never see any Bios invite. I am waiting for a PSU cable at the moment, but once my Pc is up and running, I will install and then troubleshoot if needed. (and erase old partition once new install is done)
â Maxence
Mar 1 at 23:14
Most systems use f10 or f12 for UEFI boot menu. Some use Escape & f8. What brand/model system? Some are not dual boot friendly and need various work arounds.
â oldfred
Mar 2 at 0:06