Migrate LUKS partition to non LUKs partition
Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I have Manjaro installed on my laptop with luks encryption. I encrypt all my mobile stuff in case it gets stolen. My apartment is super safe so I donâÂÂt encrypt my desktop of itâÂÂs VMs. I want to move my Manjaro laptop to my desktop VM in VirtualBox. I started by installing a fresh copy of Manjaro on the VM. I used
rsync -aAXIv (laptop):/home /mnt/
rsync -aAXIv (laptop ):/etc /mnt/
in order to restore the machine. I edited the /etc/fstab file. It books just fine but a few things are wrong. The Kernel is out if date and my Planks wonâÂÂt show up (planks is the equivalent of the OSX doc). When I tried to do pacman -Syyu, the system said that the packages already existed. Since they all exist in /usr and my planks theme is stored in /usr/share, I thought it would be as simple as rsyncing /usr. Now it wonâÂÂt boot because it has trouble locating cryptdisk or something.
Should I just rsync /usr/share? What folders should I migrate over? I would like a clone replica of my laptop without all the encryption stuff.
rsync backup luks manjaro
 |Â
show 4 more comments
up vote
-1
down vote
favorite
I have Manjaro installed on my laptop with luks encryption. I encrypt all my mobile stuff in case it gets stolen. My apartment is super safe so I donâÂÂt encrypt my desktop of itâÂÂs VMs. I want to move my Manjaro laptop to my desktop VM in VirtualBox. I started by installing a fresh copy of Manjaro on the VM. I used
rsync -aAXIv (laptop):/home /mnt/
rsync -aAXIv (laptop ):/etc /mnt/
in order to restore the machine. I edited the /etc/fstab file. It books just fine but a few things are wrong. The Kernel is out if date and my Planks wonâÂÂt show up (planks is the equivalent of the OSX doc). When I tried to do pacman -Syyu, the system said that the packages already existed. Since they all exist in /usr and my planks theme is stored in /usr/share, I thought it would be as simple as rsyncing /usr. Now it wonâÂÂt boot because it has trouble locating cryptdisk or something.
Should I just rsync /usr/share? What folders should I migrate over? I would like a clone replica of my laptop without all the encryption stuff.
rsync backup luks manjaro
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommendrsync
-ing/usr
. In a nutshell, you can back up all your laptop's filesystems usingtar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in/etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.
â Emmanuel Rosa
Sep 6 at 0:57
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
The main difference is that when not using a pipe,tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast,rsync
performs both operations at the same moment. You can certainly usersync
. Regardless, you do need to be mindful of virtual filesystems such as/dev
,/proc
,/run
, and/sys
. Most of these don't need to be copied, but/dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.
â Emmanuel Rosa
Sep 6 at 4:46
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51
 |Â
show 4 more comments
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have Manjaro installed on my laptop with luks encryption. I encrypt all my mobile stuff in case it gets stolen. My apartment is super safe so I donâÂÂt encrypt my desktop of itâÂÂs VMs. I want to move my Manjaro laptop to my desktop VM in VirtualBox. I started by installing a fresh copy of Manjaro on the VM. I used
rsync -aAXIv (laptop):/home /mnt/
rsync -aAXIv (laptop ):/etc /mnt/
in order to restore the machine. I edited the /etc/fstab file. It books just fine but a few things are wrong. The Kernel is out if date and my Planks wonâÂÂt show up (planks is the equivalent of the OSX doc). When I tried to do pacman -Syyu, the system said that the packages already existed. Since they all exist in /usr and my planks theme is stored in /usr/share, I thought it would be as simple as rsyncing /usr. Now it wonâÂÂt boot because it has trouble locating cryptdisk or something.
Should I just rsync /usr/share? What folders should I migrate over? I would like a clone replica of my laptop without all the encryption stuff.
rsync backup luks manjaro
I have Manjaro installed on my laptop with luks encryption. I encrypt all my mobile stuff in case it gets stolen. My apartment is super safe so I donâÂÂt encrypt my desktop of itâÂÂs VMs. I want to move my Manjaro laptop to my desktop VM in VirtualBox. I started by installing a fresh copy of Manjaro on the VM. I used
rsync -aAXIv (laptop):/home /mnt/
rsync -aAXIv (laptop ):/etc /mnt/
in order to restore the machine. I edited the /etc/fstab file. It books just fine but a few things are wrong. The Kernel is out if date and my Planks wonâÂÂt show up (planks is the equivalent of the OSX doc). When I tried to do pacman -Syyu, the system said that the packages already existed. Since they all exist in /usr and my planks theme is stored in /usr/share, I thought it would be as simple as rsyncing /usr. Now it wonâÂÂt boot because it has trouble locating cryptdisk or something.
Should I just rsync /usr/share? What folders should I migrate over? I would like a clone replica of my laptop without all the encryption stuff.
rsync backup luks manjaro
rsync backup luks manjaro
asked Sep 5 at 21:25
user21303
4116
4116
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommendrsync
-ing/usr
. In a nutshell, you can back up all your laptop's filesystems usingtar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in/etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.
â Emmanuel Rosa
Sep 6 at 0:57
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
The main difference is that when not using a pipe,tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast,rsync
performs both operations at the same moment. You can certainly usersync
. Regardless, you do need to be mindful of virtual filesystems such as/dev
,/proc
,/run
, and/sys
. Most of these don't need to be copied, but/dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.
â Emmanuel Rosa
Sep 6 at 4:46
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51
 |Â
