mattpitts74
Posts: 10
Joined: Tue Jan 29, 2013 10:59 pm

Volumio music on SD card - Symlinks

Thu Jul 23, 2015 7:10 am

Hi There,

I'm trying to find a really easy step by step guide to using the extra space on my SD card to store and play my music from. There are various threads here on the forum, but I'm a linux noob, so its all i bit complicated to me. I also understand that I need to create a symlink to the folder on the SD card where the music is stored so that mpd will know where to look, is that right?

I have a 64GB card, running the lastst version of volumio, and I would like to put my music in a folder on the SD card, mainly so I can use volumio as a portable music server on batteries without the need for extra power, usb hubs etc.

I can see that people have managed to do this, but I have been unable to find a simple step by step guide any where here.

I also need to copy my music on to the SD card, so I assume I can do this via a samba share, but I also need some help setting this up. I have been searching across the internet and tried various things, I feel like I'm almost there, but not quite, and it's soo frustrating. So if anyone can help with this which I imagine is pretty simple for an experienced linux user. I would be so grateful.

tpylkko
Posts: 352
Joined: Tue Oct 14, 2014 5:21 pm

Re: Volumio music on SD card - Symlinks

Sun Aug 09, 2015 7:23 pm

I don't use Volumio, but what is going on is (probably) that it mounts USB-drives to certain directories where it then plays the music. Since it is not designed to play from the SD-card you need to link the music from the card to one of these directories in order for it to think that the conent on the SD-card is in fact from a USB-drive.

OR you can switch to PiMusicBox which will play music off the SD-card out of the box.

You probably want to put music on the SD-card some other way than over Samba (card reader, a usb to sd drive), since that can be really slow, especially if you have something close to 64 GB of stuff.

FM81
Posts: 518
Joined: Wed Apr 17, 2013 4:33 pm

Re: Volumio music on SD card - Symlinks

Mon Aug 10, 2015 8:39 am

As far as I know Volumio uses MPD ...
Simply point the 2 values in your '/etc/mpd.conf' to the correct path like

Code: Select all

music_directory "/mnt/mmcblk0p1/audio"
playlist_directory "/mnt/mmcblk0p1/playlists"
This is only an example, you cannot take this 1:1 !
An then (very important): Hope that there is nothing in Volumio, which will override your settings always automatically ...
This will work, if the new place is the only one with your music.

Of course you can also create a symlink from inside your original "music_directory" to your own place,
but also hope that Volumio "does not go its own way".

Greetings, FM_81
A: What does the command 'cat /dev/urandom', can you tell me please?
B: Yeah, that's very simple: It feeds your cat with radioactive material!

Isaac632
Posts: 1
Joined: Wed Oct 17, 2018 9:46 am

Re: Volumio music on SD card - Symlinks

Tue Nov 13, 2018 10:03 am

Below are some of the steps you need to perform to reclaim the extra space in your SD card before you can use them. Do take note that the partition number or the name could be different. You can use the command fdisk -l to see what the info display.

sudo fdisk /dev/mmcblk0
Command : d (delete the partition won't delete the content, it's just a partition table update)
Partition number : 3
Command : n
Select : default
Partition number : 3
Partition start : default
Partition end : default
Command : w
sudo reboot

sudo resize2fs /dev/root

After you had rebooted the pi the additional space will be added into the root. Just run df -h to list out to see if the space is all there in root.
Once is confirm, you can remote access to your Pi from your other computer to copy the files into the SD card. Some how I did not manage to get the symlinks to work for the SD card after I created a new directory for it. So what I did was to copy my music files to the existing folder like for example the USB folder. Once you had finished copy the files, you just have to update the library within the web UI. After the update is complete you will see all your music in the folder you had copied to earlier. Hope this helps.
__________________________________________________________________________________________________________________________________________
mobdro app

Return to “Media centres”