I have an iPod touch 4 on 5.1.1 and I want to restore but this keeps coming up and it won't bring me to the Lock screen

How do I check that? And I don't care if it updates I just wanna use my iPod!Make sure your hosts file isn't blocking Apple, it's going to upgrade it to 6.1.3
http://decoding.wordpress.com/2009/04/06/how-to-edit-the-hosts-file-in-mac-os-x-leopard/
Easier just to do it on another Mac or PC. Make sure your iTunes is up to date too.
It's because you're trying or have tried to jailbreak.
http://jaxov.com/2011/03/how-to-fix-itunes-error-21-during-custom-ipsw-restore/
Google iTunes error 21 and you'll get suggestions.
How do I check that? And I don't care if it updates I just wanna use my iPod!
I did then it says could not
I have the same issue basically, my ipod tells me error 40 in itunes and i've tried every method to get it out of recovery loop and it WILL NOT. Does your updatelog say something about failed to initialize NAND or failure communicating with NAND? If so you may be in the same boat as me!
I fixed it! I just went to another computer and it worked. And no mine just said cant restore idk why. Try another computer