| Carefully, Correctly Wrong ( @ 2007-12-09 01:35:00 |
| Current mood: | |
| Entry tags: | geek, laptop |
Disk Rescue
I have managed to rescue pretty much everything from my old laptop hard drive; it seems that the errors were all in the boot partition rather than the user data partitions. I thought it was going to be a complicated operation, because:
- My desktop has a hard drive
- The hard drive has two primary partitions
- One of them is an LVM physical volume
- One of the logical volumes contains a file
- That file is a disk image created by running ddrescue on the laptop drive
- That disk image has two primary partitions
- One of them is an LVM physical volume
- One of the logical volumes is loop-aes encrypted, and needs to be loopback-mounted
- That's where the files I wanted live
Actually, it was pretty much a piece of piss, following this guide to get LVM to realise that there were new places to get logical volumes.
The interesting thing to note is that I have, completely by accident, managed to use different names for the volume groups on each of my three systems - maindisk
, rootdisk
and main
. It turns out that having unique names for volume groups is really handy for when you put multiple drives in one system, so I shall actually make a policy of doing this in future.