From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dick Repasky Date: Thu, 05 Jun 2008 22:35:05 +0000 Subject: udev RUN+=: device but no partitions Message-Id: <48486A19.1020909@indiana.edu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org If I use udev to run a script when a usb disk device appears, the device file for the whole device is available in the script but device files for partitions on the device are not. Example: usb thumbdrive that appears as sdb and has one partition sdb1. Udev entry KERNEL="sdb", RUN+="/usr/local/sbin/check-sdb" In check-sdb, if I run either "ls /dev/sdb*" or find /dev -name "sdb*", only /dev/sdb appears but not /dev/sdb1. Is that behavior correct? When the same script is run from the command-line, the partition device file appears. My system is Ubuntu 8.04 (hardy) running udev-117-8. Thanks, Dick Repasky -