KDE and mounting CD's / DVD's without noexec

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi e,

I am normally use gnome and would do the following to make my CD / DVD 
mount with exec
gnome-mount --write-settings --device /dev/sdc0 -o exec

What is the equivalent in KDE ?  My initial research suggests that I 
actually have to write a custom udev rule to achieve this.

This has led me as far as running

udevinfo -q path -n /dev/scd0
udevtest /block/sr0   (the output is below)

My question is which of these commands is actually doing  the mount as 
all I want to change is the exec flag  rather that how the device is 
labeled.

main: looking at device '/block/sr0' from subsystem 'block'
run_program: '/bin/bash -c '/sbin/lsmod | /bin/grep ^dm_multipath''
run_program: '/bin/bash' (stdout) 'dm_multipath           55257  0 '
run_program: '/bin/bash' returned with status 0
udev_rules_get_name: add symlink 'cdrom'
udev_rules_get_name: add symlink 'cdrom-sr0'
run_program: 'check-cdrom.sh sr0 DVD'
run_program: '/lib/udev/check-cdrom.sh' returned with status 0
udev_rules_get_name: add symlink 'dvd'
udev_rules_get_name: add symlink 'dvd-sr0'
run_program: 'check-cdrom.sh sr0 CD-R'
run_program: '/lib/udev/check-cdrom.sh' returned with status 0
udev_rules_get_name: add symlink 'cdwriter'
udev_rules_get_name: add symlink 'cdwriter-sr0'
udev_rules_get_name: add symlink 'cdrw'
udev_rules_get_name: add symlink 'cdrw-sr0'
run_program: 'check-cdrom.sh sr0 DVD-R'
run_program: '/lib/udev/check-cdrom.sh' returned with status 0
udev_rules_get_name: add symlink 'dvdwriter'
udev_rules_get_name: add symlink 'dvdwriter-sr0'
udev_rules_get_name: add symlink 'dvdrw'
udev_rules_get_name: add symlink 'dvdrw-sr0'
udev_rules_get_name: rule applied, 'sr0' becomes 'scd0'
run_program: '/lib/udev/usb_id -x'
run_program: '/lib/udev/usb_id' returned with status 1
run_program: '/lib/udev/scsi_id -g -x -s /block/sr0 -d /dev/.tmp-11-0'
run_program: '/lib/udev/scsi_id' returned with status 1
run_program: '/lib/udev/scsi_id -g -x -a -s /block/sr0 -d /dev/.tmp-11-0'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_VENDOR=TSSTcorp'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_MODEL=DVD+-RW_TS-H653F'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_REVISION=D200'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_SERIAL='
run_program: '/lib/udev/scsi_id' (stdout) 'ID_TYPE=cd'
run_program: '/lib/udev/scsi_id' (stdout) 'ID_BUS=scsi'
run_program: '/lib/udev/scsi_id' returned with status 0
run_program: '/lib/udev/path_id /block/sr0'
run_program: '/lib/udev/path_id' (stdout) 
'ID_PATH=pci-0000:00:1f.2-scsi-1:0:0:0'
run_program: '/lib/udev/path_id' returned with status 0
udev_rules_get_name: add symlink 
'disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0'
udev_device_event: device '/block/sr0' already in database, validate 
currently present symlinks
udev_node_add: creating device node '/dev/scd0', major = '11', minor = 
'0', mode = '0640', uid = '0', gid = '6'
udev_node_add: creating symlink '/dev/cdrom' to 'scd0'
udev_node_add: creating symlink '/dev/cdrom-sr0' to 'scd0'
udev_node_add: creating symlink '/dev/dvd' to 'scd0'
udev_node_add: creating symlink '/dev/dvd-sr0' to 'scd0'
udev_node_add: creating symlink '/dev/cdwriter' to 'scd0'
udev_node_add: creating symlink '/dev/cdwriter-sr0' to 'scd0'
udev_node_add: creating symlink '/dev/cdrw' to 'scd0'
udev_node_add: creating symlink '/dev/cdrw-sr0' to 'scd0'
udev_node_add: creating symlink '/dev/dvdwriter' to 'scd0'
udev_node_add: creating symlink '/dev/dvdwriter-sr0' to 'scd0'
udev_node_add: creating symlink '/dev/dvdrw' to 'scd0'
udev_node_add: creating symlink '/dev/dvdrw-sr0' to 'scd0'
udev_node_add: creating symlink 
'/dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0' to '../../scd0'
main: run: '/sbin/multipath -v0 11:0'
main: run: 'socket:/org/kernel/udev/monitor'
main: run: '/lib/udev/udev_run_devd'
main: run: 'socket:/org/freedesktop/hal/udev_event'
main: run: '/sbin/pam_console_apply /dev/scd0 /dev/cdrom /dev/cdrom-sr0 
/dev/dvd /dev/dvd-sr0 /dev/cdwriter /dev/cdwriter-sr0 /dev/cdrw 
/dev/cdrw-sr0 /dev/dvdwriter /dev/dvdwriter-sr0 /dev/dvdrw 
/dev/dvdrw-sr0 /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0'

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux