Summary
If you're getting an error message 'The iPhone could not be restored. An unknown error has occurred (9)' when trying to restore your iPhone, try checking for software updates, resetting the iPhone, and using iTunes to restore the device. If that doesn't work, try using Recovery Mode or DFU Mode to restore the iPhone, and if you're still having trouble, consider visiting an Apple Store or authorized service provider for further assistance. Before attempting any of these solutions, make sure to back up your iPhone to avoid losing any important data. If the issue persists, try restarting your computer and iTunes, and then try restoring the iPhone again.
"You upgraded your iPhone 6 from iOS 9 to iOS 10 and then to iOS 10.3.2, but now it's stuck at the Apple logo and won't turn off. You tried to restore it with iTunes but got an error message. What's the exact error message you received?"
Besides error 9, other similar error codes like 4005, 4013, and 4014 can occur when trying to update or restore an iOS device in iTunes.
Before trying every possible solution, a kind suggestion is to rescue data and files on your iPhone when it encounters issues and iTunes is unable to restore it to normal.
To access data from a disabled iPhone without using iTunes, you can download Qiling MosiSaver, an iOS data recovery app that scans and finds various data files, including contacts, pictures, messages, and videos from the device's internal memory. It can also be used as an iPhone backup extractor to restore iCloud or iTunes backup.
Step 1. Connect iPhone to Your PC
Launch Qiling MobiSaver, click "Recover from iOS device" and then click "Start".
Step 2.Scan for Lost iPhone Data
Qiling MobiSaver automatically scans your iPhone/iPad/iPod, finding both present and potentially lost data, and waits for the scan to complete.
Step 3.Click the "Recover" Button
You can select the lost data you want to recover, such as photos, videos, contacts, SMS, notes, voice mails, and other files, and save them to a new location.
Error code 9 is often seen during iOS upgrades and device restores. It typically occurs when iTunes can't recognize your device or it disconnects, resulting in the error.
The iPhone [device name] could not be restored. An unknown error occurred (9)
There is a list of solutions for you to fix the error. Many people have tried on their own and shared their successful experience on some popular iOS forums.
If you didn't backup your iPhone beforehand by using Qiling MosiSaver and data got erased by factory reset, see how to recover iPhone data after factory reset.