Go Back  
Reply
 
Thread Tools
Old 02-09-2013   #61
MRDOTB
Member
 
MRDOTB's Avatar
 
Join Date: Jan 2011
Location: Poland
Posts: 58
Likes: 10
Liked 27 Times in 13 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by bobross View Post
And like I said before I barely know Linux basics. So saying "oh just go here and compile this" is not really any help. I don't even really understand the file structure of that OS. So in short I've been using windows my whole life - hence why I'm pleading for simple understandable steps.
Same me.

So I'm still stuck. Can someone give me a Ubuntu step-by-step on how to mount this decrypted .img?
You saying about mounting unc hdd img, but have you already patched kpartx? I'm stuck on it. I was installed git, multipath-tools, and clone repo but there's is no file such "kpartx-ps3-partition.patch". Also I don't understand why there's "../"? In ubuntu default dir is "/home/<user>/", so i don't understand sguerrini97 script. Why going to "/home/<user>/multipath-tools/", and telling patch app to looking it on level above.

Also, I cannot compile it from this git repo because I've getting: libdevmapper.h: no such file or directory.

Have you done this?


edit:
Ok. done. I compile it. In Ubuntu 12.0.4.1 LTS are missing:
libaio-dev, libreadline-dev and liblvm2 (this one i compile myself from ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.98.tgz).
+ sudo updatedb

Last edited by MRDOTB; 02-09-2013 at 06:22 AM.
MRDOTB is offline   Reply With Quote
Old 02-09-2013   #62
bobross
Member
 
Join Date: Sep 2010
Posts: 110
Likes: 8
Liked 11 Times in 10 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Originally Posted by MRDOTB View Post
Same me.



You saying about mounting unc hdd img, but have you already patched kpartx? I'm stuck on it. I was installed git, multipath-tools, and clone repo but there's is no file such "kpartx-ps3-partition.patch". Also I don't understand why there's "../"? In ubuntu default dir is "/home/<user>/", so i don't understand sguerrini97 script. Why going to "/home/<user>/multipath-tools/", and telling patch app to looking it on level above.

Also, I cannot compile it from this git repo because I've getting: libdevmapper.h: no such file or directory.

Have you done this?


edit:
Ok. done. I compile it. In Ubuntu 12.0.4.1 LTS are missing:
libaio-dev, libreadline-dev and liblvm2 (this one i compile myself from ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.98.tgz).
+ sudo updatedb
I have attached the file kpartx-ps3-partition.patch.

Do not use this command in term:
patch -p1 < ../kpartx-ps3-partition.patch

Be in the Multipath-tools DIR and use this command:
patch -p1 < kpartx-ps3-partition.patch

Then type:
make

Console will go crazy but I end up with these error after a bit:

Code:
root@ubuntu:/home/bob/Downloads/multipath-tools# make
make[1]: Entering directory `/home/bob/Downloads/multipath-tools/libmultipath'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/bob/Downloads/multipath-tools/libmultipath'
make[1]: Entering directory `/home/bob/Downloads/multipath-tools/libmultipath/prioritizers'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/bob/Downloads/multipath-tools/libmultipath/prioritizers'
make[1]: Entering directory `/home/bob/Downloads/multipath-tools/libmultipath/checkers'
cc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -Wunused -Wstrict-prototypes -fPIC -DLIB_STRING=\"lib\" -I.. -c -o directio.o directio.c
directio.c:16:20: fatal error: libaio.h: No such file or directory
compilation terminated.
make[1]: *** [directio.o] Error 1
make[1]: Leaving directory `/home/bob/Downloads/multipath-tools/libmultipath/checkers'
make: *** [recurse] Error 2
root@ubuntu:/home/bob/Downloads/multipath-tools#


EDIT: Solved all errors by installing missing libs by hand:

apt-get install aptitude
sudo apt-get install python2.7-dev
sudo aptitude install libaio-dev
sudo apt-get install libreadline-dev
--------------------------------------------------------------------------

Now I run kpartx -l dec_ps3hdd.img but get:

Code:
/dev/mapper/control: open failed: Permission denied
Failure to communicate with kernel device-mapper driver.
mount: Could not find any loop device.
       Maybe /dev/loop# has a wrong major number?Bad address
can't set up loop

Ugh I'm lost again! Grrr
Attached Files
File Type: 7z kpartx-ps3-partition.7z (1.6 KB, 8 views)

Last edited by bobross; 02-09-2013 at 01:36 PM.
bobross is offline   Reply With Quote
Old 02-10-2013   #63
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 107
Likes: 52
Liked 15 Times in 13 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
@bobross run the command as root (sudo kpartx -l dec_ps3hdd.img).
sguerrini97 is online now   Reply With Quote
Old 02-10-2013   #64
bobross
Member
 
Join Date: Sep 2010
Posts: 110
Likes: 8
Liked 11 Times in 10 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Originally Posted by sguerrini97 View Post
@bobross run the command as root (sudo kpartx -l dec_ps3hdd.img).
I renamed the IMG to dec.img for less typing. Something is wrong. It's just doing nothing:

