Problems creating Yosemite USB bootable drive I was trying to make a USB boot loader for Yosemite using this command

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled 2 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction


I borrowed it from the original 

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction


Which has worked for tons of people. The issue is for some reason it doesn't recognize the name of my volume is Untitled 2. 
Error message:

/Volumes/Untitled is not a valid volume mount point.


I don't understand why it isn't reading the 2. Is there another way to point the command to the partition without using the names given e.g. serial addressing?
Change  

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled 2 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction


to

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume "/Volumes/Untitled 2" --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction


or

sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled\ 2 --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction


and it should work.

You have to escape spaces in paths in the command line either with a \ or quotation marks.