Hi xelix35xx,
Thanks for visiting Apple Support Communities.
If you're receiving an "error 9" message when trying to restore, the steps in this article can help:
iTunes: Specific update-and-restore error messages and advanced troubleshooting
http://support.apple.com/kb/TS3694
This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if you manually disconnect the device during the restore process. You can resolve this issue by using USB troubleshooting, using a different Dock Connector or Lightning Connector to USB cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.
Regards,
Jeremy