Apple - Problems creating Yosemite USB bootable drive
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.
Use this path instead:
/Volumes/Untitled\ 2/
The backslash tells the terminal that the space is included in the path, otherwise it thinks your volume is called /Volumes/Untitled and that there is a random 2 argument in the command.