You are not logged in.
Hello. I did a backup of my root partition using e2image (something like e2image -ra /dev/mapper/root /second/luks/encrypted/disk/root.img). It's a raw disk image. Now if some disaster happens and I need to restore it, do I need to specify some offset or does e2image -ra root.img /dev/mapper/root enough?
I couldn't find a relevant forum section for this so I made a quick choice to just post here.
Thank you!
Last edited by hussam (2018-12-21 21:29:35)
Offline
First, you must backup partition that are not mounted. So if you want to back up your root partition, you can only do it from a boot disk. Otherwise, the image will be corrupted. To restore the image, just do e2image -ra root.img /target/partition where /target/.partition is the partition you want to restore. Again /target/partition must not be mounted.
Offline
I did the backup from a boot disk (the arch linux iso image) while /dev/mapper/root was not mounted.
Ok, great. Thank you.
Offline