<a href="http://www.mepisitalia.org/modules/newbb/viewtopic.php?topic_id=5&forum=9" target="_blank">http://www.mepisitalia.org/modules/newbb/viewtopic.php?topic_id=5&forum=9</a><br>
ecco come modificare fstab (mi fa piacere che ti sia iscritto)<br>
Ciao<br><br><div><span class="gmail_quote">2006/2/3, christian <<a href="mailto:picard12@vodafone.it">picard12@vodafone.it</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Valerio Pachera ha scritto:<br><br>> Problemino risolto:<br>> mercoledì scorso non riuscivo a scrivere come utente normale su una<br>> partizione dati (hda7).<br>> Il punto di mount (/mnt/hda7) aveva i permessi 755 (rwxr-xr-x).
<br>> Io volevo impostare 777.<br>> Ho smontato la partizione, cambiato i permessi ma poi venivano<br>> ripristinati al mount.<br>> Bastava SEMPLICEMENTE cambiare i permessi QUANDO LA PARTIZIONE ERA MONTATA.<br>
> Poi ai successivi mount/reboot i permessi rimangono gli stessi.<br>><br>> Ora porgo un'altro nel questio:<br>> il mio fstab imposta l'opzione noauto ad hda7 (anche altre).<br>> Io volgio che tale partizione sia montata al boot e quindi passare
<br>> l'opzione auto.<br>> Ho editato fstab ma questo viene riscritto ad ogni reboot (e forse<br>> anche quando vengono aggiungti dispositivi). Scusate il forse ma, come<br>> al solito, non ho linux sotto mano. (La prova dei permessi l'ho fatta
<br>> ieri all'1 di notte).<br>> Quindi, se fstab viene riscritto al rebboot, come faccio "FISSARE"<br>> un'impstazione?<br>> E' una cosa che cambia da distro a distro o lo fanno tutte?<br>><br>> ------------------------------------------------------------------------
<br>><br>><br>><br>Credo dipenda principalmente da udev.<br><br>Il file di configurazione si trova in /etc/udev/rules..<br>Ora sto leggendo il mio per capire dove sta la soluzione.<br><br>In questa cartella vi sono dei file nominati tipo:
10-xxx.rules,<br>20-xxx.rules, 30-xxx.rules etc.<br><br>Udev legge le rules ogni volta che viene collegato qualcosa e appena<br>trova la regola adatta la mette in pratica.<br>Ovvero legge per prima 10-xxx.rules e poi il resto. Da qui la possibiltà
<br>di crearsi un file personale di configurazione e nominarlo con un<br>numero inferiore a quello originale.<br><br>Io ti allego il mio cosi lo puoi provare.Se risolvi la cosa abbiamo la<br>prova che dipende da udev.Ma a me pare che sia proprio così..
<br><br><br># There are a number of modifiers that are allowed to be used in the NAME or PROGRAM fields.<br># They provide the following subsitutions:<br># %n - the "kernel number" of the device.<br># for example, 'sda3' has a "kernel number" of '3'
<br># %e the smallest number for that name which does not matches an existing node<br># %k - the kernel name for the device.<br># %M - the kernel major number for the device<br># %m - the kernel minor number for the device
<br># %b - the bus id for the device<br># %c - the return value for the CALLOUT program (note, this doesn't work within<br># the PROGRAM field for the obvious reason.)<br># %s{filename} the content of a sysfs attribute
<br># %D - use the devfs style disk name for this device.<br># For partitions, this will result in 'part%n'<br># If this is not a partition, it will result in 'disc'<br># %% the '%' char itself<br>#<br><br># we provide both old, devfs & LSB device nodes:
<br><br>#cht E1000- moto4lin<br>KERNEL=="ttyACM[0-9]*", NAME="ttyACM%n", GROUP="usb", MODE="0660"<br><br><br>#-------------------------------------------------<br># CPU devices:<br>
KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid",
SYMLINK="cpu/%k"<br>KERNEL=="msr[0-9]*", NAME="cpu/%n/msr",
SYMLINK="cpu/%k", SYMLINK="%k"<br>KERNEL=="microcode", NAME="cpu/microcode"<br><br>#-------------------------------------------------<br># infiniband devices:
<br>KERNEL=="umad*", NAME="infiniband/%k"<br>KERNEL=="issm*", NAME="infiniband/%k"<br><br>#-------------------------------------------------<br># tpm devices:<br>KERNEL=="tpm*", NAME="%k", OWNER="tss", GROUP="tss", MODE="0600"
<br><br><br>#-------------------------------------------------<br># Block Devices:<br><br># all block devices<br>SUBSYSTEM="block",
GROUP="disk"<br>SUBSYSTEM="block", SYSFS{removable}="1", GROUP="floppy"<br><br># USB ZIP/JAZ<br>KERNEL=="sd*", SYSFS{vendor}="IOMEGA", SYSFS{model}="ZIP*", SYMLINK+="zip%n"
<br>KERNEL=="sd*", SYSFS{vendor}="IOMEGA", SYSFS{model}="jaz*", SYMLINK+="jaz%n"<br><br># IEEE1394 (firewire) devices (must be before raw devices below):<br>KERNEL=="raw1394", NAME="%k", GROUP="video"
<br>KERNEL=="dv1394*", NAME="dv1394/%n", GROUP="video"<br>KERNEL=="video1394*", NAME="video1394/%n", GROUP="video"<br><br># disk devices<br>KERNEL=="sd*", NAME="%k",
GROUP="disk", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", SYMLINK+="%c{2} %c{1}"<br>KERNEL=="dasd*", NAME="%k",
GROUP="disk"<br>KERNEL=="ataraid*", NAME="%k", GROUP="disk"<br>BUS="scsi", KERNEL=="sg[0-9]*", SYSFS{type}=="6", SYMLINK="scanner%e", MODE="0660"
<br>BUS="scsi", KERNEL=="sg*", NAME="%k", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", SYMLINK+="%c{1} %c{2}", MODE="0660", GROUP="cdwriter"<br>
<br># device mapper creates its own device nodes, so ignore these:<br>KERNEL=="dm-[0-9]*", OPTIONS="ignore_device"<br>KERNEL=="device-mapper", NAME="mapper/control"
<br><br># raw:<br>KERNEL=="raw[0-9]*", NAME="raw/%k", SYMLINK+="%k", GROUP="disk"<br>KERNEL=="rawctl",
SYMLINK+="raw/%k", GROUP="disk"<br>KERNEL=="tun[0-9]*", NAME="raw/%k"<br><br># RAID controllers:<br>KERNEL=="cciss!*", PROGRAM="/etc/udev/scripts/raid-
devfs.sh %k", NAME="%c{1}", SYMLINK+="%k"<br>KERNEL=="ida!*", PROGRAM="/etc/udev/scripts/raid-devfs.sh %k", NAME="%c{1}", SYMLINK+="%k"<br>KERNEL=="rd!*", PROGRAM="/etc/udev/scripts/raid-
devfs.sh %k", NAME="%c{1}", SYMLINK+="%k"<br><br><br># misc:<br>BUS="ide", KERNEL=="hd*", PROGRAM="/etc/udev/scripts/ide-devfs.sh %k %b %n", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5}", GROUP="%c{3}"
<br><br><br>KERNEL=="md[0-9]*",
SYMLINK+="md/%n",
GROUP="disk"<br>KERNEL=="md_d[0-9]*",
SYMLINK+="md/d%n", GROUP="disk"<br>KERNEL=="loop[0-9]*",
SYMLINK+="loop/%n",
GROUP="disk"<br>KERNEL=="cloop[0-9]*", SYMLINK+="cloop/%n", GROUP="disk"<br>KERNEL=="fd[0-9]*", SYMLINK+="floppy/%n", GROUP="floppy", RUN+="/etc/udev/scripts/floppy-
extra-devs.sh %k %b %n"<br>KERNEL=="pktcdvd", NAME="pktcdvd/control",
GROUP="cdrom", MODE="0660"<br>KERNEL=="pktcdvd[0-9]*", SYMLINK+="pktcdvd/%n", GROUP="disk"<br><br>KERNEL=="ram[0-9]*", SYMLINK+="rd/%n",
GROUP="disk"<br><br><br><br># cdrom symlinks and other good cdrom naming:<br>BUS="ide", KERNEL=="hd[a-z]", PROGRAM="/sbin/cdsymlinks
%k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"<br>BUS="scsi", KERNEL=="sr[0-9]*", PROGRAM="/sbin/cdsymlinks %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}", GROUP="cdrom"
<br>BUS="scsi", KERNEL=="scd[a-z]", PROGRAM="/sbin/cdsymlinks %k", SYMLINK+="%c{1} %c{2} %c{3} %c{4} %c{5} %c{6}"<br><br><br># workaround for devices which do not report media changes:
<br>BUS="ide", KERNEL=="hd[a-z][0-9]*", SYSFS{removable}="1", \<br> PROGRAM=="/etc/udev/scripts/ide-model.sh %k", RESULT="IOMEGA ZIP *", \<br> OPTIONS=all_partitions, NAME="%k", GROUP="floppy"
<br><br># IDE devices<br>BUS="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \<br> PROGRAM=="/bin/cat /proc/ide/%k/media", RESULT="cdrom*", \<br> GROUP="cdrom"
<br>BUS="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \<br> PROGRAM=="/bin/cat /proc/ide/%k/media", RESULT="floppy*", \<br> GROUP="floppy"<br><br># devfs compat names for SCSI devices:
<br># permissions for SCSI CD devices<br>BUS="scsi", KERNEL=="s[grt][0-9]*", SYSFS{type}="5", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%c{1}", SYMLINK+="%k %c{2}", MODE="0660", GROUP="cdrom"
<br><br># SCSI block devices<br>BUS="scsi", KERNEL=="sd[a-i][a-z][0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"<br>BUS="scsi", KERNEL=="s[grt][0-9]*", PROGRAM="/etc/udev/scripts/scsi-
devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"<br>BUS="scsi", KERNEL=="scd[0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"
<br>BUS="scsi", KERNEL=="st[0-9]*", PROGRAM="/etc/udev/scripts/scsi-devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"<br>BUS="scsi", KERNEL=="nst[0-9]*", PROGRAM="/etc/udev/scripts/scsi-
devfs.sh %k %b %n", NAME="%k", SYMLINK+="%c{2} %c{1}"<br><br><br><br><br>#-------------------------------------------------<br># Multimedia<br><br># DRI:<br>KERNEL=="card[0-9]*",
NAME="dri/card%n", GROUP="video"<br>KERNEL=="nvidia*", NAME="%k", GROUP="video"<br>KERNEL=="3dfx*", NAME="%k", GROUP="video"
<br><br># DVB:<br># kernel up to 2.6.8:<br>KERNEL=="dvb*",
PROGRAM="/etc/udev/scripts/dvb.sh %k", NAME="%c", GROUP="video"<br># kernel-2.6.9+ :<br>KERNEL=="dvb[0-9].dvr*", NAME="dvb/adapter%n/dvr%n",
GROUP="video"<br>KERNEL=="dvb[0-9].demux*", NAME="dvb/adapter%n/demux%n", GROUP="video"<br>KERNEL=="dvb[0-9].frontend*", NAME="dvb/adapter%n/frontend%n", GROUP="video"
<br>KERNEL=="dvb[0-9].audio*", NAME="dvb/adapter%n/audio%n", GROUP="video"<br>KERNEL=="dvb[0-9].ca*",
NAME="dvb/adapter%n/ca%n", GROUP="video"<br>KERNEL=="dvb[0-9].osd*", NAME="dvb/adapter%n/osd%n",
GROUP="video"<br>KERNEL=="dvb[0-9].net*", NAME="dvb/adapter%n/net%n",
GROUP="video"<br>KERNEL=="dvb[0-9].video*", NAME="dvb/adapter%n/video%n", GROUP="video"<br><br># Zaptel device:<br>KERNEL=="zapctl",
NAME="zap/ctl"<br>KERNEL=="zaptimer",
NAME="zap/timer"<br>KERNEL=="zapchannel",
NAME="zap/channel"<br>KERNEL=="zappseudo", NAME="zap/pseudo"<br>KERNEL=="zap[0-9]*", NAME="zap/%n"<br><br># v4l devices<br>SUBSYSTEM="video4linux", GROUP="video"
<br>KERNEL=="video0",
SYMLINK+="video",
GROUP="video"<br>KERNEL=="video[0-9]*", NAME="v4l/video%n",
SYMLINK+="video%n", GROUP="video"<br>KERNEL=="radio0",
SYMLINK+="radio",
GROUP="video"<br>KERNEL=="radio[0-9]",
SYMLINK+="v4l/radio%n",
GROUP="video"<br>KERNEL=="vbi0",
SYMLINK+="vbi",
GROUP="video"<br>#KERNEL=="vbi[0-9]", SYMLINK+="v4l/vbi%n",
GROUP="video"<br>KERNEL=="vbi[0-9]*", NAME="v4l/vbi%n",
SYMLINK+="vbi%n", GROUP="video"<br>KERNEL=="vtx0",
SYMLINK+="vtx",
GROUP="video"<br>KERNEL=="vtx[0-9]",
SYMLINK+="v4l/vtx%n",
GROUP="video"<br><br>KERNEL=="em8300",
NAME="video/%k"<br>KERNEL=="em8300_ma", NAME="video/%k"<br>KERNEL=="em8300_mv", NAME="video/%k"<br>KERNEL=="em8300_sp", NAME="video/%k"
<br><br>#-------------------------------------------------<br># Input<br><br># legacy devices:<br>KERNEL=="psaux", SYMLINK+="misc/%k"<br>KERNEL=="psaux", SYMLINK+="psmouse"
<br>KERNEL=="mice",
NAME="input/%k", SYMLINK+="usbmouse",
MODE="0644"<br>KERNEL=="mouse[0-9]*", NAME="input/%k", MODE="0644"<br># security => input: 644 => 600<br># else anybody logged on could read my password directly from the event device
<br># associated with the keyboard...<br>KERNEL=="event[0-9]*", NAME="input/%k", MODE="0600"<br>KERNEL=="js0", NAME="input/%k", SYMLINK+="js
js0", MODE="0664"<br>KERNEL=="js[1-9]", NAME="input/%k", SYMLINK+="js%n", MODE="0664"<br>KERNEL=="ts*", NAME="input/%k",
MODE="0600"<br><br><br># usb devices:<br>KERNEL=="hiddev",
NAME="usb/%k"<br>KERNEL=="auer*", NAME="usb/%k"<br>KERNEL=="dabusb*", NAME="usb/%k"<br>KERNEL=="legousbtower*", NAME="usb/%k",
GROUP="usb"<br>BUS="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k"<br><br><br><br>#-------------------------------------------------<br># Char devices<br><br># tty devices<br>KERNEL=="console", NAME="%k",
GROUP="tty",
MODE="0600", OPTIONS+="last_rule"<br>KERNEL=="tty", NAME="%k", SYMLINK+="vc/0
tty0", GROUP="tty", MODE="0666", OPTIONS="last_rule"<br>KERNEL=="tty[0-9]*", SYMLINK+="vc/%n",
GROUP="tty", OPTIONS="last_rule"<br>KERNEL=="dcbri*", NAME="%k", GROUP="tty"<br>KERNEL=="ircomm*", NAME="%k", GROUP="tty"<br><br>
# vc devices<br>KERNEL=="vcs", SYMLINK+="vcc/0",
GROUP="tty", OPTIONS="last_rule"<br>KERNEL=="vcs[1-9]*", SYMLINK+="vcc/%n", GROUP="tty",
OPTIONS="last_rule"<br>KERNEL=="vcsa",
NAME="%k", SYMLINK+="vcc/a0
vcsa0", GROUP="tty",
OPTIONS="last_rule"<br>KERNEL=="vcsa[0-9]*",
SYMLINK+="vcc/a%n",
GROUP="tty", OPTIONS="last_rule"<br><br># ignore the events generated by virtual consoles:<br>SUBSYSTEM=="vc", OPTIONS+="last_rule"<br><br># pty devices:<br>KERNEL=="tty[p-za-e][0-9a-f]*", NAME="pty/s%n", SYMLINK+="%k", GROUP="tty", OPTIONS="last_rule"
<br>KERNEL=="pty[p-za-e][0-9a-f]*", NAME="pty/m%n", SYMLINK+="%k", GROUP="tty", OPTIONS="last_rule"<br>KERNEL=="ptmx",
NAME="%k", GROUP="tty",
MODE="0666", OPTIONS="last_rule"<br><br>KERNEL=="ttyS[0-9]*",
SYMLINK+="tts/%n", GROUP="uucp", OPTIONS="last_rule"<br>KERNEL=="ttyUSB[0-9]*", SYMLINK+="tts/USB%n", GROUP="tty", MODE="0600"<br>KERNEL=="ttyUSB[0-9]*",
SYMLINK+="usb/tts/%n"<br><br># aoe char devices,<br>SUBSYSTEM="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220"<br>SUBSYSTEM="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440"
<br>SUBSYSTEM="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220"<br><br># memory devices<br>KERNEL=="random", NAME="%k", MODE="0666"
<br>KERNEL=="urandom", NAME="%k", MODE="0444"<br>KERNEL=="mem", NAME="%k", MODE="0640"<br>KERNEL=="kmem", NAME="%k", MODE="0640"
<br>KERNEL=="port", NAME="%k", MODE="0640"<br>KERNEL=="full", NAME="%k", MODE="0666"<br>KERNEL=="null", NAME="%k", MODE="0666"
<br>KERNEL=="zero", NAME="%k", MODE="0666"<br><br># /misc devices:<br>KERNEL=="agpgart", SYMLINK+="misc/agpgart",
GROUP="video"<br>KERNEL=="apm_bios",
SYMLINK+="misc/apm_bios"<br>KERNEL=="rtc", SYMLINK+="misc/rtc",
MODE="0664"<br>KERNEL=="dmapi", SYMLINK+="misc/%k"<br>KERNEL=="dac960_gam",
SYMLINK+="misc/%k"<br>KERNEL=="vmmon", SYMLINK+="misc/%k"<br>KERNEL=="inotify", NAME="misc/%k",
SYMLINK+="%k", MODE="0666"<br><br>KERNEL=="i2c-[0-9]*",
SYMLINK+="i2c/%n"<br><br>KERNEL=="lirc",
SYMLINK+="lirc/lirc%n"<br>KERNEL=="lirc[1-9]", SYMLINK+="lirc/%k"<br><br>KERNEL=="fb[1-9]*",
SYMLINK+="fb/%n", GROUP="video"<br><br><br><br>#-------------------------------------------------<br># Sound devices<br><br>SUBSYSTEM="sound", GROUP="audio"<br><br>KERNEL=="admmidi", SYMLINK+="sound/admmidi",
GROUP="audio"<br>KERNEL=="admmidi[1-9]",
SYMLINK+="sound/admmidi%n", GROUP="audio"<br>KERNEL=="adsp",
SYMLINK+="sound/adsp", GROUP="audio"<br>KERNEL=="adsp[1-9]", SYMLINK+="sound/adsp%n", GROUP="audio"<br>KERNEL=="amidi", SYMLINK+="sound/amidi",
GROUP="audio"<br>KERNEL=="amidi[1-9]",
SYMLINK+="sound/amidi%n",
GROUP="audio"<br>KERNEL=="amixer",
SYMLINK+="sound/amixer", GROUP="audio"<br>KERNEL=="amixer[1-9]", SYMLINK+="sound/amixer%n", GROUP="audio"<br><br>KERNEL=="audio", SYMLINK+="sound/audio",
GROUP="audio"<br>KERNEL=="audio[1-9]",
SYMLINK+="sound/audio%n",
GROUP="audio"<br>KERNEL=="dmmidi",
SYMLINK+="sound/dmmidi", GROUP="audio"<br>KERNEL=="dmmidi[1-9]", SYMLINK+="sound/dmmidi%n", GROUP="audio"<br>KERNEL=="dsp", SYMLINK+="sound/dsp",
GROUP="audio"<br>KERNEL=="dsp[1-9]",
SYMLINK+="sound/dsp%n",
GROUP="audio"<br>KERNEL=="dmfm",
SYMLINK+="sound/dmfm", GROUP="audio"<br>KERNEL=="dmfm[1-9]", SYMLINK+="sound/dmfm%n", GROUP="audio"<br>KERNEL=="midi",
SYMLINK+="sound/midi", GROUP="audio"<br>KERNEL=="midi[1-9]", SYMLINK+="sound/midi%n", GROUP="audio"<br>KERNEL=="mixer", SYMLINK+="sound/mixer",
GROUP="audio"<br>KERNEL=="mixer[1-9]",
SYMLINK+="sound/mixer%n",
GROUP="audio"<br>KERNEL=="music", SYMLINK+="sound/music",
GROUP="audio"<br>KERNEL=="music[1-9]",
SYMLINK+="sound/music%n",
GROUP="audio"<br>KERNEL=="sequencer", SYMLINK+="sound/sequencer",
GROUP="audio"<br>KERNEL=="sequencer[1-9]",
SYMLINK+="sound/%k", GROUP="audio"<br><br>KERNEL=="controlC[0-9]", NAME="snd/%k", GROUP="audio"<br>KERNEL=="hwC[0-9]D[0-9]",
NAME="snd/%k", GROUP="audio"<br>KERNEL=="midiC[0-9]D[0-9]",
NAME="snd/%k", GROUP="audio"<br>KERNEL=="pcmC[0-9]D[0-9]c",
NAME="snd/%k", GROUP="audio"<br>KERNEL=="pcmC[0-9]D[0-9]p",
NAME="snd/%k", GROUP="audio"<br>KERNEL=="timer", NAME="snd/%k", GROUP="audio"<br>
KERNEL=="seq", NAME="snd/%k", GROUP="audio"<br><br>#-------------------------------------------------<br># Network devices<br><br>KERNEL=="tun", SYMLINK+="net/%k"
<br><br># netlink devices:<br>KERNEL=="route", SYMLINK+="netlink/%k"<br>KERNEL=="skip",
SYMLINK+="netlink/%k"<br>KERNEL=="usersock",
SYMLINK+="netlink/%k"<br>KERNEL=="fwmonitor", SYMLINK+="netlink/%k"<br>KERNEL=="tcpdiag", SYMLINK+="netlink/%k"<br>
KERNEL=="nflog", SYMLINK+="netlink/%k"<br>KERNEL=="xfrm",
SYMLINK+="netlink/%k"<br>KERNEL=="arpd",
SYMLINK+="netlink/%k"<br>KERNEL=="route6",
SYMLINK+="netlink/%k"<br>KERNEL=="ip6_fw",
SYMLINK+="netlink/%k"<br>KERNEL=="dnrtmsg", SYMLINK+="netlink/%k"<br>KERNEL=="tap*",
SYMLINK+="netlink/%k"<br><br># ISDN devices<br>KERNEL=="ippp0", NAME="%k",
GROUP="tty"<br>KERNEL=="ippp0", NAME="%k",
GROUP="tty"<br><br># CAPI devices<br>KERNEL=="capi",
NAME="capi20", SYMLINK+="isdn/capi20"<br>KERNEL=="capi*", NAME="capi/%n"<br><br><br>#-------------------------------------------------<br># Misc permissions:
<br><br># pilot/palm devices<br>KERNEL=="pilot", NAME="%k",
GROUP="uucp"<br><br># jaz devices<br>KERNEL=="jaz*", NAME="%k", GROUP="disk"<br><br># zip devices<br>KERNEL=="pocketzip*", NAME="%k", GROUP="disk"
<br>KERNEL=="zip*", NAME="%k", GROUP="disk"<br><br># ls120 devices<br>KERNEL=="ls120", NAME="%k",
GROUP="disk"<br><br># lp devices<br>SUBSYSTEM="printer", GROUP="lp"<br>KERNEL=="irlpt", NAME="%k",
GROUP="lp"<br>KERNEL=="usblp", NAME="%k",
GROUP="lp"<br>BUS="usb",
KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp"<br>KERNEL=="lp[0-9]*",
NAME="%k", SYMLINK+="printers/%n
par%n", GROUP="lp"<br><br># tape devices<br>KERNEL=="ht*", NAME="%k", GROUP="tape"<br>KERNEL=="nht*", NAME="%k", GROUP="tape"<br>
KERNEL=="pt*", NAME="%k", GROUP="tape"<br>KERNEL=="npt*", NAME="%k", GROUP="tape"<br>KERNEL=="st*", NAME="%k", GROUP="tape"
<br>KERNEL=="nst*", NAME="%k", GROUP="tape"<br>KERNEL=="osst*", NAME="%k",
GROUP="tape"<br>KERNEL=="nosst*", NAME="%k", GROUP="tape"<br><br># diskonkey devices<br>KERNEL=="diskonkey*", NAME="%k", GROUP="disk"<br><br># rem_ide devices
<br>KERNEL=="microdrive*", NAME="%k", GROUP="disk"<br><br># kbd devices<br>KERNEL=="kbd", NAME="%k", MODE="0664"<br><br># Sony Vaio Jogdial sonypi device
<br>KERNEL=="sonypi", NAME="%k", MODE="0666"<br><br><br>#-------------------------------------------------<br># obsolete hotplug agents:<br><br># to uncomment once we've dbus-0.3x/hal-0.5
:<br># give hal events by socket instead of spawning its agent:<br>#RUN+="socket:/org/freedesktop/hal/udev_event"<br># move all /etc/dev.d to event handlers:<br>#RUN+="/usr/lib/hal.hotplug"<br><br># allow pci cold plug for usb controllers only
<br># alias pci:v*d*sv*sd*bc0Csc03i10* ohci-hcd<br># alias pci:v*d*sv*sd*bc0Csc03i20* ehci-hcd<br># alias pci:v*d*sv*sd*bc0Csc03i00* uhci-hcd<br>ACTION=="add", SUBSYSTEM=="pci", ENV{UDEV_START}=="1", MODALIAS=="*", \
<br> SYSFS{class}="0x0c0300|0x0c0310|0x0c0320", \<br> RUN+="/sbin/modprobe $modalias"<br># modprobe pci devices on hot plug<br>ACTION=="add", SUBSYSTEM=="pci", ENV{UDEV_START}!="1", MODALIAS=="*", \
<br> RUN+="/sbin/modprobe $modalias"<br><br># libusb device access (mount usbfs or usbdev nodes)<br>DEVPATH=="/module/usbcore", ACTION=="add", \<br> RUN+="/bin/sh
-c 'sleep 1; /bin/mount -t usbfs -o devmode=0664,devgid=43 none
/proc/bus/usb'"<br># usbhid should be loaded before usbmouse, or else some Microsoft mice move vertically only<br>ACTION=="add", MODALIAS="usb:v*p*d*dc*dsc*dp*ic03isc01ip02*", RUN+="/sbin/modprobe usbhid"
<br><br># modprobe on hot plug (and cold plug, which is processed by udevstart)<br>ACTION=="add", SUBSYSTEM=="usb", MODALIAS=="*", \<br> RUN+="/sbin/modprobe $modalias"<br>ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \
<br> RUN+="/sbin/modprobe $modalias"<br>ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="*", \<br> RUN+="/bin/sh -c 'echo 1 > /sys/$DEVPATH/allow_func_id_match'"
<br>ACTION=="add", SUBSYSTEM=="ieee1394", MODALIAS=="*", \<br> RUN+="/sbin/modprobe $modalias"<br><br><br>ACTION=="add", SUBSYSTEM=="ieee1394", MODALIAS=="*", \
<br> RUN+="/sbin/modprobe $modalias"<br><br># disks & magneto-optical disk:<br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \<br> RUN+="/sbin/modprobe sd_mod"
<br><br># enclosure:<br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="14", \<br> RUN+="/sbin/modprobe sd_mod"<br><br># WORM & ROM:<br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[45]", \
<br> RUN+="/sbin/modprobe sr_mod"<br><br># Tape:<br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}=="Onstream", \<br> SYSFS{model}!="ADR*",
RUN+="/sbin/modprobe osst"<br><br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}=="Onstream", \<br> SYSFS{model}=="ADR*",
RUN+="/sbin/modprobe st"<br><br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="1", SYSFS{vendor}!="Onstream", \<br> RUN+="/sbin/modprobe st"<br><br>
# printer, scanner (hp & all), changer & comm :<br>ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[23689]", \<br> RUN+="/sbin/modprobe sg"<br><br>ACTION=="add", SUBSYSTEM=="firmware", ENV{FIRMWARE}=="*", \
<br> RUN+="/sbin/firmware_helper"<br><br>ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \<br> RUN+="/sbin/udev_net_helper"<br><br>ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \
<br> RUN+="/sbin/udev_net_helper"<br><br>ACTION=="add", SUBSYSTEM=="input", RUN+="/sbin/udev_input_helper"<br><br>ACTION=="add", SUBSYSTEM=="ieee1394", RUN+="/sbin/udev_ieee1394_helper"
<br>ACTION=="remove", SUBSYSTEM=="ieee1394", RUN+="/sbin/udev_ieee1394_helper"<br><br><br><br>--<br>Mailing list info: <a href="http://lists.linux.it/listinfo/linuxludus">http://lists.linux.it/listinfo/linuxludus
</a><br><br><br></blockquote></div><br>