Skip to main content
Trending Lyricist I
January 20, 2018
Question

Where to store my Music Library?

  • January 20, 2018
  • 16 replies
  • 12480 views
I feel like this should be addressed somewhere on the Community boards, but I couldn't find any specific answers to this question. I have a large digital music collection much of which is not available through streaming services. I want quick and easy access to my Music Library but I'm unconvinced on the options. I have stored much of the music on an external hard drive connected to a PC, however to access that content the PC needs to be booted and logged in. A while back I had a Home Server, but the hardware technology failed on me twice and in the current timeframe Home Server solutions appear to be out of style. So, my question is 'where can I store my digital music collection in such a way that it is readily accessible via sonos without the need to turn on a PC and log in to connect Sonos to my vast Music Library collection?'. Can anyone help? And if this is addressed in other forums or community conversations, please re-direct my ask.
This topic has been closed for further comments. You can use the search bar to find a similar topic, or create a new one by clicking Create Topic at the top of the page.

16 replies

Stanley_4
Grand Maestro
January 23, 2018
Vegeta_UK, Really nothing to setting up the Pi as a music server, just get a Pi and the SD card pre-loaded with the operating system add keyboard, mouse and HDMI monitor and plug it in. It will boot up ready to run, do an update to get to the latest software version and reboot. Attach your music drive to the Pi. Then install the SAMBA package and configure it and you are done.

Basic PI videos: https://www.raspberrypi.org/help/videos

------
It is best to set a mounting point for your storage drive rather than using the auto-mounting function. The article below is intended to be educational so it has a lot of information you don't really need and looks a bit more complicated than the basic mount command you need. Do use the mount by UUID method to make sure your drive is always mounted regardless of the port it is in or other devices being added or removed.

Mounting a drive: https://www.raspberrypi.org/magpi/connecting-disks-with-the-command-line

This is the mount command I added to my fstab file:

PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354" /mnt/ssd-music xfs defaults,auto,users,rw 0 0

That breaks down to the following sections:

The unique name of the partition on the device you rae mounting: PARTUUID="d450bd65-603d-4e13-8b32-41ed9ea3e354"

The location you want to mount it to: /mnt/ssd-music

The file system your device is set to: xfs
You will probably want to format your drive as FAT or NTFS depending on your other computers preferred method.

The option settings: defaults,auto,users,rw 0 0
They break down to: Use the system defaults as a starting point, automatically mount at boot, allow users to mount and unmount, the 0 0 are recovery options that are best left at 0.

--------
SAMBA config: https://www.raspberrypi.org/magpi/samba-file-server

This is the section I added to my samba.conf file:

[music]
Comment = Pi shared folder
Path = /mnt/ssd-music
Browseable = yes
Writeable = Yes
only guest = no
create mask = 0555
directory mask = 0555
Public = yes
Guest ok = yes

-------
Once set up I remove the keyboard, mouse and monitor and access the PI via VNC from another computer. All you need attached to the PI is the power and Ethernet cables along with your storage device.

VNC: https://www.raspberrypi.org/documentation/remote-access/vnc

------

The Pi is designed as an educational computer for kids so it is easy to use and the documentation is well written but maybe just a touch British in flavour due to the origin of the PI.
Stanley_4
Grand Maestro
January 23, 2018
Kumar, Yes you still need a router with a Pi but a large number of very good routers do not accept a plug-in USB device. That leaves you needing another device that is an SMB v1 capable file server in your local network to stream local music.

I personally would never use a router that did SMB as I am a bit worried about security and every additional program you run on your router/firewall device is another possibility for a security compromise.

A WD live drive is the simple and low initial investment option, more complicated NAS (Network Attached Storage) devices are a step up while the Pi is a bit more effort but lower cost over the long term.

I only have 6 Sonos players and streaming different music from my Pi v3 to each of them only uses a small fraction of the Pi's CPU power.
Stanley_4
Grand Maestro
January 23, 2018
Vegeta_UK, A long detailed "how I did it" post with examples of my setup and links to the detailed explanations of each step is stuck in the spam filters, hopefully it will be approved.
Contributor I
January 23, 2018
I have a Netgear ReadyNAS 2 x 2TB disks mirrored connected to the router, not only does it store my 250Gb music library, it also backs up my laptops and stores all my files enabling access anywhere in the world
11x Amps, 2x5's, Play3, Play1, 2xOnes, Roam and 4 Subs
Lyricist III
January 23, 2018
@sonos, what about adding support for dropbox/box/drive/gdrive cloud shares? It should not be that complex, and would allow more usability
Vegeta_UK
Avid Contributor I
January 23, 2018
Stanley - detailed indeed. I shall look more into it. Think I'll be able to cope with the British flavour too ??
Playbar // Beam (G1) // Sub (G2) // 9 x Play:1 // 1 x One // 2 x Play:3 // 1 x Play:5 (G2) // Boost x 3 // Roam x 1//Ray x 1