Carefully, Correctly Wrong ([info]diffrentcolours) wrote,
@ 2007-12-09 01:35:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Current mood: happy
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:

  1. My desktop has a hard drive
  2. The hard drive has two primary partitions
  3. One of them is an LVM physical volume
  4. One of the logical volumes contains a file
  5. That file is a disk image created by running ddrescue on the laptop drive
  6. That disk image has two primary partitions
  7. One of them is an LVM physical volume
  8. One of the logical volumes is loop-aes encrypted, and needs to be loopback-mounted
  9. 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.



(Post a new comment)


[info]skx
2007-12-09 02:41 pm UTC (link)
Definitely a good idea to have different names. I tend to use either vol-$(hostname) or $(hostname)-vg depending on a whim. Using the hostname avoids collisions.

(Reply to this)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…