TUTORIAL - Failsafe method to restore the current version of IOS

Discussion in 'Hacking Tutorials & Guides' started by f4780y, Nov 7, 2011.

  1. f4780y
    Offline

    f4780y Super Moderator Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    912
    Likes Received:
    145
    Trophy Points:
    0
    Location:
    Troon, Scotland
    Welcome to the iPhoneForums.net tutorial on the failsafe method to restore the current version of IOS on your device.

    From time to time our iPhones do get messed up and you want to get the device back up and running on the latest firmware so you have a fresh platform to start over. This guide will help you get your device restored with the latest firmware whilst avoiding most of the common iTunes errors along the way. :D

    1. Update iTunes to the latest version
    If you are going to install the current version of IOS reliably, make sure you are running the latest version of iTunes. Use the "Check for updates..." menu item in iTunes.

    To restore 5.x IOS you must be on at least iTunes 10.5 or newer...

    2. Fix Hosts File
    Lots of iPhone owners mess with their hosts file but don't really understand the changes that have been made or why they made them. Usually it is to allow an older firmware to be installed by using SHSH Blobs from Cydia. Having a hosts file which is pointing towards Cydia and not Apple is probably the number one cause of issues when trying to restore a device. Normally, this gives an iTunes Error 3194. To make sure your hosts file is pointing back to Apple, follow this process:

    • Download the latest version of TinyUmbrella from here - The Firmware Umbrella - TinyUmbrella
    • Once downloaded, start the TU program
    • Switch to the "Advanced" tab
    • UNTICK the option which says "Set Hosts to Cydia on Exit"
    • Close TinyUmbrella - We will not use this application again during this process, so make sure it is closed.

    Alternatively, if you know how to edit your hosts file manually, remove ALL references to gs.apple.com from the file and save it.

    • On Windows the hosts file can be found in: C:\Windows\System32\drivers\etc\hosts
    • On OSX the hosts file lives in /private/etc/hosts

    3. Download the IOS5 firmware to your desktop
    iTunes is not very forgiving when it comes to unreliable internet connections or times when the download servers are being put under a lot of strain, e.g. when a new firmware is released. Therefore, it is usually best to download the firmware file directly to your desktop and then direct iTunes to use it.

    Download the latest version of IOS for your device from our sticky here - http://www.iphoneforums.net/forum/i...ple-ios-firmware-download-links-iphone-17213/

    If you are using Windows and Internet Explorer, make sure you rename the file back to have an extension of IPSW if it gets renamed with ZIP. This is a fault of Windows and IE. Do NOT extract the ZIP file :)

    4. Put your device into DFU mode
    Restoring a device by just connecting it to iTunes and pressing restore will only work if the phone is working properly. Invariably, and especially if you are looking at this post, something has gone wrong before you got here, so it is unlikely that a normal restore will work. In order to get the restore to complete normally, you MUST put your device into DFU mode.

    In order to put your device into DFU mode, with the iPhone connected to your computer and turned on, you must press the "home" and "power" buttons together for EXACTLY 10 seconds at which point you must release "power" but continue to hold "home". After about 15 seconds, the device will enter DFU mode.

    Once your device is in DFU mode the screen should be blank. If anything else is showing on the screen, such as the "connect to iTunes" logo, you got it wrong. You must get the device into DFU mode successfully. Try again :)

    If you need more help with DFU mode, see our guide here - http://www.iphoneforums.net/forum/iphone-jailbreaking-17/dfu-mode-dummies-16020/

    5. Temporarily Disable 3rd Party Tools
    Sometimes, 3rd party apps such as firewalls, anti-viruns, and anti-malware software can interfere with the restore process, particularly on Windows. If you are having trouble, it's best to temporarily disable all these on your PC whilst you carry out the restore.

    6. Restore in iTunes
    Finally, you are ready to restore your device using the firmware you downloaded in Step 2. Make sure the download is complete of course! ;)

    Open iTunes and it should report that it has discovered a device in recovery mode and must restore it. Good! That's exactly what we want. Click the OK button to dismiss the dialogue box.

    Now you must Shift-Restore (Windows) or Option-Restore (OSX) to select the firmware you downloaded. This means you must hold down the shift key (on Windows) or the option key (on OSX) on your keyboard whilst clicking the "Restore" button in iTunes with your mouse. If you do this correctly, an Explorer or Finder window will pop up and allow you to navigate to the firmware file you downloaded in Step 2. Find the IPSW file and choose it for the restore.

    Done! iTunes should now restore your firmware file on your iPhone without any errors.

    If you run into problems make sure you followed all the steps correctly and also check you are not connecting via a USB Hub. Always connect directly to your PC. Try a different USB port and if possible a different cable. If it still fails after this, post details of the error message and we'll see if we can help.

    Any comments or suggestions on how to make the process even more failsafe are welcome :)
    Last edited: Nov 9, 2011
    • Like Like x 8
  2. iCrank
    Offline

    iCrank Member Staff Member

    Joined:
    Feb 27, 2011
    Messages:
    5,623
    Likes Received:
    79
    Trophy Points:
    0
    Location:
    Vallejo, Ca
    Another great thread from you...nice job
  3. zuluwhiskeyfox
    Offline

    zuluwhiskeyfox New Member

    Joined:
    Sep 29, 2011
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    0
    I must be doing something wrong but what? I followed the steps to the letter and got a message that said my iphone was not eligible for this build. What I want to do is upgrade from 4.3.1 up to 5.0. But when i plug into itunes it wants me to update to 5.0.1. I'm trying to avoid the 5.0.1 and get 5.0 installed before it's to late. So I downloaded the .ipsw file, did the dfu thing and the option/restore button thing. And that's when I got the not eligible message. So what am I missing. Did I miss the 5.0 window and apple is no longer signing it?
  4. f4780y
    Offline

    f4780y Super Moderator Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    912
    Likes Received:
    145
    Trophy Points:
    0
    Location:
    Troon, Scotland
    Does not sound like you are following the Fix Hosts section correctly. Just to be clear you must UNTICK the option it talks about.
    Also check for other stuff in step 5 you may have missed...
  5. zuluwhiskeyfox
    Offline

    zuluwhiskeyfox New Member

    Joined:
    Sep 29, 2011
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    0
    Unfortunately that's not it either. Also made sure to untick the Cydia host on exit in tinyumbrella.
  6. Hel22
    Offline

    Hel22 New Member

    Joined:
    Nov 7, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    I have same question! How can i know if apple is still signing iOS 5?? I get unknown error occured (11)
  7. f4780y
    Offline

    f4780y Super Moderator Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    912
    Likes Received:
    145
    Trophy Points:
    0
    Location:
    Troon, Scotland
    Sorry guys, just tested it myself, and the 5.0 window is now closed.
  8. Hel22
    Offline

    Hel22 New Member

    Joined:
    Nov 7, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    So upset!
  9. zuluwhiskeyfox
    Offline

    zuluwhiskeyfox New Member

    Joined:
    Sep 29, 2011
    Messages:
    150
    Likes Received:
    2
    Trophy Points:
    0
    Crap. I was trying so franticly last night.
  10. Hel22
    Offline

    Hel22 New Member

    Joined:
    Nov 7, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    Isnt there a tethered jb already available for 5.0.1? Thought i read that somewhere...
  11. f4780y
    Offline

    f4780y Super Moderator Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    912
    Likes Received:
    145
    Trophy Points:
    0
    Location:
    Troon, Scotland
    Yes. But many folks prefer / demand untethered. And tethered does not apply to the iPhone 4S either...
  12. Hel22
    Offline

    Hel22 New Member

    Joined:
    Nov 7, 2011
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    So i guess I'll have to work on my patience for longer :-(
    I didnt need the iOS 5 so badly but the higher the iOS get the 3GS will prob soon not be supported anymore...
  13. lennie paz
    Offline

    lennie paz New Member

    Joined:
    May 17, 2011
    Messages:
    86
    Likes Received:
    1
    Trophy Points:
    0
    Can someone please help me out? I am trying to restore to iOS5 so I click on restore while holding the shift key. I click on the iOS5 ipsw and it starts to load. I then get the 3194 error. I followed the guide on how to use tinyumbrella and here's what I am getting:

    [​IMG]

    [​IMG]

    [​IMG]
    Last edited: Nov 13, 2011
  14. Spanky23
    Offline

    Spanky23 New Member

    Joined:
    Nov 21, 2011
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    I was on Ios5, tried to restore, got error 3194, so I tried 5.0.1 (Windows Security Essentials turned off), and all of the steps. Alas, error code 21 again :/ I hope my phone isn't broken
  15. ricster76
    Offline

    ricster76 New Member

    Joined:
    Nov 23, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have followed these instructions to the letter, but still get the error 21 message. I had the totally blank screen for the dfu mode, have my security software and firewall disabled and have tried different ports. I am currently on Windows 7 Premium 64. I have been dealing with this since the iOS5 originally came out. I have four 3rd Generation iPods touch-but only one is experiencing this error. Since the software downloads were only for iPhones, I downloaded the 5.01 from felixbruns.de. I hope that someone can help me even though this is not an iPhone. I am really at the end of my rope with this. Here is my host file:

    # Copyright (c) 1993-2006 Microsoft Corp.
    #
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    #
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    #
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    #
    # For example:
    #
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    # localhost name resolution is handle within DNS itself.
    # 127.0.0.1 localhost
    # ::1 localhost

    Thanks,
    Ric
  16. blabla
    Offline

    blabla New Member

    Joined:
    Dec 2, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I get over the error "3194" but now its error "2005" and I've tried everything with cabels and its steel the same error(2005).
  17. Jmills87
    Offline

    Jmills87 New Member Staff Member

    Joined:
    Jul 28, 2011
    Messages:
    3,646
    Likes Received:
    160
    Trophy Points:
    0
    Location:
    The Land of Ice and Snow
    2005 usually means your iTunes is outdated.
    • Like Like x 2
  18. MKN
    Offline

    MKN New Member

    Joined:
    Dec 7, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Thank you sooooooo much!! <3
  19. ErikK
    Offline

    ErikK New Member

    Joined:
    Dec 9, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Unable to restore iphone 4s unknown error (36).

    I followed all steps but get an unknown error. It looks like the phone can't prepare itself for restore. The progress bar doesn't go anywhere. It fails to restore and then gives me the unknown error (36) message and goes back into recovery mode. Any help please?

  20. MikeCorruption
    Offline

    MikeCorruption New Member

    Joined:
    Dec 28, 2011
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Birmingham, UK
    I was having so many problems until i read this thread, thank you :D i think the problem i was encounting was i had iTunes 10.3 and was trying to update my iPhone to iOS5.0.1

Share This Page