Exposing NFS mount via USB

networkingnfsusb-drive

I know enough linux to be dangerous – apologies if my terminology is incorrect.

I have an electronic drumkit that has USB into which I can plug a flash drive with MP3s on it. The drumkit has no network connectivity. This means whenever I want to play along to a new song, I have to unplug the flash drive, plug it into a computer on my network, copy the MP3 from my NAS to the thumb drive, and plug it back into the drumkit. This is clearly a hassle.

I was thinking of getting a raspberry pi with wifi and mounting my music via NFS. I could then run a USB cord from the pi to the drumkit and….somehow have the drumkit "see" the contents of the NFS mount (would need to be FAT32, I'd imagine). Thing is, I don't really know how to do this bit. I'd imagine being able to mount the NFS at the USB mount point, so to speak, but that's probably naive.

Can anyone explain what I'd need to be able to pull this off?

Best Answer

You would need an inverse of the virtual file system - a layer translating existing file and directories hierarchy into a file system structure but on a different (or virtual) backing device.

While this could be done (as almost anything), you might be better off by introducing one step in between: create a FAT16 filesystem (I would be rather surprised if your drum kit supported FAT32 - see Wikipedia article on FAT for more details, more likely it understands VFAT on top of FAT16, yet that's not that important here) on R-Pi and export it over USB. Whenever you'll want to play new song, just transfer it (via network - you can export it as NFS on R-Pi) from PC to R-Pi. One copying more, but it's easier and you won't have to open your PC to additional connections from outside.

Related Question