On Jan 29, 2008 12:24 AM, Chris wrote:
I figured (from /var/log/messages) that the flash drive is mounted as
"JetFlash" so I changed the script to reflect this and still no luck.
Following the /var/log/message after the flash drive is plugged in and
also the new modified script.
Jan 29 19:40:44 red /bsd: sd1 detached
Jan 29 19:40:44 red /bsd: scsibus2 detached
Jan 29 19:40:44 red /bsd: umass0 detached
Jan 29 19:40:47 red /bsd: umass0 at uhub0 port 2 configuration 1 interface 0
Jan 29 19:40:47 red /bsd:
Jan 29 19:40:47 red /bsd: umass0: JetFlash Mass Storage Device, rev
2.00/1.41, addr 2
Jan 29 19:40:47 red /bsd: umass0: using SCSI over Bulk-Only
Jan 29 19:40:47 red /bsd: scsibus2 at umass0: 2 targets
Jan 29 19:40:47 red /bsd: sd1 at scsibus2 targ 1 lun 0: SCSI2 0/direct removable
Jan 29 19:40:47 red /bsd: sd1: 7799MB, 994 cyl, 255 head, 63 sec, 512
bytes/sec, 15974398 sec total
#!/bin/sh
DEVCLASS=$1
DEVNAME=$2
case $DEVCLASS in
2)
# disk devices
disklabel=`/sbin/disklabel $DEVNAME 2>&1 | \
sed -n '/^label: /s/^label: //p'`
case $disklabel in
JetFlash)
# flash drive
mount /dev/"$DEVNAME"i /mnt/flash
;;
esac
;;
3)
# network devices
/sbin/dhclient $DEVNAME
;;
esac
Is there anything I am doing wrong? Thanks for any help.
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Alan Cox | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | Re: [GIT]: Networking |
| Evgeniy Polyakov | Re: [BUG] New Kernel Bugs |
