I have a problem with my WD external drive that has a password property. When i plug it in my laptop it works normally but after i type the password and press ok the laptop freezes for a moment and the external gets ejected and start the process all over again! When i opened disk management after reading some websites i found it UNALLOCATED and NOT INITIALIZED.... please help me.
Most likely the hard drive is fine, it's the USB side of it that's faulty.
You can first try a new USB cable, but if that makes no difference, the problem could be inside the enclosure. In there is a SATA-USB bridge chip (essentially a small PCB) and this is a likely suspect. It fails and causes drive errors.
The usual fix is to extract the actual hard drive, remove the bridge chip, then put the drive into a third-party enclosure.