I have a WD 2TB External Hard drive

I have a WD 2TB External Hard drive (My passport for Mac) and I forgot the password. How can I change my password or log on my hard drive.

You can’t. Your only choice is to follow the lost password process which will destroy your data.