How to clone Ubuntu 18.04 LTS from HDD to SSD?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda
(93% free space) on my laptop:
/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)
I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.
What would be the best way to achieve this?
ubuntu partition cloning migration
add a comment |Â
up vote
1
down vote
favorite
I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda
(93% free space) on my laptop:
/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)
I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.
What would be the best way to achieve this?
ubuntu partition cloning migration
1
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Is sda2 is your/
filesystem? Do you need to clone sda3?
â Emmanuel Rosa
Jul 4 at 20:42
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda
(93% free space) on my laptop:
/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)
I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.
What would be the best way to achieve this?
ubuntu partition cloning migration
I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda
(93% free space) on my laptop:
/dev/sda1 -> 512M - vfat - EFI System Partition
/dev/sda2 -> 732M - ext4 - Linux File System (
/dev/sda3 -> 930.3G - crypto_LUKS - Linux File System (empty)
I would like to use a 120 GB SSD (not yet installed) for the OS on this laptop now. The old HDD should be simply used as an additional partition for file storage afterwards; no dual boot required. Instead of having to re-install Ubuntu again on the SSD, I am looking for a way to clone my existing system installation from HDD to the new SSD.
What would be the best way to achieve this?
ubuntu partition cloning migration
edited Jul 3 at 17:21
asked Jul 3 at 17:14
TitusQuinn
154
154
1
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Is sda2 is your/
filesystem? Do you need to clone sda3?
â Emmanuel Rosa
Jul 4 at 20:42
add a comment |Â
1
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Is sda2 is your/
filesystem? Do you need to clone sda3?
â Emmanuel Rosa
Jul 4 at 20:42
1
1
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Is sda2 is your
/
filesystem? Do you need to clone sda3?â Emmanuel Rosa
Jul 4 at 20:42
Is sda2 is your
/
filesystem? Do you need to clone sda3?â Emmanuel Rosa
Jul 4 at 20:42
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
option a)
- install fresh and copy over your personal files / restore installed packages
option b)
- save your disk encryption key from the old install
- boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)
- clone partition 1 and 2
- create partion 3 new with cryptsetup/zuluCrypt using the old key
- mount both encrypted partitions
- clone files from sda3 to the new disk using rsync.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
option a)
- install fresh and copy over your personal files / restore installed packages
option b)
- save your disk encryption key from the old install
- boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)
- clone partition 1 and 2
- create partion 3 new with cryptsetup/zuluCrypt using the old key
- mount both encrypted partitions
- clone files from sda3 to the new disk using rsync.
add a comment |Â
up vote
1
down vote
accepted
option a)
- install fresh and copy over your personal files / restore installed packages
option b)
- save your disk encryption key from the old install
- boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)
- clone partition 1 and 2
- create partion 3 new with cryptsetup/zuluCrypt using the old key
- mount both encrypted partitions
- clone files from sda3 to the new disk using rsync.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
option a)
- install fresh and copy over your personal files / restore installed packages
option b)
- save your disk encryption key from the old install
- boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)
- clone partition 1 and 2
- create partion 3 new with cryptsetup/zuluCrypt using the old key
- mount both encrypted partitions
- clone files from sda3 to the new disk using rsync.
option a)
- install fresh and copy over your personal files / restore installed packages
option b)
- save your disk encryption key from the old install
- boot from CD/USB (I would use ubuntu install media, because there you can install all missing tools)
- clone partition 1 and 2
- create partion 3 new with cryptsetup/zuluCrypt using the old key
- mount both encrypted partitions
- clone files from sda3 to the new disk using rsync.
answered Jul 3 at 18:41
Thomas
344
344
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453269%2fhow-to-clone-ubuntu-18-04-lts-from-hdd-to-ssd%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Create partitions, copy files, update boot manager.
â Ipor Sircer
Jul 3 at 17:17
Is sda2 is your
/
filesystem? Do you need to clone sda3?â Emmanuel Rosa
Jul 4 at 20:42