Restoring my "corrupted" HDD

Discussion in 'Help & Support' started by 123ducky123, May 18, 2018 at 4:53 AM.

  1. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi there! I've found a few useful threads here that are somewhat related to my issue, but my situation's a little bit specific, so I'm wondering if any of you knowledgable people might be able to help me out!

    A couple weekends ago my OFW PS3 YLOD'd out of the blue on me mid-game. I sent it off to a guy to fix it for me, and I just got it back the other day! However, upon booting my PS3, it goes through the typical HDD check after being unexpectedly shut off, and it craps out at 40%, informing me that the HDD needs to be formatted. :(

    There's no way I was going to let hundreds of hours of save files go down the drain, so I did some researching, and found people facing a similar problem as me had success restoring their HDDs with HDD Regenerator. I connected my HDD to my PC, and ran a scan, but unfortunately it found no bad sectors. I plug it back into the PS3, and it still refuses to get past 40%.

    I wondered since the HDD is not damaged if I might be able to extract the data off my HDD, so I did some more research, and found out about PS3 HDD GUI. Unfortunately, in order to read the HDD, I'd obviously need the eid_root_key, which I didn't have because I'm running this system off OFW. I then decided to plug in another HDD I had lying around, install CFW and extract my eid_root_key that way! With that, I was finally able to access my old HDD on my PC. It opened up just fine, and all the files were there! I have no idea why my PS3's unable to read it.

    But this is where I'm at a bit of a loss for how to proceed. I'm currently in the process of backing up my entire HDD's contents via PS3 HDD GUI. I would like to restore everything, but the important part is that I want to ultimately have the PS3 on OFW and be safe to log into PSN and everything. On the one hand, I don't want to lose all my saves on my old HDD, but on the other hand, I don't want to have my PSN account banned for messing around with my data.

    What are my options? Am I able to FTP all my files from my PC to my new HDD, and then overwrite the CFW with OFW? Would that be safe?
    Or could I perhaps use psxport to create a system backup from the files I backed up off my old HDD, and then restore that in OFW?

    Looking at other threads around here, in order to restore my saves and have them tied to my profile like they were on my old HDD before I got YLOD, I'd need to have backed up my xRegistry.sys file. Is there any way for me to access dev_flash2 via my PC, because of course I'm unable to access the HDD through my PS3 (otherwise I wouldn't be in this mess :P).

    I know this is ridiculous and rambly, but I already have a dedicated PS3 for CFW, and I want to have this PS3 dedicated for OFW, legitimate purchases, syncing trophies and logging into PSN without needing to jump through any hoops or without any worries.

    I'm really hoping somebody will be able to rescue me here! I feel like I'm so close! Any help would be greatly appreciated! If there's any other details I've failed to leave out, please let me know. Thanks, and sorry for the longwinded explanation.
     
  2. 1,685
    1,579
    123
    sandungas

    sandungas Moderator Developer

    Joined:
    Dec 31, 2014
    Messages:
    1,685
    Likes Received:
    1,579
    Trophy Points:
    123
    The xregistry.sys is like the microsoft windows registry... if you take the registry from a PC and then use it in a different PC there could be lot of problems, and probably is not even going to work

    What you can do now you have the eid_root_key is to "update" the savegames with the info of the new PS3, and remove the "copy protection" flag from them
    This way you can copy them in a USB and "import" them from XMB

    Edit: i never tryed this though... but i guess it should work
     
  3. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I'll be using it with the same PS3, so it should be alright, shouldn't it? If it's possible, I was thinking I could copy the old xregistry over to the new hdd, and then perform a Rebuild Database from Safe Mode. At least, that's what it looked like others had to do for their cases.

    The problem is I want to keep all my data, but revert to OFW and make sure it's completely safe to log back into PSN without any worries. But when looking up how to safely go back from CFW to OFW, everybody suggests to format the HDD, which I don't want to do... :S
     
  4. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    1. Take out Your HDD from the console
    2. On PC, for just in case, made sector by sector copy of it (if apps doesn't let You doing it, use tool which allow replacing on the fly bad sectors by i.e zeros, such program is i.e gddrescue)
    3. Put to the console another HDD (just to make her operable).
    4. Dump EID Root Key.
    5. Read on PC data from old HDD via Windows app called HDD Reader (this is why You have need ERK).

    You already a little short this way, so... read from xRegistry.sys Your NP Account ID and User Number ID. Put data to proper user dir and edit registry.

    If You want restore this data on OFW, You must forge System Backup archives and restore them on console with OFW. The problems is, You must somehow get IDPS of that console.
     
    123ducky123 likes this.
  5. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your reply!

    EDIT: Unfortunately, I don't have xRegistry.sys. Is there a way to get it off my HDD? It seems that ps3 hdd gui only gives me access to dev_hdd0 and dev_hdd1. Apparently xRegistry is on dev_flash2? Hmm...

    Ahh, I see! Do you know how I could make a System Backup archive? Could I make one from scratch with PS3xport? And is it possible for me to get the IDPS the same way I did with the eid_root_key? I already put CFW on a second HDD to get the e_r_k. :)

    Sorry for all the questions, and thank you so much for your help!
     
    Last edited: May 18, 2018 at 7:53 AM
  6. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    Assumptions:
    a. console with OFW is different than You are currently using with CFW
    b. SEN accounts on both are the same
    c. user numbers on both are the same

    1. Install newest OFW and log into SEN account
    2. Make System Backup (it will contain xRegistry.sys with everyting setuped)
    3. Get IDPS on it (it's still possible by PS3Xploit on OFW 4.82 AFAIK, but this window will cloase in near future!)
    4. Edit sysbup by ps3xport
    5. Restore edited sysbup.

    PS3 doesn't support backuping trophies but maybe allow to restore them.
     
  7. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    As I remember, You cannot create sysbup archive, only edit (but read the documentation, maybe I'm wrong).

    On CFW getting IDPS is even easier but on OFW it require exploiting.

    Use CLI version and it allow You to read dev_flash'es (also disc image as I remember).
     
    123ducky123 likes this.
  8. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hi again, thanks for your help!
    Okay, cool! That’s all very useful!
    I tried to use the command line version but I kept getting the “no ufs2 superblock found” error. I couldn’t find any clear way to fix it online.

    I read that mounting the hdd in linux is better, and I read the Mounting HDD on PC page on the psdevwiki but I am such a novice when it comes to linux, I can’t understand it. :S

    Is the IDPS tied to my console, like my e_r_k was? If so, I’ll get that with the temporary CFW HDD I set up.

    Okay, so if I can only edit a sysbup, I’ll install OFW on my temp CFW HDD, make a sysbup from there and then completely edit it.
    All I need to do is get the IDPS and xRegistry.sys! :)

    Thanks so much for your help! I feel like I’m really close, but the last few hurdles are driving me insane, haha!
     
  9. 7,883
    3,007
    123
    pinky

    pinky Bitsiboo's Other Half Developer

    Joined:
    Mar 8, 2015
    Messages:
    7,883
    Likes Received:
    3,007
    Trophy Points:
    123
    Gender:
    Male
    Location:
    The Great Gig in the Sky
    yes, idps is tied to the console.
     
  10. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Ahh thanks, that’s good to know! That should be easy enough to grab, then. Now I’ve just gotta get that xRegistry file off my old HDD...
     
  11. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    This page is a little mess, needs to be clean and ordering IMHO. I was trying do it myself but needed kernel module doesn't compile on my systems and ultimately I shamefully gave up since I no longer need -rw on my PS3 HDD. I have in plans those days making install scripts with compiled binaries working on dedicated distributions (Mint 17.3/Ubuntu 16.04). Another thing is not enough clear description how to create HDD key from ERK, seeds, using OpenSSL for slims and fats (algos is different).

    However, on OFW, there is no way to get ERK so also no way to decrypt/encrypt it. This would be the best solution if we can get the key.

    Yes, it is unique per every mother board.

    Firmware is installing on NAND/NOR Flash, not on HDD. On HDD there is only some configs, swap etc.
     
  12. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yeah, I did manage to find a tutorial for mounting PS3 hdd on newer Linux kernels (I can't post the link, it seems), but it seems to be specifically for slim hdds. My PS3 is a far 40GB model (NOR), with a 1TB HDD.

    Anyway, I have already got the e_r_k of my PS3, because I was able to get my YLOD fixed, so I installed CFW with a spare HDD I had, and backed up the erk. With that, I used ps3 hdd gui for windows to backup all of dev_hdd0. For some reason, ps3 hdd gui works, but not ps3 hdd reader. :(
    (And sorry for the mistake about where the firmware was installed. I thought because you have to reinstall the firmware when you swap out an HDD on a NOR console, it was installed on the HDD. Whoops!)

    At any rate, because my PS3 is working, I should be able to get my console's IDPS, too!
    The last step is just to get my xRegistry.sys off of my old HDD.
    I tried to look up how to resolve that “no ufs2 superblock found” error on ps3 hdd reader for windows, but I've not had any luck. I've found other people online who have had that same problem, but no way to fix it... Maybe it doesn't work on Windows 10?
     
  13. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    Windows 10 sucks in a lot of scenarios; this is first Windows which I really hate it. I'm still on Seven, afraid of future without drivers. ;p Anyway... Try admin rights, place it on a partition in root and do not connect PS3HDD via any adaptors. Should work (anyway, it is strange that GUI see it, and CLI not as GUI contain and using the same CLI version).

    As we know, there is only two algorithms used in two (now maybe there are three, but who knows) chasis family. Problem is with this cursed kernel module (as I remember: bswap16.ko) which I cannot compile and I'm to noob in programming to make needed changes, simultaneously I don't want use any other distro like i.e Arch just to one task... ;) And another problems is the algo which I don't know how to generate keys but this is resolvable by test trials.

    If You plan install OFW on the same console, why You even bother of fighting with system backup? As I mentioned, I don't know if trophies can be restore from it. And to restore anything from protected by IDPS area, must be protected by the same IDPS as console with OFW because anything from it in case of mismatch will be ignored. This is pure shit, not backup utility so... I was before thinking that You have one console with CFW and one with OFW, and want safely transfer data to it from CFW environment.
     
  14. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yeah, I don't blame you! I wish I had a Windows 7 computer handy... :( That's a good idea, though! I'll try plugging my PS3 HDD into the PC without an adaptor and see if that makes a difference.

    Oh, sorry for the confusion. Yes, I do have two PS3s, one OFW PS3 and one CFW PS3, but I'm only using my OFW PS3 in this situation.
    I temporarily installed CFW on my OFW PS3 in order to get the erk and the IDPS from the system, but I want to reinstall OFW afterwards.

    The only reason I was trying to restore via system backup is because I thought it was the only way to restore all my data from my old HDD and keep it on OFW.
    Do you know of any easier ways to restore my old data? The only thing that is important to me is that in the end I am on OFW, and I am completely safe to log into PSN and won't get my account banned.
    One idea I had was to USB or FTP all my old data to a new HDD while on CFW, and then install OFW afterwards. The only reason I was worried about this is because whenever somebody asks about going from CFW to OFW, people suggest to format the HDD clean so that any lingering CFW files disappear, but obviously, I don't want to format the HDD again, haha! Any ideas? :S

    Thanks so much for your help. You are very knowledgable!
     
    Last edited: May 20, 2018 at 9:45 PM
  15. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
  16. 8
    0
    1
    123ducky123

    123ducky123 New Member

    Joined:
    Friday
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for that! Seems I have to jump through a lot of hoops, and even still, it still seems quite risky.

    Hmm... Well since I've made a backup of all my data on my HDD, would it be easier to just resign all my saves? Is it possible to resign saves for a new profile on OFW? Would I still be able to unlock trophies?
     
  17. 1,204
    1,104
    123
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    1,204
    Likes Received:
    1,104
    Trophy Points:
    123
    Gender:
    Male
    Location:
    rom0:/
    Definitely not easier, it's annoying as hell and in case of trophies not proper. You need SecureFile ID and Disc Hash Key keys to do that, I don't remember now but probably also IDPS and of course Your NP Account ID and User Number.

    Saves doesn't unlock anything. Trophy system monitoring changing values in memory. In example: if game unlocking trophy for i.e collection 1000 gold, and You read save with 1000+n gold, You don't unlock it - but if You read save with 999 and in game and by playing get additional 1+n, game will tell trophy system to unlock it. That's one of the reasons why I keep backup of some saves with something hard as hell to achieve right before required event (i.e last possible save in Dead Space on hardest difficulty; well... just in case :D).
     

Share This Page