On Tue, 12 Feb 2013 10:09:40 -0700 Charles Curley <[email protected]> wrote:
> Last year I used LVM and encrypted (dm-mod) it. This year, I did the > same. I can boot to either Y or Y-1, but which ever one I boot too, I > can't read the other. Got it. I finally hit the right terms to search the net on. Based on http://www.ubuntugeek.com/rescue-an-encrypted-luks-lvm-volume.html I came up with a script for the purpose. I haven't tested it, but this should do what I need: # A script to mount last year's drive on this one. Based on # http://www.ubuntugeek.com/rescue-an-encrypted-luks-lvm-volume.html # The target partition part=/dev/sdb5 # The volume group name vgName=dzur2012 # Encryption.... cryptsetup luksOpen $part crypt1 # scan for new volume groups vgscan --mknodes # Activate the volume groups vgchange -ay # Create mount points as needed. mkdir -p /mnt/$vgName # Mount 'em up mount -r /dev/mapper/dzur2012-root /mnt/$vgName/ mount -r /dev/mapper/dzur2012-home /mnt/$vgName/home I'll test that the next time I reboot. As this is Debian stable, that my not be until next year. :-) -- Charles Curley /"\ ASCII Ribbon Campaign Looking for fine software \ / Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com / \ No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
