What measures should I take to prevent data loss?
by lucmove from LinuxQuestions.org on (#5807F)
I had a system freeze recently that made me lose data. No fewer than FIVE partitions locked with LUKS/dm-crypt refused to open after the crash. I had backups for all the partitions except one that hadn't been updated in a few months so I lost some data.
I didn't have any backups of the LUKS headers. Having them would probably have saved me a lot of grief.
But I do now.
I also made backups of the MBR/GPT of every disk.
I also copied info on their geometry and partition scheme with fdisk and cfdisk.
I also made backups of a few system files such as fstab and crypttab because why not.
Am I missing anything? What else do you recommend I do to prevent other losses in the future?


I didn't have any backups of the LUKS headers. Having them would probably have saved me a lot of grief.
But I do now.
I also made backups of the MBR/GPT of every disk.
I also copied info on their geometry and partition scheme with fdisk and cfdisk.
I also made backups of a few system files such as fstab and crypttab because why not.
Am I missing anything? What else do you recommend I do to prevent other losses in the future?