udev rules for mounting CDROM


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting udev rules for mounting CDROM
# 1  
Old 05-21-2012
udev rules for mounting CDROM

Hi All,

I need a simple udev rules in my server Centos 5.4. This rules needs to get trigger my script whenever the cdrom is attached to the server.

Could you please provide your suggestion on it.


Thanks,
Kalai
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Question about udev Rules File?

Hello All, I found this site here: AndDiSa Android Blog: Nexus 7 MTP automount on OpenSuse 11.4 That sites explains how to mount an Android device that can only connect to a computer using MTP or PTP instead of what it used to get treated as, which was a Mass Storage Device. In my Rules... (0 Replies)
Discussion started by: mrm5102
0 Replies

2. Ubuntu

FAQ adding rules in udev for my usb 8G to autorun rsync

Hi, I would like to ask if someone knows and show/point me or simple help me how udev rules work in lucyd, upon my quest and search all the tuts i used is based on old udev since something i read the udev change in lucyd version.. I want to accomplised when i plug my usb 8Gb device and automount... (0 Replies)
Discussion started by: jao_madn
0 Replies

3. UNIX for Advanced & Expert Users

Problems with udev & mounting fat32 usb storage

I have been trying to get USB storage devices to auto-mount themselves under "/media/usb/<dev>" but have been running into some problems with udev (on FC7, btw... running udevd v.106) Every time I put in a FAT (not 32) USB stick, udev identifies it as "USB storage", identifies the partition and... (3 Replies)
Discussion started by: jjinno
3 Replies

4. Solaris

I/O error when mounting cdrom in Solaris 10

hi unix friends, has anyone faced this problem before ? i inserted my cd into my X1450 machine, it says I/O error. mount -F hsfs -o ro /dev/dsk/clt0d0s0 /cdrom mount: I/O error mount: cannot mount /dev/dsk/c1t0d0s0 what should i do ? (4 Replies)
Discussion started by: Exposure
4 Replies

5. Solaris

cdrom mounting

Hi, I want to know HOw can I know on which slice cdrom is mounted?by default on which slice generally it is mounting? (1 Reply)
Discussion started by: manoj.solaris
1 Replies

6. Linux

udev core 5

installed fedora core 5 on a pc with USB and some usual things. in boot up it is stopped at "Starting udev:". Its harddisk light is busy. is it reconfiguring the kernel?. what do to solve this problem?. (0 Replies)
Discussion started by: GJ2
0 Replies

7. UNIX for Dummies Questions & Answers

Mounting cdrom on DG/UX

Hi, I'm looking to mount a cd on an old AViiON system we have. No one here really has any expertise with this platform so any help will be appreciated. I * think* the device is sd(apsc(pci(1),B,0,7),5,0), however I'm not sure at all. Thanks! (0 Replies)
Discussion started by: madesjardins
0 Replies

8. UNIX for Dummies Questions & Answers

mounting cdrom

Hey everyone, Quick question...I am trying to get packages off a cdrom for NETBSD. I tried mounting using this command mount /dev/rccd0a /etc/home/cdrom. But I just get an error. I did a dmesg |grep ^cd and it said that my cdrom was at cd0.? Am I doing something wrong.? Any help would... (2 Replies)
Discussion started by: vaff4k
2 Replies

9. UNIX for Dummies Questions & Answers

stop cdrom from auto-mounting

Somebody loaded RH 7.3 for me on my PC & now I'm running through & configuring all my settings. Question: Every time I insert a CD into the cdrom, it automatically mounts the cdrom if there's anything on the CD. How do I disable this? I don't want it to automount. Thanks in advance!! (2 Replies)
Discussion started by: jalburger
2 Replies

10. Solaris

mounting cdrom on Solaris 9

Here's some cmd output: bash-2.05# ls /dev/dsk/* /dev/dsk/c0t0d0s0 /dev/dsk/c0t0d0s4 /dev/dsk/c0t1d0s0 /dev/dsk/c0t1d0s4 /dev/dsk/c0t0d0s1 /dev/dsk/c0t0d0s5 /dev/dsk/c0t1d0s1 /dev/dsk/c0t1d0s5 /dev/dsk/c0t0d0s2 /dev/dsk/c0t0d0s6 /dev/dsk/c0t1d0s2 /dev/dsk/c0t1d0s6 /dev/dsk/c0t0d0s3 ... (4 Replies)
Discussion started by: AJA
4 Replies
Login or Register to Ask a Question
UDEVD(8)							       udevd								  UDEVD(8)

NAME
udevd - event managing daemon SYNOPSIS
udevd [--daemon] [--debug] [--children-max=] [--exec-delay=] [--resolve-names=early|late|never] [--version] [--help] DESCRIPTION
udevd listens to kernel uevents. For every event, udevd executes matching instructions specified in udev rules. See udev(7). On startup the content of the directory /lib/udev/devices is copied to /dev. If kernel modules specify static device nodes, these nodes are created even without a corresponding kernel device, to allow on-demand loading of kernel modules. Matching permissions specified in udev rules are applied to these static device nodes. The behavior of the running daemon can be changed with udevadm control. OPTIONS
--daemon Detach and run in the background. --debug Print debug messages to stderr. --children-max= Limit the number of parallel executed events. --exec-delay= Number of seconds to delay the execution of RUN instructions. This might be useful when debugging system crashes during coldplug cause by loading non-working kernel modules. --resolve-names= Specify when udevd should resolve names of users and groups. When set to early (the default) names will be resolved when the rules are parsed. When set to late names will be resolved for every event. When set to never names will never be resolved and all devices will be owned by root. --version Print version number. --help Print help text. ENVIRONMENT
UDEV_LOG= Set the logging priority. KERNEL COMMAND LINE
udev.log-priority= Set the logging priority. udev.children-max= Limit the number of parallel executed events. udev.exec-delay= Number of seconds to delay the execution of RUN instructions. This might be useful when debugging system crashes during coldplug cause by loading non-working kernel modules. AUTHOR
Written by Kay Sievers kay.sievers@vrfy.org. SEE ALSO
udev(7), udevadm(8) udev 07/30/2011 UDEVD(8)