LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 12-14-2008, 05:25 AM   #1
nicostcado
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
mount cd audio with hal, d-bus, pmount and cdfs


hello,
I a am an slack 12.1 with blackbox.
I a problem with cd-rom :
I would like automounting all media (usb, cd-rom, dvd, cd audio etc).
I allready had got dbus-1.1.20 dbus-glib-0.74 dbus-python dbus-qt3 hal-0.5.10 hal-info-20080317 audiofile-0.2.6.
I don't have gnome or kde system.
I put ivman-0.6.14 pmount-0.9.17 cdfs-2.6.23.
ivman is daemonize on the user id when x start.
That's ok for usb and most cd-rom, dvd.
But I would like cd audio to appear on the file system (with cdfs), because I don't want any auto exec application (like some media player).
I want let the user choose what I want to do with the media (rip, play etc).
I don't want the user to use su root.
I don't want to do hole security in mount.
I just want the user can see the files on /media.
I put the rule on /home/user/.ivman/IvmConfigActions.xml :
<!-- liste CDs with audio tracks -->
<ivm:Match name="hal.volume.disc.has_audio" value="true">
<ivm:Option name="exec" value="mkdir /media/cdmusique" />
<ivm:Option name="exec" value="pmount -t cdfs '$hal.block.device$' /media/cdrmusique" />
</ivm:Match>
but I have the echo error on ivman :Erreur : nom de systcme de fichiers invalide 'cdfs' (name of filesystem invalid : 'cdfs').
That's the same on a term.
But on root I can do mount -t cdfs /dev/hdd /media/cdmusique, it's ok.
I though there is a problem with hal :
lshal say :
volume.fstype = '' (string)
so I create a new rule on /usr/share/hal/fdi/policy/20thirdparty/
10-cdfs-policy.fdi :
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
<device>
<match name="volume.disc.type" value="cd_rom">
<match name="volume.disc.has_audio" value="true">
<match name="volume.disc.has_data" value="false">
<merge key="volume.policy.mount_filesystem" type="string">cdfs</merge>
<merge key="volume.fstype" type="string">cdfs</merge>
<merge key="volume.ignore" type="bool">false</merge>
</match>
</match>
</match>
</device>
</deviceinfo>
but there is no effect
I thing my hal rule is wrong but I thing too there is not the problem
Do you how to do pmount recognize the filesystem ?
thanks for any help,
Nico
 
Old 12-15-2008, 05:29 AM   #2
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
Permissions.

Is your user in the audio and plugdev groups?
 
Old 12-16-2008, 07:58 AM   #3
nicostcado
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Hello,
Thanks for your reply. Yes, he has got the good permession I think.
I think the user can't mount by the normal way because mount command gives right to the standard user to mount something only if on the fstab this thing is premounting, that's why I wanting to use pmount.
Maybye I can daemonize ivman on root, not on the user account, but when I did that ivman didn't use anymore the volume.label information of hal to give name of the media, it's /media/cdrom, no more /media/[name of the cdrom] and I want it uses volume.label.
I may change the rules of ivman to have the same mount point on root than on user account.
Also I can daemonize on root and on user, I saw something like that working but that's not a nice way to have
daemon for one little work...
I think the best way is to find how pmount can know to cdfs filesystem, but I disn't find more information than the last date, so I hope someone give me the solution.

Nico,
 
  


Reply


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
mount cd audio with pmount and cdfs nicostcado Linux - Newbie 0 12-11-2008 01:30 PM
D-Bus, Avahi and HAL fail to start after installing oss arrowed Linux - General 1 05-17-2008 11:09 AM
HAL/D-Bus and mounting manually Nylex Slackware 5 07-07-2007 06:15 PM
KDE, HAL, Pmount, media:/ -- floppy won't display contents DaneM Linux - Desktop 0 11-23-2006 02:01 PM
KDE 3.5.2, hal, pmount: can't access floppy from media:/ in konqueror DaneM Linux - Software 2 06-04-2006 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration