You are not logged in.

#1 2010-09-05 00:43:27

duke11235
Member
Registered: 2009-10-09
Posts: 221

[SOLVED]MPD Update

I've installed mpd and everything works great as far as I can tell. It runs without error, and such but I am having problems with the update feature. I have mu music library stored on my mac partition. I created a symbolic link to my folder called Music Library, which leads to a number of subdirectories containing artist and then album names, then the files themselves. My music is stored in either ALAC or AAC.

I can see the files if I access them through the symlink as root. Do I need to allow user mpd access, as I can't access the files through my normal user.


SOLUTION: Edited /etc/fstab
/dev/sda2 /mnt/mac auto auto,ro,user 0 0
As described on fstab of Arch WIki

Last edited by duke11235 (2010-09-06 02:55:49)

Offline

#2 2010-09-05 09:20:11

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED]MPD Update

The user that your MPD is running as, also needs read rights to the music folder.


ᶘ ᵒᴥᵒᶅ

Offline

#3 2010-09-05 16:28:30

SleepyFloyd
Member
Registered: 2008-06-11
Posts: 91

Re: [SOLVED]MPD Update

Is mpd compiled with AAC support? I don'tthink  the arch packet supports AAC playback, but I'm not sure.

Last edited by SleepyFloyd (2010-09-05 16:30:05)

Offline

#4 2010-09-05 17:30:11

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]MPD Update

So I changed mpd user id to match the id of my mac account, the fix I used use to allow access to my secondary mac partition in Fedora. However, the database option still shows absolutely nothing. Is it compiled it with AAC support, failure of that would cause the same end result

Last edited by duke11235 (2010-09-05 18:41:57)

Offline

#5 2010-09-05 18:33:24

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]MPD Update

doing mpd -V shows support for AAC and m4a files. How can I tell if the mpd user account has access to the files? I still think that might be the issue. I can play the files in the root account, so something must be off.

Offline

#6 2010-09-05 19:45:28

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED]MPD Update

duke11235 wrote:

doing mpd -V shows support for AAC and m4a files. How can I tell if the mpd user account has access to the files? I still think that might be the issue. I can play the files in the root account, so something must be off.

Some people advise against it, but you can also run MPD as root (set in your config) to overcome this problem.


ᶘ ᵒᴥᵒᶅ

Offline

#7 2010-09-05 20:04:19

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: [SOLVED]MPD Update

Do you start mpd as daemon in rc.conf ? I had trouble with getting it to work that way. I start it either with .xinitrc or as a startup application depending on which DE/WM I'm using. You don't have the trouble with root permissions then. Details are in the wiki.

Last edited by Varg (2010-09-05 20:05:08)

Offline

#8 2010-09-05 23:47:29

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: [SOLVED]MPD Update

I think some of the comments may be off. MPD has access to all its files, and I run it in rc.conf, there are no read/write errors on accessing its files themselves. What I can't seem to do for the life of me is to mount /dev/sda2 so everyone has access to all files within. Root does, but everyone else only gets to my home direcotry, going farther triggers a permission denied error in accessing my library. Someone said I could start it as root, but I would prefer to just mount /dev/sda2 with all access. It is only read only anyway. Good last ditch option though.

So can someone tell me how to automatically mount it with all user access to everything. I tried below
Line from /etc/fstab
/dev/sda2 /mnt/mac auto users 0 0

/dev/sda2 contains my mac operating system, if that has something to do with it. Again help would be appreciated, as I really like mpd's functionality and simplicity

Could it be somehow related to my Mac's filesystem permissions or am I mising the point on the fstab?

Last edited by duke11235 (2010-09-05 23:56:40)

Offline

Board footer

Powered by FluxBB