windows vista keeps rebooting

I have a computer with windows vista installed. It keeps rebooting right after it getsa to the log in screen. I thought it was the hard drive and ran a diagnostic and it passed. Took the hard drive out and conected to another system to back up the data and relized that the drive letter c: from the hard drive changed to H: somehow. How can I get it back to C:? thanks in advance
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ben2267Author Commented:
I just realized that when you conect a hard drive to another system its going to have another drive letter other than the main C: drive letter that belongs to the system.

My main problem is windows vista keeps rebooting right after it gets to main log-in screen and it keeps doing that in a loop. How can I fix this without losing the data?
Boot to safe mode and look at the system event logs.  

I note you use the word "rebooting" - do you mean shutting down and restarting or bluescreening?  The bluescreen will tell you what driver caused the issue.  Boot to safe mode and simply rename that file, then try again. If it's a virus/trojan or similar, get autoruns and RootKitRevealer onto the system, let RKR scan it, and use autoruns to prevent nasties... or just the piece of crap that's causing the crash from starting.  It'll tell you where they're launched from too.
ben2267Author Commented:
yes shutting down and restarts. I tried safe mode and it makes it to the log in screen and when I type in the password and hit enter it shuts down and restarts.
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Try creating a Trinity Rescue Disk and booting from that.  Run the virus scan and junkfile removal and try a reboot.  If that still doesn't work (generally I've had to use Trinity to reset passwords only) then see what you can do with it to copy off the event logs and view them elsewhere to see if that shows you what's causing the reboot.  Trinity should be able to get you to a command prompt where you'll be able to somehow remove the offending utility.
run a startup repair :      repair Vista

also, post exactly which one :  "and ran a diagnostic and it passed"
ben2267Author Commented:
I tried startup repair and it did not work. I also tried to do system restore and that did not work. The laptop turns on fine however when it gets to the log in screen of vista just before the password box where you have to type your password it shuts down and restarts. It keeps doing this in a loop everytime.
>>  it did not work  << yeah, but what happened?  any message or error?

also, what Diag? :  also, post exactly which one :  "and ran a diagnostic and it passed"
ben2267Author Commented:
the start up repair did not work. I got a message saying it did not find a problem. then I tried system restore and I got message stating that it could not find a restore point. the diagnostic I ran was the dell diagnostics. the reason I wanted to repair windows if there was a way to do it was because there are some software installed that I do not have the cd for it and also avoiding to have to re-install everything..
>>  it could not find a restore point  <<  that can mean that your system is set to NOT make restore points;
can you boot to safe mode (hit F8 key during boot) ?
how long did the dell diag run? it should be over 30 minutes, to test the disk
if unsure, download ubcd to run the disk diag  :

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ben2267Author Commented:
I am so sorry I forgot to respond back. I reformated the hard drive and reinstalled the operating system.... thanks
tx for feedback
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Vista

From novice to tech pro — start learning today.