For all those who have problem with error 1004 when restoring to 4.1. To solve the problem requires:
- Restart the Mac/Windows
- Try to restore again if it does not work:
- Close iTunes
For your Mac:
Finder (right click on the icon)
then "Go to Folder" ...
In the window asking you where to go, enter / etc / and made [ENTER]
In the window that opens you'll have to find the file "hosts"
Make a copy on the desktop (Finder)
You'll have to identify yourself to change or move this file
enter your administrator password
open the hosts file duplicated on the desktop with TextEdit or another text editor and remove the line
For Windows 7 and Vista: Start “Notepad” with Administrator privileges by right clicking on “Notepad” app, and click on “Run as Administrator“ option.
For Mac OS X: Make sure you have full read and write access on your account when you are saving the host file. If it still throws permission error, simply copy the host file to desktop, make the required changes, and then replace it with the original file in “/etc/” directory.
You will now have to restore your iPhone to the firmware you downloaded in Step 1. Click on your phone icon from the sidebar in iTunes. Now press and hold left “alt” (option) button on Mac (Left “Shift” button on Windows) on the keyboard and then click on “Restore” (Not “Update” or “Check for Update”) button in the iTunes and then release this button.
Save your changes
Your iPhone at this point will be stuck in Recovery Mode, showing that “Connect to iTunes” screen. To exit your device from Recovery Mode, download this program called TinyUmbrella (Windows / Mac). Run it and the click on “Kick Device Out of Recovery” button. Your device will now restart normally.
If the hosts file you do not have the line "220.127.116.11 gs.apple.com" then let the original form and look for a file called "hosts.umbrella" this file you copy to the desktop and delete the file / etc / and you will see that the restoration will work without error 1004