> # Maybe some debugging will help: > # > exec >> /tmp/logfile 2>&1 > set -x
i changed the /etc/hotplugd/attach script with "JetFlash*" and also enabled debugging - any further help would be much appreciated. Thanks. /var/log/messages output - Feb 1 17:30:11 red /bsd: umass0 at uhub0 port 2 configuration 1 interface 0 Feb 1 17:30:11 red /bsd: Feb 1 17:30:11 red /bsd: umass0: JetFlash Mass Storage Device, rev 2.00/1.41, addr 2 Feb 1 17:30:11 red /bsd: umass0: using SCSI over Bulk-Only Feb 1 17:30:11 red /bsd: scsibus2 at umass0: 2 targets Feb 1 17:30:12 red /bsd: sd1 at scsibus2 targ 1 lun 0: <JetFlash, TS8GJFV30, 8.07> SCSI2 0/direct removable Feb 1 17:30:12 red /bsd: sd1: 7799MB, 994 cyl, 255 head, 63 sec, 512 bytes/sec, 15974398 sec total /etc/hotplugd/attach script - #!/bin/sh exec >> /tmp/logfile 2>&1 set -x DEVCLASS=$1 DEVNAME=$2 case $DEVCLASS in 2) # disk devices disklabel=`/sbin/disklabel $DEVNAME 2>&1 | sed -n '/^label: / s/^label: //p'` echo "disklabel" case $disklabel in JetFlash*) # flash drive mount /dev/"$DEVNAME"i /mnt/flash echo "mount" ;; esac ;; debug output from /tmp/logfile - + DEVCLASS=2 + DEVNAME=sd1 + sed -n /^label: /s/^label: //p + DEVCLASS=0 + DEVNAME=scsibus2 + /sbin/disklabel sd1 + 2>&1 + DEVCLASS=0 + DEVNAME=umass0 + disklabel=TS8GJFV30 + echo disklabel disklabel