[LBo] setting up udev for Zip Drive

Anita Lewis a.lewis at linuxbasics.org
Tue Sep 5 22:39:58 CEST 2006


On 09/05/2006 01:20 PM Howard Rosen wrote:
> See the result of an ls.
> 
> linux:/etc/udev/rules.d # ls -l
> total 76
> -rw-r--r-- 1 root root  189 2006-05-02 02:45 05-udev-early.rules
> -rw-r--r-- 1 root root  553 2006-08-18 16:30
> 29-net_trigger_firmware.rules
> -rw-r--r-- 1 root root  769 2006-08-18 12:46
> 30-net_persistent_names.rules
> -rw-r--r-- 1 root root 1491 2006-08-18 16:30 31-network.rules

These are similar to mine in that they have numbers in front like in 
/etc/rc.d to make things go in order.  I looked for one that already had 
IOMEGA in it:

ajlewis2 at quietone:/etc/udev/rules.d$ grep IOMEGA *
20-names.rules: ENV{ID_MODEL}=="IOMEGA_ZIP*",  NAME{all_partitions}="%k"

So I put mine in 20-names.rules and left the one that was already there 
in place. The one that is there is for an IDE zip; so I just left it 
there.

# Work-around for IDE devices that don't report media changes
BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}=="1", \
         ENV{ID_MODEL}=="IOMEGA_ZIP*",   NAME{all_partitions}="%k"

# Add in zip drive
BUS=="scsi", SYSFS{model}=="ZIP 100         ", SYSFS{vendor}=="IOMEGA 
", NAME="zip"

So if you do the grep and find a file with IOMEGA in it, I'd put it 
there.  If not, I would put it as 20-names.rules, because the only thing 
I have before 20 is 00-init.rules which is like your 05-udev-early.rules 
I imagine.  Give it a try and remember that you have to restart udev and 
probably the surest way to do it is to just reboot.

I usually have a disk in my zipdrive when I reboot; so not sure if that 
is necessary.  I think it is not necessary.

Anita



More information about the QnA mailing list