It finally happened... I knew it was going to, but I was too lazy to do anything about it. Several months ago, I turned on my PS3 and was presented with a screen saying something to the effect of, "Your filesystem is corrupt. Select 'Yes' to repair the filesystem". Then it started happening more frequently. My kids got mad when they tried to watch Netflix or play Minecraft but had to wait for the filesystem scan to complete. I knew this was bad, and all I had to do was walk 20 feet to my office, grab my USB hdd, and do a backup of my PS3... but I didn't....
Finally, the Friday before Easter, the PS3 booted up to the filesystem scan screen, took longer than usual, rebooted... and came back to the scan. It was in an infinite loop. I read through the tips of booting in
safe mode, but the system ended up hanging when trying to restore the defaults. I thought all was lost. I was bummed that hours of Uncharted 1, 2, and 3, The Last of Us, and Red Dead Redemption would be lost... I shuddered to think of my childrens' sad faces as I told them the thousands of hours that they put into building levels on Minecraft were gone...
Just to be sure it was my PS3's hdd and not an issue with the system, I took the hdd out and slapped it in my laptop, booted to my
Lubuntu USB stick, and ran:
sudo badblocks -v /dev/sda > /tmp/bad-blocks.txt
Sure enough, there were eight bad sectors. I thought all hope was lost. But not so fast! After a couple hours of searching, I came to
Deon's World. Hmmm... ddrescue? Yes! That just might work! I plugged my USB hdd into my laptop and executed:
sudo ddrescue -vr 1 /dev/sda /media/usb/ps3.img /media/usb/ps3.log
After an hour or so, the clone completed, spitting out a few errors about the bad sectors. I shut the laptop down and put a spare 9.5 mm SATA hdd in, and copied the image to it:
sudo ddrescue -v /media/usb/ps3.img /dev/sda
No for the moment of truth! I put it back in the PS3 and booted it up. I saw the "SONY" screen that popped up the very first time I booted my PS3. I panicked a little at first, then remembered that this was probably the effect of my trying to revert back to default settings from safe mode.
Finally, sure enough, everything was back! Now, I'm guessing that some save file somewhere is corrupt due to the bad sectors... but at this point, I'm just glad I don't have to tell the kids how close there Minecraft worlds were to complete destruction!
Now I just gotta remind myself to back up my PS3 on a semi-regular basis...
Hope this can help someone else!
UPDATE:
I think I mentioned above my original PS3 HDD was 120 GB and the new one was 250 GB. I knew ddrescue would make an exact image of the 120 GB hdd, which I assumed meant that the PS3 would only see the first 120 GB of the new drive. After I got over the joy of knowing that all my stuff was back, I thought about this and checked the System Information. Funny thing was that the PS3 recognized it as a 250 GB drive, but said only 24 GB were free. Hmmmmm... So, I took a backup (it took like 2.5 hours to backup 40+ GB of data???). Then, I formatted the hdd from the safe mode menu (I can't recall which option I chose now). Then I
restored the latest firmware via my USB hdd. Finally, I started it back up, went through the initial setup process, and restored from backup. Now everything is back, and I'm showing a lot more free space :)