iPhone Iphone not Unjailbreaking.

Discussion in 'Jailbreaks and iOS Hacks' started by Josh7047, Nov 27, 2014.

  1. Josh7047 macrumors newbie

    Joined:
    Jul 20, 2014
    #1
    i have a JB iPhone 5s on ios 8.1. i want to unjailbreak but when i put it into DFU mode and try to restore it keeps saying error 21 after preparing to restore. Any ideas?
     
  2. heisenberg123 macrumors 603

    heisenberg123

    Joined:
    Oct 31, 2010
    Location:
    Hamilton, Ontario
    #2
    try recovery mode
     
  3. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #3
    Try restoring it on another computer. Use other usb wires and ports.
     
  4. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #4
    i tried recovery mode, it just gets stuck on preparing for restore.

    ----------

    ive tried all ports. Can someone please help me??
     
  5. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #5
    You don't need to put it in recovery or dfu mode.
    Just plug it to iTunes and hit restore.
    The jb iPhone still turns on and starts up fine right?
    You're sure there's no hardware issue with it?
    You try another computer?
    What do you think we're both doing?trying to help you.
    You're welcome.
     
  6. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #6
    I used Tinyumbrella to exit recovery mode. when i did this i noticed it said "Do not restore, windows/system32/drivers/hosts/etc is not writable" Does this have anything to do with it not being able to restore? should i still try restoring without DFU?

    ----------

    When im not trying via DFU mode, it always ends up getting stuck preparing for restore with the recovery logo on the phone.
     
  7. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #7
    Tiny umbrella has been useless for a few years now. Why are you using it with an iPhone 5S?
    And your hosts file not pointing to apples servers is the reason the restore will not go thru.
    Fix your redirects either manually or via TU settings to make sure hosts point to apples servers and not cydias.
    Restore will never complete unless you fix your hosts that you messed up by using TU.
    That's what I thought was the case when I told you if you can't fix it restore it on another computer with iTunes.
     
  8. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #8
    I have no clue how to fix those, can you give me a rundown?
     
  9. Europa13 macrumors 6502

    Joined:
    Feb 1, 2009
    #9
    Open Tiny Umbrella and uncheck the box that says Set hosts file to Cydia on exit and close it.

    You can uninstall TinyUmbrella at that point. Years ago we could use SHSH blobs to downgrade or restore to old firmware and needed to redirect to Cydia. TinyUmbrella was one way of doing that. That method no longer works.
     
  10. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #10
    That is all i have to do to make the restore work?
     
  11. Europa13 macrumors 6502

    Joined:
    Feb 1, 2009
    #11
    That's how you fix your hosts file. Your hosts file may be incorrect, which will stop the restore from going through. Try restoring after you fix it and post back with the error code if you receive any more errors while trying to restore.
     
  12. retrojules, Nov 27, 2014
    Last edited: Nov 27, 2014

    retrojules macrumors newbie

    Joined:
    Nov 27, 2014
    #12
    I've had a similar issue.

    Is it safe to say one 8.1 JB you simply can't "restore" your phone via the settings menu? When I tried that the phone just freezes up in the restoration process. I had to throw it in DFU and restore it via Pangu. is this normal (for being jb)
     
  13. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #13
    i went into tinyumbrella and that box was already unchecked, i unchecked all the other boxes, closed it and tried to restore. Same error.
     
  14. BumpyFlatline, Nov 28, 2014
    Last edited: Nov 28, 2014

    BumpyFlatline macrumors 68030

    BumpyFlatline

    Joined:
    Apr 11, 2012
    #14
    What happens when you type gs.apple.com in your browser? Do you go to apple's site or cydia?

    Edit: I'm almost positive it'll take you to the cydia page. In checking that box didn't work because in your earlier post you said you got an error when using TU; that the hosts file was not writeable.

    Anyways, you may or may not be able to manually edit the hosts file depending on what version of windowsill are using and how you are logging in to it. This is why AppleJuiced suggested using a different computer to restore.

    If your browser takes you to cydia, then your hosts file needs to be fixed. Here's a screenshot of what it may look like.
     

    Attached Files:

  15. dcharleyultra macrumors 6502

    Joined:
    Sep 28, 2013
    #15

    Yes, that's been my experience - you can't restore via the phone's Settings menu.
     
  16. Josh7047 thread starter macrumors newbie

    Joined:
    Jul 20, 2014
    #16
    It takes me to a page called "GCS Default server" it has three boxes with options of Apple, Apache web server and Tech Probs. My hosts does not have those two lines, im reinstalling itunes right now.

    ----------

    i still get error 21 after reinstall of itunes. I would like to note i have two files named hosts in the etc folder. One is hosts.bak and the other is hosts.umbrella. i have kept tinyumbrella because that is the only way i can get out of recovery mode after i get error 21.
     
  17. bbrks macrumors 65816

    bbrks

    Joined:
    Dec 17, 2013
    #17
    Try again with DFU restore......you know that when in DFU, screen of your iPhone should be just black?
     
  18. HankHowdy macrumors 68040

    HankHowdy

    Joined:
    Dec 2, 2012
    Location:
    Victorville CA
    #18

    Remove the tiny umbrella host file and rename Host.bak to Host.

    Then try to restore.

    If that doesn't work you can delete the host file, then connect to a network and a new host file will populate.
     
  19. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #19
    Just so you know for future reference.
    You can never ever ever do an "Erase all" with a JB device.
    You need to plug it to itunes and hit restore to bring it to stock firmware.
    There is no restore via settings menu. Its an erase all content and setting option that doesn't work on JB device.
     
  20. TriJetHero macrumors 601

    TriJetHero

    Joined:
    Oct 13, 2010
    Location:
    World
    #20
    From the iphone wiki:

    Error 21
    Custom firmware restore fail (PwnageTool since 4.1). You have to put your device into the DFU mode and not into recovery mode. Device won't boot correctly an stuck at the Apple logo after the error. Press and hold power and home button until it reboots.
    Error when using Sauriks server for a restore with iOS 5.x in the recovery mode at least on a A5 device.
    This error can also happen when you try to restore an iPod with hardware dfu. Use iREB r5 to solve this.
    You are trying to update to a beta firmware without UDID activation.
     
  21. Applejuiced macrumors Westmere

    Applejuiced

    Joined:
    Apr 16, 2008
    Location:
    At the iPhone hacks section.
    #21
    Little advice for the op.
    Stay stock from now on and don't bother any more.
    Jailbreaking is clearly not for you.
     

Share This Page