[linux-lvm] A way to bypass LVM and extract the raw data off?

Andreas Dilger adilger at turbolabs.com
Wed Jan 9 13:41:02 UTC 2002


On Jan 08, 2002  19:02 -0800, IpSo wrote:
> Yup! I'm confident everything as far as the reiser filesystem is fine,
> just LVM is very confused. 
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1   *         1       507    255496+  82  Linux swap
> /dev/hda2           508     39813  19810224    5  Extended
> /dev/hda5           508      4633   2079472+  83  Linux
> /dev/hda6          4634     39813  17730688+  8e  Linux LVM
> 
>  
> >     If you have the HD space, you could try dd if=/dev/hda6 of=/some/file
> > 
> >     Then mount -o loop /some/file /mnt/point -t reiserfs. 
> > 
> >     I don't think this would do any more damage. 
>
> I'll give it a shot I guess, won't this loopback file contain the extra LVM
> information and cause problems when trying to mount it though? Does the LVM
> information take up the first 2mb or something that I could set the offset as,
> so it doesn't carry over to the loopback file?

No, it uses a variable amount of space.

What you could do is try

od -Ad -a /dev/hda6 | grep "R   e   I   s   E   r   2   F   s"

and start your dd 65584 bytes before the address at the line this is
found on (it should align to an even block boundary).

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/





More information about the linux-lvm mailing list