You could write a for loop and use dm to try mounting the disk.
i=0; while true; do
i=$(($i + 1))
size=$((<disk_size> - $i))
echo "0 $size linear /dev/<disk> $i" | dmsetup create recover
mount -t ext3 /dev/mapper/recover /mnt
if [ $? -eq 0 ] ; then echo "FS found at offset $i"; break; fi
done
Remember to record the offset once found and start from there plus 1
next time... hopefully finding the next FS on the disk. I'm not sure
if this setup would get confused by the multiple super blocks that ext
writes out or not. Couldn't hurt to try.
brassow
On Aug 2, 2005, at 3:57 AM, Thomas Svedberg wrote:
So I have a broken disk (with root on LVM) and lost the block(s)
containing the LVM partition info. I have moved the entire disk to a
backup (dd_rescue) but can not find the LVM partition with any tools I
tried (gpart, testdisk). Am I f.cked or can I still get some data of
these lost partitions (3 ext2/3 partitions on that LVM VG) ?
--
/ Thomas
.......................................................................
Thomas Svedberg
Department of Applied Mechanics
Chalmers University of Technology
Address: SE-412 96 Göteborg, SWEDEN
E-mail : Thomas.Svedberg@me.chalmers.se
.......................................................................
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/