(2013-02-25, 05:47)teeedubb Wrote: Ok it seem like udisks doesnt like to be executed from a udev rule, from the looks of it the udisks command wasnt being run at all.
Changing my rule to
Code:
ACTION!="add|change", GOTO="cdrom_end"
KERNEL=="sr*", RUN+="/bin/mount /dev/sr0 /media/bdrom/"
LABEL="cdrom_end"
Is giving me reliable mounting (5 times in a row, but this happened to me with more tries when using the udisks rule) and I know the rule is being run because the disk is being mounted elsewhere, but it is not without some strangeness - it being mounted to /media/disk instead of /media/bdrom. I dont know whats going on there....
That works for you? ist kinda missing everything, try this of course
type this first
Code:
udevadm info -a -n /dev/sr0
]
The output will help you fill in the blacks for your sytem only saince as Is it wont work on yours the ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-1:0:0:0", ATTRS{type}=="5", ATTR{removable}=="1", ATTR{events}=="media_change" is all for my drive.
You will need to make your user be part of adm group as well.
Code:
sudo adduser xbmc adm cdrom plugdev
Code:
ACTION!="add|change|remove", GOTO="cdrom_end"
#Define Device and attributes.
SUBSYSTEM=="block", KERNEL=="sr*", ENV{ID_PATH}=="pci-0000:00:0b.0-scsi-1:0:0:0", ATTRS{type}=="5", ATTR{removable}=="1", ATTR{events}=="media_change"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="sr0"
Mount on device attached from cold boot?
ACTION=="add",KERNEL=="sr*", RUN+="/bin/mkdir -p /media/%E{ID_FS_LABEL}"
ACTION=="add",KERNEL=="sr*", RUN+="/bin/mount /dev/sr0 /media/%E{ID_FS_LABEL}"
ACTION=="change",KERNEL=="sr*", RUN+="/bin/mkdir -p /media/%E{ID_FS_LABEL}"
ACTION=="change",KERNEL=="sr*", RUN+="/bin/mount /dev/sr0 /media%E{ID_FS_LABEL}"
ACTION=="change",KERNEL=="sr*", RUN+="/bin/umount /media/%E{ID_FS_LABEL}"
ACTION=="change",KERNEL=="sr*", RUN+="/bin/rmdir /media/%E{ID_FS_LABEL}"
ACTION=="remove",KERNEL=="sr*", RUN+="/bin/umount /media/%E{ID_FS_LABEL}"
ACTION=="remove",KERNEL=="sr*", RUN+="/bin/rmdir /media/%E{ID_FS_LABEL}"
LABEL="cdrom_end"
Now its not prefect and Im not and expert but it actually give me something I agree imperfect and headache. yours yields piddly nothing unfortunately..
This needs a lot of work to get working 100% I decided to share this with you guys so we can crack this nut faster.
Clearly XBMC Devs interest in fixing xbmc is not high on priorities, my bug reports have had no responses, which from experience means no one is looking.
could you guys make some action on the bug reports and open one for Bluray
Mine are here.
Bug 1 No cd/dvd icons at any time
http://trac.xbmc.org/ticket/13509
Bug 2 DVD - Music CD -CDR incorrect listing of contents via VIDEO>Files
http://trac.xbmc.org/ticket/14128
Bug 3 Filemanager never lists DVD -- DATA CD Optical media only Lists and mounts MUSIC CD
http://trac.xbmc.org/ticket/14129
Bug 4 Bluray disk never shows up on Filemanger or Video>Files and wrong content shares with bug 1,2, and 3. (someone can open this I dont have a Bluray player so...
uNi