PINE64
SD card mounted to access music files unable to play - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+--- Thread: SD card mounted to access music files unable to play (/showthread.php?tid=13218)



SD card mounted to access music files unable to play - dcinoz - 02-23-2021

Hi,



I've searched the forum as best I could to see if there was a solution.



I have Mobian installed on SD card and Manjaro Plasma Mobile on eMMC.



I have this entry in fstab to automount the SD card:



/dev/mmcblk0p2 /media/mmcblk0p2  f2fs auto,user,rw 0 0



In Manjaro:

Symlink in ~/Music to /media/mmcblk0p2/home/mobian/Music/ogg



Code:
ls -al ~/Music:
drwxr-xr-x  3 kde users 4096 Feb 24 10:00 .
drwx------ 20 kde users 4096 Feb 24 10:21 ..
drwxr-xr-x  3 kde users 4096 Feb 24 10:00 a-ha
lrwxrwxrwx  1 kde users  38 Feb 21 17:35 ogg -> /media/mmcblk0p2/home/mobian/Music/ogg


Code:
ls -al ~/Music/ogg/:
drwxr-xr-x 164 kde users  8192 Jul 31  2020  .
drwxr-xr-x  3 kde mobian 3488 Feb 22 07:43  ..
drwxr-xr-x  3 kde users  3488 Feb 23  2020  a-ha


Code:
ls -al ~/Music/ogg/a-ha:
drwxr-xr-x  3 kde users 3488 Feb 24 10:58  .
drwxr-xr-x 164 kde users 8192 Jul 31  2020  ..
drwxr-xr-x  2 kde users 3488 Feb 24 10:00 'Headlines And Deadlines The Hits Of a-ha'


Code:
ls -al ~/Music/ogg/a-ha/Headlines\ And\ Deadlines\ The\ Hits\ Of\ a-ha/:
drwxr-xr-x 2 kde users    3488 Feb 24 10:00  .
drwxr-xr-x 3 kde users    3488 Feb 24 10:58  ..
-rw-r--r-- 1 kde users 5360878 Feb 24 10:00  a-ha_01-Take_On_Me.ogg


Originally file and folder ownership was mobian:mobian, changing to kde:users hasn't helped, vvave fails to even display the ogg folder.



I created a mobian group with gid 1000:

Code:
cat /etc/group:
mobian:x:1000:kde,mobian
users:x:985:kde,mobian


and a user mobian just in case when I had mobian:mobian ownership:

Code:
cat /etc/passwd:
mobian:x:1000:1000::/home/mobian:/bin/bash
kde:x:1000:985::/home/kde:/bin/bash
Both kde and mobian users have uid 1000 but kde has gid 985, mobian 1000.


Any idea what I am doing wrong? What user / group is vvave using to try and access my ogg symlink?



The pinephone 16GB eMMC is not large enough for my music files, but the a-ha folder I copied to ~/Music/ is accessible by vvave.



I tried adding uid=1000 in fstab but that doesn't work.



Thanks for your help.


RE: SD card mounted to access music files unable to play - dukla2000 - 02-24-2021

(02-23-2021, 06:54 PM)dcinoz Wrote: ...
I have Mobian installed on SD card and Manjaro Plasma Mobile on eMMC.
...
Presumably you have overwritten the bootloader on the SDcard? Or are using p-boot? Otherwise I can't understand how Manjaro is booting. If you have overwritten the bootloader then why not reformat the SDcard and mount it as ~/Music/? 


I have minimal practice time on Plasma so really do not know. Or why there is a : at the end of the line for each of your examples Huh Or why Plasma has the user in a kde group - what are the permissions in ~/Music/a-ha/ ?


RE: SD card mounted to access music files unable to play - dcinoz - 02-24-2021

Both eMMC and SD card are bootable, standard installations.

I just use a script to change /extlinux/extlinux.conf to /extlinux/extlinux.conf.bak to disable SD card boot.
Then from eMMC I can toggle back to extlinux.conf so it boots back to SD card.
https://forum.pine64.org/showthread.php?tid=10634

p-boot seems neat but I've been too lazy to look into it!

I just put a : before as in this is how you do it:

Permissions are shown above.

644 / rw r r for the music files.
755 / drwxr-xr-x for directories.

I think there's a permission issue starting at /media/mmcblk0p2/ preventing 'traversal' through to home/kde/Music etc.
I had a similar issue with Wordpress / Apache on my local test web server. I just don't want to modify permissions at / for the SD card and mess everything up.

I'm hoping someone will just know.

I could create a separate ext4 partition on the SD card and it would probably work?!


RE: SD card mounted to access music files unable to play - dcinoz - 02-24-2021

I just had the Manjaro Plasma Mobile testing 20210224 update (make sure you set brightness to max, I had mine low and couldn't see thing when it rebooted, finally figured out increasing brightness via ssh did the trick).

With the latest vvave, I could add the ogg folder explicitly as a music source and it sees all the content and plays it fine,, too.
I haven't changed anything since this post, so it seems all is now good!