Cannot unmount volume if spaces in name

In messing around with Volumio, I discovered something interesting. It’s definitely a bug in the system, but there’s a simple workaround to avoid this problem as well.

Specifications:

  • Raspberry Pi 3 running Volumio 2.246
  • Samsung Fit USB 3.0 128GB storing the music

The volume name for the USB drive was “Samsung USB”. That’s the volume name it was assigned at the factory. Copied all my music to it and plugged it in. Everything works fine (minus the known concern of detecting embedded album art).

When I try to safely eject the drive from Volumio while the system is running, I get an error saying it can’t find the mount point “/mnt/USB/Samsung”. So it’s not passing the full volume name to have it unmounted. If you’re calling umount directly behind the scenes, I’ll presume you’re not enclosing the volume name in quotes for the command.

Simple workaround: make sure there aren’t any spaces in the volume name.