You are not logged in.

Udev currently only works for usb devices but not for internal dvd drives.
Hence my question.
Uncomment the dvd and cd lines fstab.
Offline
^skottish.
Tried that and deactivated skvm daemon for testing but it isn't working with plain udev.
Here my fstab
[orschiro@thinkpad dvd]$ cat /etc/fstab
# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0
/dev/mapper/main-home /home ext4 defaults 0 1
/dev/mapper/main-root / ext4 defaults 0 1
/dev/mapper/main-swap swap swap defaults 0 0
/dev/sda1 /boot ext4 defaults 0 1and here the udev-rule from the wiki which I'm using successfully for usb devices:
[orschiro@thinkpad rules.d]$ cat 11-media-by-label-auto-mount.rules 
KERNEL!="sd[a-z]*", GOTO="media_by_label_auto_mount_end"
ACTION=="add", PROGRAM!="/sbin/blkid %N", GOTO="media_by_label_auto_mount_end"
# Do not mount devices on boot because otherwise fsck may fail
ACTION=="add", PROGRAM!="/bin/grep ' / / rw[, ]' /proc/self/mountinfo", GOTO="media_by_label_auto_mount_end"
# Open luks partition if necessary
PROGRAM=="/sbin/blkid -o value -s TYPE %N", RESULT=="crypto_LUKS", ENV{crypto}="mapper/", ENV{device}="/dev/mapper/%k"
ENV{crypto}!="?*", ENV{device}="%N"
ACTION=="add", ENV{crypto}=="?*", PROGRAM=="/usr/bin/xterm -display :0.0 -e 'echo Password for /dev/%k; /usr/sbin/cryptsetup luksOpen %N %k'"
ACTION=="add", ENV{crypto}=="?*", TEST!="/dev/mapper/%k", GOTO="media_by_label_auto_mount_end"
# Global mount options
ACTION=="add", ENV{mount_options}="noatime,users"
# Filesystem specific options
ACTION=="add", PROGRAM=="/sbin/blkid -o value -s TYPE %E{device}", RESULT=="vfat|ntfs", ENV{mount_options}="%E{mount_options},utf8,gid=100,umask=002"
# Get label
ACTION=="add", PROGRAM=="/sbin/blkid -o value -s LABEL %E{device}", ENV{dir_name}="%c"
# Use basename to correctly handle labels such as ../mnt/foo
ACTION=="add", PROGRAM=="/usr/bin/basename '%E{dir_name}'", ENV{dir_name}="%c"
ACTION=="add", ENV{dir_name}!="?*", ENV{dir_name}="usbhd-%k"
ACTION=="add", ENV{dir_name}=="?*", RUN+="/bin/mkdir -p '/media/%E{dir_name}'", RUN+="/bin/mount -o %E{mount_options} /dev/%E{crypto}%k '/media/%E{dir_name}'"
ACTION=="remove", ENV{dir_name}=="?*", RUN+="/bin/umount -l '/media/%E{dir_name}'"
ACTION=="remove", ENV{crypto}=="?*", RUN+="/usr/sbin/cryptsetup luksClose %k"
ACTION=="remove", ENV{dir_name}=="?*", RUN+="/bin/rmdir '/media/%E{dir_name}'"
LABEL="media_by_label_auto_mount_end"Offline

Uncomment the dvd and cd lines.
Offline
Ah now I understand. For some people uncomment means comment them out. This is what I did. So I had them always "uncommented" but it still didn't work in the past.
May I see your udev rule or are you using the same one?
Last edited by orschiro (2010-05-23 14:54:11)
Offline
Works perfectly! Great job!
Offline
@orschiro
quite easy, actually 
uncomment - unkommentiert
comment out - auskommentieren
Last edited by hokasch (2010-05-23 15:00:03)
Offline
^hokasch,
allright I hope I'll remember this crib. 
/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/fd0               /media/fl   auto    user,noauto             0      0But as I wrote above, nor it's working with uncommented entries.
Offline

^hokasch,
allright I hope I'll remember this crib.
/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0 /dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0 /dev/fd0 /media/fl auto user,noauto 0 0But as I wrote above, nor it's working with uncommented entries.
Well, it doesn't work because I was wrong. This thread is about skvm, so we should move this discussion elsewhere...
Offline

Hello dimigon,
is there also a hal independent version of skvm possible since hal is more or less deprecated?
Regards
Hi, at some point I might rewrite skvm to use DeviceKit. I am not sure when though.
Offline
Any plans for a skvm version that drops hal? (and uses devicekit or something else)
Would be great to ban hal from the system. 
Offline

Any plans for a skvm version that drops hal? (and uses devicekit or something else)
Would be great to ban hal from the system.
Look at 2 posts up from yours
Last edited by jac (2010-07-06 13:47:50)
Offline