Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm trying to restore iOS 5.1.1 on iPhone 4 GSM that currently has iOS 4.3.3 and is jailbroken.

I'm using "redsn0w" to get into pwned DFU mode and then trying to restore from iTunes using custom IPSW file stitched with the 5.1.1 shsh blobs (I have my shsh blobs saved locally).

It works until iTunes reaches the point Preparing iPhone for restore.

At this point my iPhone automatically exits the DFU mode and enters into restore mode, but iTunes stops restoring with the error iPhone could not be restored. An unknown error occurred (21).

I have checked the hosts file and have commented the line that redirects to the cydia server. (I have also checked it by uncommenting that line but it still didn't work)

Any idea what could be going wrong or is there anything I'm missing?

share|improve this question
add comment

4 Answers 4

up vote 1 down vote accepted

I'm able to restore iOS 5.1.1 on my phone using sn0wbreeze. I'm posting the details here in case someone else encounters the same problem.

Initially I used redsn0w to create a custom firmware file but it failed to restore (with errors mentioned in the question and others like error 14, etc.).

Then I used sn0wbreeze to create a custom firmware stitched with my shsh blobs and iTunes restored it without errors.

Here are the steps I followed:

  • Downloaded a firmware that i wanted to restore (5.1.1 in my case).
  • Added my shsh blobs for that firmware using iFaith mode in sn0wbreeze.
  • Created the custom IPSW in sn0wbreeze and stored it on my desktop.
  • Put the iPhone in pwned DFU mode. Use iREB or redsn0w to get into the pwned DFU mode.
  • Used the custom ipsw file to restore in iTunes.

I don't know if these things count, but during the process my antivirus was disabled and I had commented out any gs.apple.com lines in my hosts file.

share|improve this answer
add comment

FYI the reason for your issue was that the phone was never in true DFU mode. So the firmware was still active. You fixed the issue properly. Nice job.

share|improve this answer
    
Thanks. i used same procedure to get in DFU mode that i was using earlier, but this time it worked with ipsw file that i had created using sn0wbreeze. –  Tahir Oct 18 '12 at 14:24
add comment

I used redsnow Version 0.9.14b3 to created a custom ipsw, with my saved shsh blobs of course and put my iDevice in pwned dfu mode. I then deleted any gs.apple.com and my host.umbrella file if using tinyumbrella (it mods your host file everytime you exit) then shift+restore and clicked my custom ipsw; it worked like a charm.

Tip: Don't use the newer versions or redsnow for custom ipsw. For some reason they make the fie bigger then the raw ipsw.

share|improve this answer
    
Could you link to the version of software you are using - we've received some flags indicating people can't find the software you mention. –  bmike Jan 9 '13 at 0:16
add comment

Try Hard Reset Your iPhone to Fix It

To do a Reset, press and hold the Home button and the Sleep/Wake or On/Off button simultaneously until you see the Apple logo and then release - ignoring the slide to turn off prompt when doing so.

Well, by doing so, all your data will be erased.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.