- Download the latest OSX Yosemite version from the iTunes store and, if not already done, place the app inside the Applicaitons folder
- open Disk Utility
- erase your USB drive and format your drive with partition layout "1 Partition" and the GUID option.
- close Disk Utility
-
open your terminal and paste following code
sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled\ 1 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction
- done. reboot your machine and boot from the USB drive