show 4 more comments
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommendrsync
-ing/usr
. In a nutshell, you can back up all your laptop's filesystems usingtar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in/etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.
â Emmanuel Rosa
Sep 6 at 0:57
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
The main difference is that when not using a pipe,tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast,rsync
performs both operations at the same moment. You can certainly usersync
. Regardless, you do need to be mindful of virtual filesystems such as/dev
,/proc
,/run
, and/sys
. Most of these don't need to be copied, but/dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.
â Emmanuel Rosa
Sep 6 at 4:46
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommend
rsync
-ing /usr
. In a nutshell, you can back up all your laptop's filesystems using tar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in /etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.â Emmanuel Rosa
Sep 6 at 0:57
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommend
rsync
-ing /usr
. In a nutshell, you can back up all your laptop's filesystems using tar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in /etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.â Emmanuel Rosa
Sep 6 at 0:57
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
The main difference is that when not using a pipe,
tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast, rsync
performs both operations at the same moment. You can certainly use rsync
. Regardless, you do need to be mindful of virtual filesystems such as /dev
, /proc
, /run
, and /sys
. Most of these don't need to be copied, but /dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.â Emmanuel Rosa
Sep 6 at 4:46
The main difference is that when not using a pipe,
tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast, rsync
performs both operations at the same moment. You can certainly use rsync
. Regardless, you do need to be mindful of virtual filesystems such as /dev
, /proc
, /run
, and /sys
. Most of these don't need to be copied, but /dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.â Emmanuel Rosa
Sep 6 at 4:46
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51
 |Â
show 4 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');
);
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%2f467142%2fmigrate-luks-partition-to-non-luks-partition%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
You started from a fresh install, so things are bound to be different because your Manjaro installation on the laptop has changed since it was installed. I don't recommend
rsync
-ing/usr
. In a nutshell, you can back up all your laptop's filesystems usingtar
, mount the VDI, re-format the partitions in the VID, and extract the tar-balls. Then you'd need to patch things up in/etc/fstab
and perhaps your bootloader's config since you don't want to use LUKS.â Emmanuel Rosa
Sep 6 at 0:57
About that. I keep reading about tar backups. How is it any different than what IâÂÂm doing with rsync? WeâÂÂre just plop the directories in root onto a newly formatted partition right?
â user21303
Sep 6 at 1:56
The main difference is that when not using a pipe,
tar
creates an artifact, the archive file, which can be stored and thus allows you to separate when the files are captured from when they are restored. In contrast,rsync
performs both operations at the same moment. You can certainly usersync
. Regardless, you do need to be mindful of virtual filesystems such as/dev
,/proc
,/run
, and/sys
. Most of these don't need to be copied, but/dev
is a special case because sometimes it has a few device files stored on the filesystem, while the rest are produced dynamically.â Emmanuel Rosa
Sep 6 at 4:46
Generally speaking, yes you basically copy the directories to a newly-formated partition. But, as I mentioned earlier, you'll need to make some adjustments before you attempt booting since you're going from a LUKS container to a partition (on a virtual disk).
â Emmanuel Rosa
Sep 6 at 4:48
How would one âÂÂpatch things up in the bootloaders config?â Are you talking about replacing all the UUIDs in the geub.cfg file or reinstalling grub all together?
â user21303
Sep 6 at 6:51