Hi,
I'm looking for help creating a udev rule on a CentOS 5.x machine. The rule
only needs a couple things.

Imagine we have a bunch of disks, with one file system on each disk. Each
file system has a UUID, and I know the UUID of each file system ahead of
time.

The udev rule needs to do something like:
If a disk is connected to the system and it has a file system on it with
UUID of xxxx.-xxxx-xxx...1
or UUID of xxxx-xxxx-xxxx...2
and so forth,
If the above happens, mount the disk at /some-mount-point

Also, The disks are connected via E-SATA.

This should be achievable with a udev rule calling a program, something
like: blkid -o value -s UUID or possibly using the /dev/disk/by-uuid
symlinks

I've been doing some research but been having trouble because a lot of
stuff I've been seeing will try to mount *any* disk connected, or try to
use a partition label. I'm looking for a way to only automatically mount
disks with specific UUID's. Other disks connected into the same E-SATA
ports should just sit there and do nothing.

Thanks in advance, any help is appreciated.
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to