LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 06-12-2007, 04:55 PM   #1
Arla
Member
 
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.

Code:
# /etc/exports on machine2
/home/foo/media ip-of-machine1(rw,anonuid=1000,anongid=1000)
Code:
# /etc/mpd.conf on machine1
music_directory  "/media/music"
playlist_directory  "var/lib/mpd/playlists"
db_file"/var/lib/mpd/database"
log_file  "/var/log/mpd/mpd.log"
error_file  "var/log/mpd/mpd.error.log"
pid_file  "/var/run/mpd/mpd.pid"
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
Arla
Member
 
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/mpd.pid"

Then created .mpd and its files.
 
  


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:16 PM.

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