mount file system using offset.

Geert Uytterhoeven geert at linux-m68k.org
Mon Sep 19 06:06:40 EST 2011


On Sun, Sep 18, 2011 at 21:21, F. Heitkamp <heitkamp at ameritech.net> wrote:
> First of all please accept my apologies for posting to this list on this
> particular topic, but it was the closest match I could find.
>
> I pulled the harddisk out of my ps3, because I have forgotten the root
> password on the linux partition.
>
> After spending some time googling I see that the harddisk is encrypted and
> there are no linux utilities that can read/write it.
>
> However I did find that the "testdisk" program finds the linux partitions on
> the disk (see below.).
>
> It seems I should be able to mount the partitions on my linux pc box somehow
> since I now know their location on the disk.
>
> Does anyone know how one might go about that?

Now you know the offset of the Linux "partition" on the disk (i.e. the
part of the
disk that was visible to Linux), you can use dm-linear to map this part onto a
new block device.
After that you can use kpartx to create block devices representing the
individual
partitions on the above new block device.

> TestDisk 6.12, Data Recovery Utility, May 2011
> Christophe GRENIER <grenier at cgsecurity.org>
> http://www.cgsecurity.org
>
> Disk /dev/sdc - 80 GB / 74 GiB - CHS 9729 255 63
>
> The harddisk (80 GB / 74 GiB) seems too small! (< 13 TB / 11 TiB)
> Check the harddisk size: HD jumpers settings, BIOS detection...
>
> The following partition can't be recovered:
>     Partition               Start        End    Size in sectors
>>  Linux SWAP 2          9675 127 42 1593896 192  5 25450514424
>
>
> TestDisk 6.12, Data Recovery Utility, May 2011
> Christophe GRENIER <grenier at cgsecurity.org>
> http://www.cgsecurity.org
>
> Disk /dev/sdc - 80 GB / 74 GiB - CHS 9729 255 63
>     Partition               Start        End    Size in sectors
>>P ext3                  1566 128 42  1579 127 35     208776 [/boot]
>  P ext3                  1579 127 42  9675 127 41  130062240 [/]

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds


More information about the Linuxppc-dev mailing list