Solving the PS3 restoring file system loop with Linux

This is a story and tutorial about how Linux saved my PS3. I had a problem with my PS3 when I switched it on one morning. It gave me the following message saying that “The hard disk’s file system is corrupted and will be restored.” I confirmed to start the restore process which took hours to completed. After it completed, the system restarted and displayed the same error message again.