 |
| iTunes iTunes Discussion | Help | Downloads |
 |
Error 21 restoring iPhone4 |
 |
09-16-2012, 02:33 PM
|
#1
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
Error 21 restoring iPhone4
Got given an iPhone to repair. Dont know the history on this handset.
Basically when powering on the apple logo appears then after about 8 seconds the phone reboots and the logo reappears then a reboot and so on. Stuck in this loop.
On my Windows 7 home premium laptop I downloaded redsn0w 9.12b2 and put the handset into PWNG DFU using redsn0w then tried to restore via iTunes but got Error 21.
Searched the forums and tried the following suggestions:
- Tried from another PC.
- Installed latest version of iTunes.
- Updated all drivers of the PC to latest.
- Turned off antivirus and Firewall
- Commented out lines in the hosts file
None of the above makes any difference. Still Error 21.
Help please
edit: I also tried "Fix Recovery" in redsn0w but the error "Missing keys.plist data for this build" appeared after it rebooted the phone??
|
|
Last edited by keratos; 09-16-2012 at 02:43 PM.
|
|
|
|
 |
09-16-2012, 02:42 PM
|
#2
|
|
The One & Only
Yumraaj is offline
Join Date: Aug 2010
Device: iPhone 4S
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Mac OS X
Location: Origin Unknown
Posts: 2,149
Thanks: 530
Thanked 1,091 Times in 713 Posts
|
|
|
|
|
|
|
09-16-2012, 02:54 PM
|
#3
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
Quote:
Originally Posted by Yumraaj
|
Got to the "Detecting IOS" in iFaith and error message "Unknown IOS" then the program aborts. So this didnt work. I guess the IOS is corrupt, thats why I am trying to restore in iTunes but its not having any of it for the reasons in the OP
|
|
|
|
|
|
09-16-2012, 06:50 PM
|
#4
|
|
Obsessive iPhone Disorder
joecef is offline
Join Date: Jun 2010
Device: iPhone 3GS
iOS Version: 5.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: La
Posts: 2,866
Thanks: 3,154
Thanked 945 Times in 711 Posts
|
Error 21 is possible bad battery. Just sayn
|
|
|
|
|
|
09-16-2012, 07:32 PM
|
#5
|
|
Obsessive iPhone Disorder
southern128 is offline
Join Date: Mar 2010
Device: iPhone 4
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 8 x32
Location: Louisiana
Posts: 489
Thanks: 172
Thanked 160 Times in 96 Posts
|
At times I get errors in itunes when trying to restore. What I do is, delete the host file. Works every time. Restore successfully and the host file comes back. If everything else does not work, try that.
|
|
|
|
|
|
09-16-2012, 11:36 PM
|
#6
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
Battery is fine
Host file fix already tried as mentioned in my OP above
|
|
|
|
|
|
09-17-2012, 08:19 AM
|
#7
|
|
The One & Only
Yumraaj is offline
Join Date: Aug 2010
Device: iPhone 4S
iOS Version: 5.0.1
iTunes Version: iTunes 10
Carrier: Other
OS: Mac OS X
Location: Origin Unknown
Posts: 2,149
Thanks: 530
Thanked 1,091 Times in 713 Posts
|
Try downloading another copy of the ios firmware and try again.
|
|
|
|
|
|
09-17-2012, 08:53 AM
|
#8
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
Tried that.
No difference
The ipsw works on another handset i have
|
|
|
|
|
|
09-17-2012, 10:03 AM
|
#9
|
|
Obsessive iPhone Disorder
southern128 is offline
Join Date: Mar 2010
Device: iPhone 4
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 8 x32
Location: Louisiana
Posts: 489
Thanks: 172
Thanked 160 Times in 96 Posts
|
everytime i have any error, i just delete the host file and restore. it works everytime. if u havent did that option, try it. delete and make sure its deleted before you plug in and restore.
|
|
|
|
|
|
09-17-2012, 01:52 PM
|
#10
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
as I said, the host file deletion. commenting out and so on have been tried to no effect
|
|
|
|
|
|
09-17-2012, 02:15 PM
|
#11
|
|
Carrier Unlocked
InSaNiTy is offline
Join Date: Apr 2012
Device: iPhone 4
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: SW,Ontario
Posts: 31
Thanks: 219
Thanked 19 Times in 11 Posts
|
Do you have tiny umbrella installed ? If you do open Tiny Umbrella
Go to advance tab in TU and uncheck : set hosts file to cydia and close TU.
this is just to make sure you are letting apple verify your restore.
Just an idea since i haven't seen it posted yet, its worked for me in the past,
and hopefully it works for you!
Sorry Yumaai, I just clicked on you link .
I apologize!
|
|
Last edited by InSaNiTy; 09-17-2012 at 02:17 PM.
Reason: added Apology
|
|
|
|
 |
|
 |
