I have an iPhone 4S and wanted to reset my root password today as I changed it and forgotten it.
I rebooted after that, but then I got stuck on the Apple Logo.

I need to restore it but isn't my data gone then?
I have some important pictures yesterday and I can't afford to lose them, because I didn't sync.

My question is: How can I fix my iPhone without data loss?