by dinjo » Mon Dec 17, 2012 2:28 pm
I tried creating rules didn't worked
$this->bbcode_second_pass_quote('', '[')root@alarm /etc/udev/rules.d]$ more 90-media-by-label.rules
KERNEL=="sdb2",ACTION=="add", RUN+="/root/startProcess.bash > /tmp/start"
The drive gets mounted
$this->bbcode_second_pass_code('', '
[ 1609.920000] usb 1-1.3:1.0: uevent
[ 1609.930000] usb 1-1.3: uevent
[ 1609.930000] usb 1-1.3: uevent
[ 1609.930000] usb 1-1.3:1.0: uevent
[ 1614.890000] scsi 4:0:0:0: Direct-Access Seagate FreeAgent GoFlex 0148 PQ: 0 ANSI: 4
[ 1614.900000] usb-storage: device scan complete
[ 1614.900000] sd 4:0:0:0: [sdb] 976773167 512-byte logical blocks: (500 GB/465 GiB)
[ 1614.910000] sd 4:0:0:0: [sdb] Write Protect is off
[ 1614.910000] sd 4:0:0:0: [sdb] Mode Sense: 1c 00 00 00
[ 1614.910000] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1614.920000] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1614.930000] sdb: sdb2
[ 1615.000000] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1615.000000] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 1615.010000] usb 1-1.3:1.0: uevent
[ 1615.630000] kjournald starting. Commit interval 5 seconds
[ 1615.640000] EXT3 FS on sdb2, internal journal
[ 1615.640000] EXT3-fs: mounted filesystem with writeback data mode.
')