Fedora 7 - removeable drive udev rule query



I'm a relative linux newbie and have having difficulty understanding
and configuring udev rules to achieve a consistent device naming for a
removeable hard drive.

Part of my confusion stems from the fact that much of the guidelines
available on the web seem to refer to an earlier version of udev and
use terms like SYSFS which do not appear to be used in my
installation.

I'm running Fedora 7, kernel 2.6.22.9-91.fc7 on a x86_64 platform
which I'm using as a samba NAS server. The server hosts 4 internal
SATA drives in a JBOD array which are mounted as /dev/sd[a-d]1.

I'm using an external LaCie Bigdisk Extreme USB/firewire 600GB drive
with a single ext3 partition, primarily to take LVM backups of the
root partition on the server.

This is all working fine - I can mount the disk (using firewire 400)
and run the backups OK. The (minor) problem is that the external drive
is not consistently named (it varies from /dev/sde1 through /dev/sdg1)
and I'd like to be able to mount it under a consistent name of
/dev/bigdisk.

I understand that to achieve this I need to add a custom rule in the
/etc/udev/rules.d directory - e.g. 10-local.rules, which uniquely
identifies the drive and assigns a unique consistent name to it - in
my case /dev/bigdisk.

I've run the command udevinfo -a -p $(udevinfo -q path -n /dev/sde),
the output from which is shown below. On the basis of this output I
elected to identify the device by its model name of "BigDisk Extreme"
and set up a rule in 10-local.rule as follows:

KERNEL=="sd[a-z]", NAME="bigdisk", ATTRS{model}=="BigDisk
Extreme",SYMLINK+="bigdisk"

I then ran the command: udevcontrol reload_rules (I've also tried a
complete restart)

However, the rule clearly doesn't work at all and the device is still
configured as /dev/sde1. udevtest confirms that the rule is valid but
ignored.

What am I doing wrong here? How can I set up a rule, based on the info
below, which will allow me to mount the removeable drive as
/dev/bigdisk.


Output from udevinfo:

looking at device '/block/sde':
KERNEL=="sde"
SUBSYSTEM=="block"
DRIVER==""
ATTR{capability}=="12"
ATTR{stat}==" 23 10 264 120 0 0
0 0 0 118 120"
ATTR{size}=="1172229264"
ATTR{removable}=="0"
ATTR{range}=="16"
ATTR{dev}=="8:64"

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0/fw1/fw1.0/host6/target6:0:0/6:0:0:0':
KERNELS=="6:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
ATTRS{modalias}=="scsi:t-0x0e"
ATTRS{ioerr_cnt}=="0x0"
ATTRS{iodone_cnt}=="0x27"
ATTRS{iorequest_cnt}=="0x27"
ATTRS{iocounterbits}=="32"
ATTRS{timeout}=="60"
ATTRS{state}=="running"
ATTRS{rev}=="912 "
ATTRS{model}=="BigDisk Extreme "
ATTRS{vendor}=="LaCie "
ATTRS{scsi_level}=="5"
ATTRS{type}=="14"
ATTRS{queue_type}=="none"
ATTRS{queue_depth}=="1"
ATTRS{device_blocked}=="0"
ATTRS{ieee1394_id}=="00d04b610904d521:000430:0000"

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0/fw1/fw1.0/host6/target6:0:0':
KERNELS=="target6:0:0"
SUBSYSTEMS==""
DRIVERS==""
ATTRS{uevent}==""

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0/fw1/fw1.0/host6':
KERNELS=="host6"
SUBSYSTEMS==""
DRIVERS==""
ATTRS{uevent}==""

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0/fw1/fw1.0':
KERNELS=="fw1.0"
SUBSYSTEMS=="firewire"
DRIVERS=="sbp2"
ATTRS{model_name}=="LaCie Big Disk Extreme LUN 0"
ATTRS{model}=="0x000000"
ATTRS{version}=="0x010483"
ATTRS{specifier_id}=="0x00609e"
ATTRS{rom_index}=="12"

ATTRS{modalias}=="ieee1394:ven0000D04Bmo00000000sp0000609Ever00010483"

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0/fw1':
KERNELS=="fw1"
SUBSYSTEMS=="firewire"
DRIVERS==""
ATTRS{hardware_version_name}=="FW 800 Rev 2"
ATTRS{vendor_name}=="LaCie Group SA"
ATTRS{hardware_version}=="0x000912"
ATTRS{vendor}=="0x00d04b"
ATTRS{guid}=="0x00d04b610904d521"
ATTRS{dev}=="251:1"

looking at parent device
'/devices/pci0000:00/0000:00:04.0/0000:01:0a.0':
KERNELS=="0000:01:0a.0"
SUBSYSTEMS=="pci"
DRIVERS=="firewire_ohci"
ATTRS{msi_bus}==""
ATTRS{broken_parity_status}=="0"
ATTRS{enable}=="1"
ATTRS{numa_node}=="0"

ATTRS{modalias}=="pci:v0000104Cd00008009sv0000104Csd00008010bc0Csc00i10"
ATTRS{local_cpus}=="00000000,00000001"
ATTRS{irq}=="18"
ATTRS{class}=="0x0c0010"
ATTRS{subsystem_device}=="0x8010"
ATTRS{subsystem_vendor}=="0x104c"
ATTRS{device}=="0x8009"
ATTRS{vendor}=="0x104c"

looking at parent device '/devices/pci0000:00/0000:00:04.0':
KERNELS=="0000:00:04.0"
SUBSYSTEMS=="pci"
DRIVERS==""
ATTRS{msi_bus}=="1"
ATTRS{broken_parity_status}=="0"
ATTRS{enable}=="1"
ATTRS{numa_node}=="0"

ATTRS{modalias}=="pci:v000010DEd000003F3sv00000000sd00000000bc06sc04i01"
ATTRS{local_cpus}=="00000000,00000001"
ATTRS{irq}=="0"
ATTRS{class}=="0x060401"
ATTRS{subsystem_device}=="0x0000"
ATTRS{subsystem_vendor}=="0x0000"
ATTRS{device}=="0x03f3"
ATTRS{vendor}=="0x10de"

looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
ATTRS{uevent}==""
.