Itunes Error 21 is the most common error users face while performing the restore on the iPhone. Device Firmware Upgrade mode known as DFU mode, this mode allows you to restore your iDevice with an original iOS version or a custom iOS version.
To resolve the iTunes Error 21 in order to restore your iPhone/iPod touch, connect to your device into DFU mode first to get by following the instructions according to your device, The steps below will help getting into DFU mode in case you do not know how to:
- Connect your device to your PC or Mac via a USB cable and launch iTunes.
- Hold Home + Power button for 10 seconds.
- After 10 seconds release the power button off, but keep the Home button pressed until iTunes a little device in recovery mode you find there.
- Once your device into DFU mode, you see nothing on the screen, only a black image. (See above)
Source : ihelplounge.com