I have HTC magic vodafone. Everytime I factory reset the phone, when it reboots itself it will just show the android logo and freeze. It won't start up. So I have to do battery pull up. And when I factory reset again same problem occurs. What should I do?

By the way, mine is running in froyo and already rooted.