So I just had a fun / probably bad idea: I'd like to convert my Arch PC to use encryption on the root partition. I'll likely try copying the root filestructure to an external drive before formatting, doing a fresh install in a dm-crypt part, and then copy back. Would that work?
-
Show this thread
-
Replying to @hedgeberg
Yes, but don't forget to prepare the target system bootloader & initramfs for decrypting the rootfs
2 replies 0 retweets 2 likes -
Replying to @coderobe
Yeah, hence why i was thinking the fresh install bit. get that all configured and working before flashing back. I'll probably take a dd image of both the boot and root partitions in addition to copying the root filestructure just to be safe.
2 replies 0 retweets 0 likes -
Replying to @hedgeberg @coderobe
Dealt with too much embedded shit where a bootable image is just like 512 MB and you can dump/flash in 5 minutes on even the slowest bus >.<
1 reply 0 retweets 0 likes -
Replying to @hedgeberg @coderobe
You don't even need a fresh install. Just prepare the bootloader to have the right config for decryption ahead of time (and the right initramfs modules), then dump and restore filesystem. Make sure to preserve ownership (tar -p or rsync -avHAX or similar).
2 replies 0 retweets 0 likes -
Linux is very friendly to simple file-based restores. I've done this many times. My own workstation has been transplanted through many storage setups and hardware over 14 years without reinstalling.
1 reply 0 retweets 1 like -
If anything goes wrong, as long as your filesystem got copied over properly, you can always boot off a live iso (I recommend systemrescuecd), mount the partitions, chroot and fix it.
1 reply 0 retweets 1 like -
Now if you do this with *Windows*... That's a whole different story. I've done it once. It wasn't fun. Possible, but not fun.
1 reply 0 retweets 1 like -
Consider: Gentoo is *shipped* as a tarball you untar and that's your root filesystem. Literally the install process is just fdisk;mkfs;mount;tar xpf;chroot, then configure a kernel and bootloader (and other misc settings). No different than a backup!
2 replies 0 retweets 0 likes -
i actually keep pestering other distros to do the same. having an elaborate bootloader setup is something no distro installer will ever support. opensuse can do it, but they don't ship tarballs.
1 reply 0 retweets 0 likes
I've done some horrible things to Ubuntu (not my choice). You can get some pretty nonstandard setups to work with preseed scripts and patches, but then you wind up having to divert files so it doesn't stomp over your setup on updates... It's ugly. I run Gentoo on my stuff.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.