Un-mounting tipically needs root privileges, unless the current user mounted the volume (which seems likely for connecting USB devices).
For spaces in names, you can probalby escape them with a "\", so something like this might work?
umount /Volumes/name\ with\ spaces
Bart