Protect a disk with a password
You can protect an external disk or thumb drive with a password, so when you connect the disk to your computer, you must enter the password before you can access its files.
To protect the disk, you must erase it first. If the disk has any files you want to save, be sure to copy them to another disk.
Avoid encrypting disks used by a Mac server. If a disk with service data is encrypted, the server cant restart until you go to the server and enter the password at the servers keyboard. If a shared disk is encrypted, the disk isnt available to users until you enter the password at the servers keyboard.
Open Disk Utility, in the Utilities folder in Launchpad.
Open Disk Utility
Connect the disk to your computer.
Select the disk and click Erase.
Choose Mac OS Extended (Journaled, Encrypted) from the Format pop-up menu.
If you dont see that option, you may have selected a partition and not a disk in the list at the left. In the list, make sure you selected a disk thats to the far left and not a partition thats indented to the right under a disk.
Type a name for the disk.
If you want to prevent the erased files from being recovered, click Security Options, use the slider to choose how many times to write over the erased data, and click OK.
Click Erase.
Enter a password when prompted.