Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-12-2007, 04:55 PM   #1
Registered: Jun 2005
Location: SE
Distribution: Gentoo, k 2.6.24
Posts: 48

Rep: Reputation: 15
mpd --create-db doesn't find new files in music directory

Problem: mpd --create-db (as well as mpc update) does not detect all of my files.

I have a suspicion that it might depend on permission settings. mpd runs on machine1 and my music directory is in /home/foo/media/music on machine2 - its parent dir being NFS-mounted on /media.

I can ls or mpg123 without any problem in the mounted directory. The output of ls -l will be the same whether I do it as my own user on machine1 or as user foo on machine2.

foo has uid 1000.

# /etc/exports on machine2
/home/foo/media ip-of-machine1(rw,anonuid=1000,anongid=1000)
# /etc/mpd.conf on machine1
music_directory  "/media/music"
playlist_directory  "var/lib/mpd/playlists"
log_file  "/var/log/mpd/mpd.log"
error_file  "var/log/mpd/mpd.error.log"
pid_file  "/var/run/mpd/"
state_file  "/var/lib/mpd/state"
user  "mpd"
bind_to_address  "localhost"
port  "6600"
filesystem_charset "UTF-8"
Old 06-14-2007, 11:18 AM   #2
Registered: Jun 2005
Location: SE
Distribution: Gentoo, k 2.6.24
Posts: 48

Original Poster
Rep: Reputation: 15
Okay, I have now applied a solution that I'm not quite happy with. If anyone has something to say about it, please do.

Did the following changes to /etc/mpd.conf:
user "me"
playlist_directory "/home/arla/.mpd/playlists"
db_file "/home/arla/.mpd/database"
log_file "/home/arla/.mpd/mpd.log"
error_file "/home/arla/.mpd/mpd.error.log"
# pid_file "/var/run/mpd/"

Then created .mpd and its files.


music, nfs, permission

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Listing files in a directory without ls and find? szahri Linux - Newbie 11 03-23-2007 03:12 AM
Need to create a script to move files from one directory to another mustang05 Solaris / OpenSolaris 4 06-16-2006 10:25 AM
How to find the date for all the files in a directory Uday123 AIX 6 02-23-2006 08:26 PM
mpd (Music Player) and GAIM sound together. MikeyCarter Linux - Software 3 05-30-2005 12:37 PM
Find string pattern in directory of text files magnum818 Linux - Newbie 2 10-15-2003 08:19 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration