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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-14-2008, 05:25 AM
|
#1
|
LQ Newbie
Registered: Oct 2008
Posts: 6
Rep:
|
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
|
|
|
12-15-2008, 05:29 AM
|
#2
|
Member
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906
Rep:
|
Permissions.
Is your user in the audio and plugdev groups?
|
|
|
12-16-2008, 07:58 AM
|
#3
|
LQ Newbie
Registered: Oct 2008
Posts: 6
Original Poster
Rep:
|
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,
|
|
|
All times are GMT -5. The time now is 06:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|