Re: How to find a `lost' ext2fs partition?

From: Bernhard Rosenkraenzer (bero@redhat.com)
Date: Sat Apr 08 2000 - 16:22:26 EST


On Sat, 8 Apr 2000, Bram wrote:

> However, all my linux partitions are way
> beyond that point, and as such should still be on the disk. The obvious
> question therefore is: Is it possible to find these partitions and get
> files from them,

Sure - the probably easiest way is creating one large ext2 partition on
the disk (just fdisk, not mke2fs!), then doing something along the lines
of

PARTITION=/dev/whateveryourhugepartitioniscalled
SECT=0
while true; do
        if dumpe2fs -ob$SECT $PARTITION &>/dev/null; then
                echo Possible start of partition at sector $SECT
        fi
        SECT=`expr $SECT + 1`
done

Then create a partition starting there and try mounting it.

This is not exactly a clean way, but it should work and can't
hurt.

LLaP
bero

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:12 EST