I use Debian 8.
I have a nice backup system using rsync per
this backup post..
Then my hard disk self-destructed.
The problem is the above post refers only to a cleartext installation, not encrypted lvm.
So IIRC I created a NEW encrypted lvm installation on a NEW disk, copied in the old grub.cfg file, and changed IDs....using a parallel installation.
- I changed the uuid of the /boot partition (in grub.cfg)
- I changed the uuid of the encrypted lvm partition
- ...similar changes to the /etc/fstab and /etc/cryptab (using losetup...I forget)
- I merged the old .mod files into the new /grub/...
- And I discovered I needed to change the LVM id of 2. above (how do I get this conveniently?)
At this point it actually worked...after a fashion. It bitched and moaned about some unknown disk not being present...which I could never find. It did this for 1.5 minutes. Then it came up.
Then I did another backup.
THEN I DID A SYSTEM UPDATE.
The grub update trashed everything. System is now completely and unbootably broken.
HHHAAAAAALLLPPP!!!!!
Ideally I'd love to create my own grub.cfg files. I'm learning never to trust grub updates, especially on encrypted lvm installs. Can someone recommend a great webpage for manually creating one's own grub.cfg? ...please?