Also, prior to your TestDisk suggestion, I did some more research before giving up. Stemming from this page I issued some commands on /dev/decrypt and seemed to make some headway.
Code:
# pvck -d -v /dev/mapper/crypt1
Scanning /dev/mapper/crypt1
Found label on /dev/mapper/crypt1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=192512
Found LVM2 metadata record at offset=195584, size=1024, offset2=0 size2=0
Found LVM2 metadata record at offset=195072, size=512, offset2=0 size2=0
Found LVM2 metadata record at offset=190464, size=4608, offset2=0 size2=0
I then opened the block device (/dev/decrypt) with a hex editor, per the article, and copied from the offsets to the end of line marker (0x0A0A) to a text file. However, when reading the text file, I was not able to reconstruct the information as the author was.
I tried another approach, dd-ing the information from the first sectors of the disk looking for header info. This was unsuccessful because while I did get information, it was the same information already known to the OS (shown below), so it didn't do me any good:
Code:
# vgdisplay -v
Finding all volume groups
Finding volume group "VolGroup00"
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 595.94 GB
PE Size 4.00 MB
Total PE 152560
Alloc PE / Size 0 / 0
Free PE / Size 152560 / 595.94 GB
VG UUID pLaVMR-myW6-mqLD-mP96-UUzd-xvYw-UMPtbd
--- Physical volumes ---
PV Name /dev/mapper/crypt1
PV UUID zxNnox-m2f1-Oijy-93DZ-FE5k-CQAy-i2wFE5
PV Status allocatable
Total PE / Free PE 152560 / 152560
I feel like now that I know the offsets of the metadata for the LVs, there must be someway I can manually reconstruct them?
The following commands are available, but I don't have any idea how to use them:
Code:
he following commands implement the core LVM functionality.
pvchange - Change attributes of a physical volume.
pvck - Check physical volume metadata.
pvcreate - Initialize a disk or partition for use by LVM.
pvdisplay - Display attributes of a physical volume.
pvmove - Move physical extents.
pvremove - Remove a physical volume.
pvresize - Resize a disk or partition in use by LVM2.
pvs - Report information about physical volumes.
pvscan - Scan all disks for physical volumes.
vgcfgbackup - Backup volume group descriptor area.
vgcfgrestore - Restore volume group descriptor area.
vgchange - Change attributes of a volume group.
vgck - Check volume group metadata.
vgconvert - Convert volume group metadata format.
vgcreate - Create a volume group.
vgdisplay - Display attributes of volume groups.
vgexport - Make volume groups unknown to the system.
vgextend - Add physical volumes to a volume group.
vgimport - Make exported volume groups known to the system.
vgmerge - Merge two volume groups.
vgmknodes - Recreate volume group directory and logical volume special files
vgreduce - Reduce a volume group by removing one or more physical volumes.
vgremove - Remove a volume group.
vgrename - Rename a volume group.
vgs - Report information about volume groups.
vgscan - Scan all disks for volume groups and rebuild caches.
vgsplit - Split a volume group into two, moving any logical volumes from one volume group to another by moving entire physical volumes.
lvchange - Change attributes of a logical volume.
lvconvert - Convert a logical volume from linear to mirror or snapshot.
lvcreate - Create a logical volume in an existing volume group.
lvdisplay - Display attributes of a logical volume.
lvextend - Extend the size of a logical volume.
lvmchange - Change attributes of the logical volume manager.
lvmdiskscan - Scan for all devices visible to LVM2.
lvmdump - Create lvm2 information dumps for diagnostic purposes.
lvreduce - Reduce the size of a logical volume.
lvremove - Remove a logical volume.
lvrename - Rename a logical volume.
lvresize - Resize a logical volume.
lvs - Report information about logical volumes.
lvscan - Scan (all disks) for logical volumes
Bookmarks