3. Restore the Yosemite InstallESD.dmg to your USB drive. Replace “USBDrive” with the name of your drive. You will be prompted for a Yes or No. Hit y and then Enter to continue and erase all the data on the USB drive.