You are not logged in.
Hi all!
I currently have a setup like this:
100 ext4 /boot partition
10 Gb LUKS -> ext4 / partition
40 Gb LUKS -> ext4 /home partition
What I'm trying to do here is to resize /home, substracting 10Gb from it to give it to the root partition.
Now, this would be a piece of cake if it wasn't for the LUKS setup. I can resize the ext4 partitions within the LUKS containers, but I can't resize the LUKS containers themselves.
The system is currently configured to what i was looking for, and i'd like to keep it that way, so, my question is:
1: Is there a way to resize LUKS partitions without losing data?
2: Can I just "tar" everything to another media, resize and format and then restore everything back? How am I supposed to manage the permissions, ownerships... etc if I do it this way?
3: Suggestions?
Thank you.
Last edited by Xi0N (2014-07-28 06:09:22)
Offline
Can I just "tar" everything to another media, resize and format and then restore everything back? How am I supposed to manage the permissions, ownerships... etc if I do it this way?
I think that's perfectly possible. Just boot into a live environment and tar everything up. After you untar it, the only thing you might need to do is re-install the boot loader.
Permissions and ownerships shouldn't change. Tar will remember the permissions, and ownership is based on the UID which is stored in the "/etc/passwd" file (that will be included in the tar file).
Last edited by drcouzelis (2014-07-24 16:55:49)
Offline
You won't get in trouble with permissions as long as you do things as root. Remember to exclude external filesystems from the backup. See here:
https://wiki.archlinux.org/index.php/Fu … p_with_tar
Offline
This worked perfectly. Thanks
Offline
Offline