bobross is offline   Reply With Quote
Old 02-10-2013   #65
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 107
Likes: 52
Liked 15 Times in 13 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
Originally Posted by bobross View Post
I renamed the IMG to dec.img for less typing. Something is wrong. It's just doing nothing:
How did you get the .img file?
sguerrini97 is online now   Reply With Quote
Old 02-10-2013   #66
bobross
Member
 
Join Date: Sep 2010
Posts: 110
Likes: 8
Liked 11 Times in 10 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
1. Attached Ps3 HD to esata dock
2. Used HxD -> select Drive -> save-as "HDD.img"
3. In Ubuntu -> HDD file from HxD in the \ps3_decrypt_tools\data\ with eid_root_key file
4. Ran ./decrypt_tools -> select option #1 (Decrypt HDD)
5. Seemed(?) successful output [ATA-DATA/TWEAK/ENCDEC-DATA/TWEAK Keys]

Maybe I did something wrong in HxD?

I'm re-dumping my HD in Ubuntu using "dd if=/dev/sdb of=./PS3HD.img"

Can only get Ubuntu to recognize the HD over USB connection not eSATA for some reason so this might take a while.

Last edited by bobross; 02-10-2013 at 02:51 PM.
bobross is offline   Reply With Quote
Old 02-10-2013   #67
advocatusdiaboli
Senior Member
 
advocatusdiaboli's Avatar
 
Join Date: Sep 2010
Location: /dev/random
Posts: 1,687
Likes: 426
Liked 271 Times in 171 Posts
Mentioned: 14 Post(s)
Tagged: 0 Thread(s)
Originally Posted by bobross View Post
I'm re-dumping my HD in Ubuntu using "dd if=/dev/sdb of=./PS3HD.img"
For your own sanity I do hope that . ( this directory ) is on the external USB?
Code:
cd /mnt/sdc3/
dd if=/dev/sdb of=./PS3HD.img
With a cd( change directory ) similar to the one above.
__________________
US 4USB ports OFW 3.15 PS Ubuntu
EU 4USB ports CFW 4.21.1 REX
There is only one OS; AmigaOS, the rest are just [l]imitations.
advocatusdiaboli is offline   Reply With Quote
Old 02-10-2013   #68
bobross
Member
 
Join Date: Sep 2010
Posts: 110
Likes: 8
Liked 11 Times in 10 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Originally Posted by advocatusdiaboli View Post
For your own sanity I do hope that . ( this directory ) is on the external USB?
Code:
cd /mnt/sdc3/
dd if=/dev/sdb of=./PS3HD.img
With a cd( change directory ) similar to the one above.
My PS3 drive is on a eSATA dock that also has USB. My Ubuntu is on a local disc via VmWare.

I can't figure out how to mount the PS3 drive via eSATA. Only USB connection seems to work.

Looks like its going at about 1GB every 1-2min. So 60GB drive, maybe an 1/2 hours

This is just my "practice" drive too. The data I REALLY need is on my 650GB drive ugghh...

I looked around for mounting eSATA drive on Ubuntu but they all seem to involve re-partitioning or formatting and I obviously don't want to be dong that for my recovery purposes.

Edit: CRAP! dd image also does not mount! WTF am I doing wrong?!

Last edited by bobross; 02-10-2013 at 09:08 PM.
bobross is offline   Reply With Quote
Old 02-10-2013   #69
advocatusdiaboli
Senior Member
 
advocatusdiaboli's Avatar
 
Join Date: Sep 2010
Location: /dev/random
Posts: 1,687
Likes: 426
Liked 271 Times in 171 Posts
Mentioned: 14 Post(s)
Tagged: 0 Thread(s)
dd image should not mount the ordinary way.

You should find your PS3’s keys( eid_root_key ), and then use the tool to mount the dd AFAIK.

I’m working on an SFO tool for the Mac now, but I’m paying attention to this thread as I would like to make a Mac port of this tool also, but one thing at the time.
__________________
US 4USB ports OFW 3.15 PS Ubuntu
EU 4USB ports CFW 4.21.1 REX
There is only one OS; AmigaOS, the rest are just [l]imitations.

Last edited by advocatusdiaboli; 02-10-2013 at 10:10 PM.
advocatusdiaboli is offline   Reply With Quote
Old 02-11-2013   #70
sguerrini97
Member
 
Join Date: Jun 2011
Posts: 107
Likes: 52
Liked 15 Times in 13 Posts
Mentioned: 1 Post(s)
Tagged: 0 Thread(s)
@bobross
That image is your encrypted HDD, the tool will decrypt the file "sectors" and it must be multiple of 200 bytes.

For me it doesn't work with the full (80 GB) HDD, maybe you should split the image and decrypt 1-2 GB (multiple of 200 bytes) per time. http://unixhelp.ed.ac.uk/CGI/man-cgi?split

(I got the informations from zecoxao )
sguerrini97 is online now   Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



PS3Hax.net is Copyright © 2010-2013.
Use of this site is governed by our Terms of Use and Privacy Policy. All Trademarks and images are owned by their respected owners.
Posts and links are subject to each author on this forum and are no way affiliated with the operations and/or opinions of ps3hax.net
All times are GMT -5. The time now is 12:22 AM.