Migrate LUKS partition to non LUKs partition

The name of the pictureThe name of the pictureThe name of the pictureClash 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.










share|improve this question





















  • 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










  • 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










  • 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














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.










share|improve this question





















  • 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










  • 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










  • 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












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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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










  • 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










  • 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










  • 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










  • 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















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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
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%2f467142%2fmigrate-luks-partition-to-non-luks-partition%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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













































































Popular posts from this blog

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

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay