Re: mount file system using offset.
flat view
From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2011-09-18 20:06:43
On Sun, Sep 18, 2011 at 21:21, F. Heitkamp [off-list ref] 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 an=
d
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 some=
how
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 ont= o 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 [off-list ref] 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: =C2=A0 =C2=A0 Partition =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
Start =C2=A0 =C2=A0 =C2=A0 =C2=A0End =C2=A0 =C2=A0Size in sectors
quoted
=C2=A0Linux SWAP 2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A09675 127 42 1593896=
192 =C2=A05 25450514424
TestDisk 6.12, Data Recovery Utility, May 2011 Christophe GRENIER [off-list ref] http://www.cgsecurity.org Disk /dev/sdc - 80 GB / 74 GiB - CHS 9729 255 63 =C2=A0 =C2=A0 Partition =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
Start =C2=A0 =C2=A0 =C2=A0 =C2=A0End =C2=A0 =C2=A0Size in sectors
quoted
P ext3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01566=
128 42 =C2=A01579 127 35 =C2=A0 =C2=A0 208776 [/boot]
=C2=A0P ext3 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A01579 127 42 =C2=A09675 127 41 =C2=A0130062240 [/]
Gr{oetje,eeting}s,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k=
.org
In personal conversations with technical people, I call myself a hacker. Bu=
t
when I'm talking to journalists I just say "programmer" or something like t=
hat.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 -- Linus Torvalds