How do I put a boot sector on the hard drive I just installed?

A laptop's hard drive crashed and I put a new hard drive in there and now it says no boot sector.  How do I put one on there?  I tried booting from the Windows XP disk and it won't even get me that far.  Please let me know.

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.

1. Make sure the hard drive is recognised by the laptop's BIOS.
2. Boot from an install CD and install the O/S. The boot sector will be created during install.

You may have to be a bit more precise here: just how far do you get when you put the CD in and try to boot? Have you set the proper boot sequence in the BIOS setup (start with CD unit)?

A new hard drive is typically empty. The boot data (the boot sector) is written by the O/S installation.

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
if the above does not help you, i would test the new disk, to be sure about it's status :      
Forced accept.

EE Admin
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
Laptops Notebooks

From novice to tech pro — start learning today.