UDOO Quad - Appreciation Thread / Issues / Tutorials

Hello everyone,

First I’d like to thank to Volumio team for tremendous work! Well done guys! :slight_smile:

I installed Volumio 1.5 on my device and it works much better than 1.4!

ISSUES:

  1. After linking a drive (sATA) to /var/lib/mpd/music the drive don’t show in the web-ui
  2. Volumio is booting up with “Consume Mode” ON and empty playlist
  3. 24bit 96 KHz playback sometimes is heavily distorted

I highly recommend a MPD client called Cantata https://code.google.com/p/cantata/ for Windows/Mac.
I can easily play music stored on mounted/linked sATA drive!

HOW TO ADD SATA DRIVE
First, we create the folder where your hard drive will be mounted:

mkdir /mnt/HARDDRIVE 

(or whatever you want to call it)
Now, we grant full permission to that folder

chmod -R 777 /mnt/HARDDRIVE

Now, we create a symlink into MPD music folder to our newly created one, so MPD will index this as well
first we check that the symlink is not yet enabled (link to /mnt/)

cd /var/lib/mpd/music ls
if you don’t see the folder HARDRIVE we actually create a symlink

ln -s /mnt/HARDDRIVE

Now, let’s see how your Hard drive is called:

fdisk -l

You should see a list, and be able to recognize your 2TB drive. Assuming is called /dev/sda1, we mount it:

mount /dev/sda1 /mnt/HARDDRIVE

Now, let’s see if it is properly mounted, and if we can see the files in it

cd /mnt/HARDDRIVE ls
If you can see the files, the last thing is enabling this to be mounted at boot . We add a line to fstab

nano /etc/fstab

Add this at the end (change the name with the name of your drive.
if it is FAT32

/dev/sda1 /mnt/HARDDISK vfat defaults 0 0

if it is NTFS

/dev/sda1 /mnt/HARDDISK ntfs-3g defaults 0 0

HOW TO ADD SAMBA

sudo apt-get install samba

Now let’s add linked SATA drive

nano /etc/samba/smb.conf

and add

[SATA] comment = SATA path = /mnt/HARDDISK read only = no public = yes follow symlinks = yes wide links = yes

Sounds like you have trash mode on. go to the playback page and click the trash can, this should be light now, but dark when its disabled.
Else open the console and type:

mpc status

This shows the current status of mpd, you should be able to see whether or not the trash mode is enabled

I’m LAME!!!

hahaha well… you are absolutely right. I had it ON from the beginning.

cheers!!!
Adam

Thank you. It’s an immense joy to see you guys happy for Volumio.
Really.

THANK YOU!

Small issue…
every time I turn on my Udoo, Volumio is loaded with Consume Mode - ON and last playlist is gone.

I can’t load database from mounted sATA drive.

I did everything step by step (as usual).
It seems to be mounted but it doesn’t show up in the database (I tried to reboot/update database).

Actually I could see (via terminal) all catalogs on mounted SATA SSD 1h ago.
now I got this:

root@volumio:/mnt/SATA# ln -s ln: missing file operand Try `ln --help' for more information.

cd /var/lib/mpd/music root@volumio:/var/lib/mpd/music# ln -s ln: missing file operand Try `ln --help' for more information.

so odd. it used to work!

Drive is SDD (FAT32) and Volumio 1.5

ln - make links between files linux.die.net/man/1/ln

The ln command only makes a link between to files “ln -s make symbolic links instead of hard links”
So it’s normal that this doesn’t really show a thing.

The command you might be looking for is ls - List directory contents linux.die.net/man/1/ls

Or you need to do:

root@volumio:/mnt/SATA# ln -s /var/lib/mpd/music OR root@volumio:/var/lib/mpd/music# ln -s /mnt/SATA
This depends on from where to where you want to make the link

But there have been reports that after linking a drive to /var/lib/mpd/music the drive didn’t show in the web-ui, if this happens you could try to set the link to /var/lib/mpd/music/usb or an other that is already available

Thank you!
I successfully linked SATA to RAMPLAY!
I didn’t get any problems like this with Volumio 1.4

best,
A

I’m using my sATA drive with Udoo Quad + Volumio 1.5.

Is there any way to copy music to that drive without unplugging it from Udoo?
I used to be able to use mounted drive via network.
It’s not available though.

Maybe via USB OTG, is it possible?

I have no idea whether or not UDOO supports USB OTG, but on phones this is used to access usb drives from the phone and not client devices from the outside of the phone, thats what the normal usb port does. Your looking for a USB client connection (where you plug in the drive is a usb host connection, udoo being the host)

Any how, you can add the drive to the SAMBA configuration and then share it over the network. For this edit:

/etc/samba/smb.conf

You would need to add a few new lines, I would just copy one of the others like ramplay and change the name and path, in your case this would be something like this:

[SATA]
   comment = SATA
   path = /mnt/SATA
   read only = no
   public = yes
   follow symlinks = yes
   wide links = yes

NOTE: please check and see if this is correct before using

Yes UDOO supports USB OTG.

samba.conf is blank… I added what you suggested but I can’t connect it to smb://192.168.1.xxx

Oh my bad, it smb.conf sorry

/etc/samba/smb.conf

This file should already be available and filed with the default music locations

And make sure samba is installed, samba was removed accidental on some systems.

sudo apt-get install samba

It’s working! THANK YOU!!!

just two issues left:

  1. After linking a drive (sATA) to /var/lib/mpd/music the drive don’t show in the web-ui.
  2. Volumio is booting up with “Consume Mode” ON and empty playlist.

1st is annoying, I linked my drive to RAMPLAY but after rebooting UDOO i had to relink it.

  1. That is very annoying, i bet this has something to do with the drive not being online when the os runs, but thats just a guess.
    You could add the creation of the link to crontab so it will be started at bootup. For this do: (preferably as root)
crontab -e 

And add the following: (replace “mount command” including the “”)

@reboot "mount command" >/dev/null 2>&1 

(for crontab references i looked here: adminschoice.com/crontab-quick-reference )

  1. can also be fixed this way, the command you would send would be:
mpc consume off

Feel free to make a custom script that will be started by cron


Edit, You might want to add a wait command. I’ve just read that there was a bug in an mpd version that started the consume mode a short time after boot.

thank you, i will try this soon.

I didn’t get this problem with Volumio 1.4 though.

sadly I found another issue.

  1. 24bit 96 KHz playback sometimes is heavily distorted.

Stop/Pouse do the trick eventually but it’s impossible to smoothly change tracks, even in the same album/location.

When I press pause and play its distorted again.

Try to stop it and then play again… Let me know

yes that’s what i mean… stop and play do the trick from time to time!
not stop/pouse - oops :stuck_out_tongue:

is I choose next track - it’s distorted.

When it plays one by one - it’s ok!

  1. After linking a drive (sATA) to /var/lib/mpd/music the drive don’t show in the web-ui.

just found out that all content is searchable via webgui.
after ‘Search’ i can add files to the playlist.

I can easily access linked folders via https://code.google.com/p/cantata/!