09-18-2012, 01:50 PM
|
#12
|
|
n00b
keratos is offline
Join Date: Aug 2012
Device: iPhone 3GS
iOS Version: 5.1.1
iTunes Version: iTunes 10
Carrier: o2
OS: Windows 7
Location: UK
Posts: 14
Thanks: 0
Thanked 2 Times in 1 Post
|
TU made no difference.
I am a software engineer and would love a copy of the iTunes source code and library headers to debug this.
Anyway, what I have managed to find looking through apple documentation over the net is :
* Error -21 relates to an I/O level error, the IOSYS error is "badUnitErr"
* badUnitErr refers to the 0 (False) return code from a software lookup into the Unit Table using a driver reference taken from a given memory location.
* The Unit Table contains a list of all hardware drivers that have been loaded by iOS
* So what this means is that a software component is attempting to communicate with a hardware driver that does not exist.
What this means at the iTunes level is speculative because I do not have iTunes source code. But the likely candidates are:
* a corrupt driver on the PC - unlikely because I have used the PC to flash my other iPhone
* corrupted NVM or ROM code containing an erroneous pointer. This pointer is being used as a reference into the Unit Table but it refers to a non-existent hardware driver - possible if the handset is damaged (water , static, electrical etc.). Such an error would likely exist on the memory chips within the control board but could equally be contained within any component onto which memory store chips are held.
The upshot of this is that I am inclined to conclude that error -21 relates to a hardware failure in the iPhone, very likely to be the result of control board damage/failure but potentially a failure in one of the other handset components. Without more specific test equipment it is impossible to debug
|
|
|
|
|
|
|
The Following 2 Users Say Thank You to keratos For This Useful Post:
|
|
09-18-2012, 02:49 PM
|
#13
|
|
Obsessive iPhone Disorder
joecef is offline
Join Date: Jun 2010
Device: iPhone 3GS
iOS Version: 5.1
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: La
Posts: 2,866
Thanks: 3,154
Thanked 945 Times in 711 Posts
|
"potentially a failure in one of the other handset components"
meaning it could be dock connector or headphone jack etc.. ??
i have 3gs with 21 and one with 28...goddamn useless paperweights right now
|
|
|
|
|
|
09-18-2012, 03:15 PM
|
#14
|
|
ON PAROLE CHECKIN IOS 7
wesboy is offline
Join Date: Mar 2011
Device: iPhone 5
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: Other
OS: Mac OS X
Location: Banbridge, Northern Irela
Posts: 388
Thanks: 68
Thanked 103 Times in 76 Posts
|
Sounds like a defo hardware issue, I battled with my wifes ip4 for a couple ao days and gave up. Luckily when i took the phone to Apple they agreed and as the phone was in warranty, gave us a replacement. Granted this prob wont help you but thought I would share our experience with this error...........
|
Before i do one, did I help, please hit the THANKS button

|
|
|
|
 |
sir..? |
 |
09-18-2012, 04:37 PM
|
#15
|
|
nickolie
nickole214 is offline
Join Date: May 2012
Device: iPhone 3GS
iOS Version: 4.3.x
iTunes Version: iTunes 10
Carrier: Other
OS: Windows 7
Location: jeddah
Posts: 3
Thanks: 37
Thanked 1 Time in 1 Post
|
sir..?
Quote:
Originally Posted by keratos
Got given an iPhone to repair. Dont know the history on this handset.
Basically when powering on the apple logo appears then after about 8 seconds the phone reboots and the logo reappears then a reboot and so on. Stuck in this loop.
On my Windows 7 home premium laptop I downloaded redsn0w 9.12b2 and put the handset into PWNG DFU using redsn0w then tried to restore via iTunes but got Error 21.
Searched the forums and tried the following suggestions:
- Tried from another PC.
- Installed latest version of iTunes.
- Updated all drivers of the PC to latest.
- Turned off antivirus and Firewall
- Commented out lines in the hosts file
None of the above makes any difference. Still Error 21.
Help please
edit: I also tried "Fix Recovery" in redsn0w but the error "Missing keys.plist data for this build" appeared after it rebooted the phone??
|
are you familiar for the restore error 1..?  my iphone 4s error 1 pls help me..
|
|
|
|
|
|
 |
09-18-2012, 05:48 PM
|
#16
|
|
Obsessive iPhone Disorder
hope376 is offline
Join Date: Dec 2009
Device: iPhone 4
iOS Version: 4.2
iTunes Version: iTunes 10
Carrier: Other
OS: Windows XP
Location: Victoria
Posts: 552
Thanks: 42
Thanked 47 Times in 47 Posts
|
I remember getting this error on 3g handsets. Sometimes changing the battery or at least using a fully charged battery can over come this problem. I also heard you should disconnect the battery for a couple of minutes.
This is a hardware error and sometimes can be fixed or OOSW with crapple.
|
Cheery Bye 
|
|
|
|
09-19-2012, 07:57 AM
|
#17
|
|
n00b
nhoy2011 is offline
Join Date: Dec 2010
Device: iPhone 4
iOS Version: 4.2
iTunes Version: iTunes 10
Carrier: Rogers
OS: Windows Vista
Location: Fargo
Posts: 23
Thanks: 24
Thanked 0 Times in 0 Posts
|
Quote:
Originally Posted by Yumraaj
|
thank you for directing me at the site..had that problem and now i can have clean restore..thanks again
|
|
|
|
|
|
09-19-2012, 10:31 AM
|
#18
|
|
Obsessive iPhone Disorder
southern128 is offline
Join Date: Mar 2010
Device: iPhone 4
iOS Version: 6.1.2
iTunes Version: iTunes 11
Carrier: AT&T
OS: Windows 8 x32
Location: Louisiana
Posts: 489
Thanks: 172
Thanked 160 Times in 96 Posts
|
it just so happen, i received error 21 just now and i thought about this thread. as soon as i saw
error 21, went to t C:\Windows\System32\drivers\etc and deleted the host file, tried the
restore again, went through like normal. i posted this already, instead of trying to figuire why
and what is causing the problem, just delete the host file. if that dont work, spend hours and all
day trying to find the solution. there is never just one way for any problem.
what
|
|
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 06:52 PM.
|
 |
 |
|
|
 |