[SOLVED]udev: execute command on usb unplug (em28xx_dvb WinTV_HVR-900)
Hi all.
I've a known bug with a dvbt usb device.
The problem is that if i unplug and replug it, em28xx_dvb module hangs in dvb_init() and a reboot is needed to use the device again.
A manual workaround exists, it is sufficient to rmmod em28xx_dvb before replug the device again, but if i forgot it, i'm f*****
So here comes a question:
Does udev reacts to the unplug event? and if yes, how can i trigger the action of removing that module?
I'm a little noob with udev rules, so please be patient and thanks!
Last edited by kokoko3k (2011-05-17 11:52:33)
I got it working; if anyone cares, here's the udev rule:
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_MODEL}=="WinTV_HVR-900", RUN+="/sbin/rmmod em28xx_dvb"
ENV{ID_MODEL}=="WinTV_HVR-900" is the key, my previous attempts to use ATTR{product}=="WinTV HVR-900" failed because it seems that udev doesn't trig any event on device removal (works on device plug),
while it does using id_model.
-EDIT-
If anyone uses this device, here's other tricks i made to make it work (without ir):
#> cat /etc/modprobe.d/tv.conf
options em28xx disable_ir=1
#> cat /etc/udev/rules.d/50-WinTv.rules
ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_MODEL}=="WinTV_HVR-900", RUN+="/sbin/rmmod em28xx_dvb""
Before hibernation:
# rmmod em28xx_dvb em28xx dvb_core tuner tvp5150 v4l2_common videodev videobuf_vmalloc videobuf_core tveeprom zl10353 ir_lirc_codec lirc_dev ir_sony_decoder ir_jvc_decoder ir_rc6_decoder ir_rc5_decoder ir_nec_decoder rc_core tuner_xc2028
On resume from hibernation:
# hwdetect --load-modules
...man, it wasnt 'easy'
Last edited by kokoko3k (2011-05-17 12:08:16)
Similar Messages
-
[SOLVED]udev doesn't execute my custom rule
Here is my device info:
XSign rules.d # udevadm info -a -n /dev/sdb1
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1':
KERNEL=="sdb1"
SUBSYSTEM=="block"
DRIVER==""
ATTR{ro}=="0"
ATTR{size}=="15685569"
ATTR{stat}==" 240 1120 1906 320 0 0 0 0 0 320 320"
ATTR{partition}=="1"
ATTR{start}=="63"
ATTR{discard_alignment}=="0"
ATTR{alignment_offset}=="0"
ATTR{inflight}==" 0 0"
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0/block/sdb':
KERNELS=="sdb"
SUBSYSTEMS=="block"
DRIVERS==""
ATTRS{ro}=="0"
ATTRS{size}=="15685632"
ATTRS{stat}==" 255 1123 2050 330 0 0 0 0 0 330 330"
ATTRS{range}=="16"
ATTRS{discard_alignment}=="0"
ATTRS{events}=="media_change"
ATTRS{ext_range}=="256"
ATTRS{events_poll_msecs}=="-1"
ATTRS{alignment_offset}=="0"
ATTRS{inflight}==" 0 0"
ATTRS{removable}=="1"
ATTRS{capability}=="51"
ATTRS{events_async}==""
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0':
KERNELS=="8:0:0:0"
SUBSYSTEMS=="scsi"
DRIVERS=="sd"
ATTRS{rev}=="1.00"
ATTRS{type}=="0"
ATTRS{scsi_level}=="0"
ATTRS{model}=="USB SD Reader "
ATTRS{state}=="running"
ATTRS{queue_type}=="none"
ATTRS{iodone_cnt}=="0x1dd"
ATTRS{iorequest_cnt}=="0x1dd"
ATTRS{timeout}=="30"
ATTRS{evt_media_change}=="0"
ATTRS{max_sectors}=="240"
ATTRS{ioerr_cnt}=="0x2"
ATTRS{queue_depth}=="1"
ATTRS{vendor}=="Generic "
ATTRS{device_blocked}=="0"
ATTRS{iocounterbits}=="32"
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0':
KERNELS=="target8:0:0"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8':
KERNELS=="host8"
SUBSYSTEMS=="scsi"
DRIVERS==""
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0':
KERNELS=="1-1.1:1.0"
SUBSYSTEMS=="usb"
DRIVERS=="usb-storage"
ATTRS{bInterfaceClass}=="08"
ATTRS{bInterfaceSubClass}=="06"
ATTRS{bInterfaceProtocol}=="50"
ATTRS{bNumEndpoints}=="02"
ATTRS{supports_autosuspend}=="1"
ATTRS{bAlternateSetting}==" 0"
ATTRS{bInterfaceNumber}=="00"
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1':
KERNELS=="1-1.1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{devpath}=="1.1"
ATTRS{idVendor}=="090c"
ATTRS{speed}=="480"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{busnum}=="1"
ATTRS{devnum}=="8"
ATTRS{configuration}==""
ATTRS{bMaxPower}=="500mA"
ATTRS{authorized}=="1"
ATTRS{bmAttributes}=="80"
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="0"
ATTRS{bcdDevice}=="0100"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{quirks}=="0x0"
ATTRS{serial}=="12345678901234567890"
ATTRS{version}==" 2.00"
ATTRS{urbnum}=="1264"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Silicon Motion, Inc."
ATTRS{removable}=="removable"
ATTRS{idProduct}=="6200"
ATTRS{bDeviceClass}=="00"
ATTRS{product}=="Generic USB2.0 card "
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1/1-1':
KERNELS=="1-1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="01"
ATTRS{devpath}=="1"
ATTRS{idVendor}=="8087"
ATTRS{speed}=="480"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{busnum}=="1"
ATTRS{devnum}=="2"
ATTRS{configuration}==""
ATTRS{bMaxPower}==" 0mA"
ATTRS{authorized}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="6"
ATTRS{bcdDevice}=="0000"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{quirks}=="0x0"
ATTRS{version}==" 2.00"
ATTRS{urbnum}=="130"
ATTRS{ltm_capable}=="no"
ATTRS{removable}=="fixed"
ATTRS{idProduct}=="0020"
ATTRS{bDeviceClass}=="09"
looking at parent device '/devices/pci0000:00/0000:00:1a.0/usb1':
KERNELS=="usb1"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{bDeviceSubClass}=="00"
ATTRS{bDeviceProtocol}=="00"
ATTRS{devpath}=="0"
ATTRS{idVendor}=="1d6b"
ATTRS{speed}=="480"
ATTRS{bNumInterfaces}==" 1"
ATTRS{bConfigurationValue}=="1"
ATTRS{bMaxPacketSize0}=="64"
ATTRS{authorized_default}=="1"
ATTRS{busnum}=="1"
ATTRS{devnum}=="1"
ATTRS{configuration}==""
ATTRS{bMaxPower}==" 0mA"
ATTRS{authorized}=="1"
ATTRS{bmAttributes}=="e0"
ATTRS{bNumConfigurations}=="1"
ATTRS{maxchild}=="3"
ATTRS{bcdDevice}=="0308"
ATTRS{avoid_reset_quirk}=="0"
ATTRS{quirks}=="0x0"
ATTRS{serial}=="0000:00:1a.0"
ATTRS{version}==" 2.00"
ATTRS{urbnum}=="26"
ATTRS{ltm_capable}=="no"
ATTRS{manufacturer}=="Linux 3.8.3-2-ARCH ehci_hcd"
ATTRS{removable}=="unknown"
ATTRS{idProduct}=="0002"
ATTRS{bDeviceClass}=="09"
ATTRS{product}=="EHCI Host Controller"
looking at parent device '/devices/pci0000:00/0000:00:1a.0':
KERNELS=="0000:00:1a.0"
SUBSYSTEMS=="pci"
DRIVERS=="ehci-pci"
ATTRS{irq}=="23"
ATTRS{subsystem_vendor}=="0x17aa"
ATTRS{broken_parity_status}=="0"
ATTRS{class}=="0x0c0320"
ATTRS{companion}==""
ATTRS{consistent_dma_mask_bits}=="32"
ATTRS{dma_mask_bits}=="32"
ATTRS{local_cpus}=="ff"
ATTRS{device}=="0x3b3c"
ATTRS{uframe_periodic_max}=="100"
ATTRS{enable}=="1"
ATTRS{msi_bus}==""
ATTRS{local_cpulist}=="0-7"
ATTRS{vendor}=="0x8086"
ATTRS{subsystem_device}=="0x2163"
ATTRS{d3cold_allowed}=="1"
looking at parent device '/devices/pci0000:00':
KERNELS=="pci0000:00"
SUBSYSTEMS==""
DRIVERS==""
and rule:
XSign rules.d # cat 100-usb.rules
KERNEL=="sd*", SUBSYSTEMS=="scsi", ATTRS{model}=="USB SD Reader", SYMLINK+="test_%n", OPTIONS+="all_partitions"
and the test:
XSign rules.d # udevadm test /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1
calling: test
version 198
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
=== trie on-disk ===
tool version: 198
file size: 5544030 bytes
header size 80 bytes
strings 1242254 bytes
nodes 4301696 bytes
load module index
Skipping overridden file: /usr/lib/udev/rules.d/80-net-name-slot.rules.
read rules file: /etc/udev/rules.d/01-razer-udev.rules
read rules file: /usr/lib/udev/rules.d/10-dm.rules
read rules file: /usr/lib/udev/rules.d/10-vboxdrv.rules
read rules file: /etc/udev/rules.d/100-usb.rules
read rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules
read rules file: /usr/lib/udev/rules.d/13-dm-disk.rules
read rules file: /usr/lib/udev/rules.d/40-hpet-permissions.rules
read rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /usr/lib/udev/rules.d/50-udev-default.rules
read rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules
read rules file: /usr/lib/udev/rules.d/60-fprint-autosuspend.rules
read rules file: /usr/lib/udev/rules.d/60-pcmcia.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-input.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-serial.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /usr/lib/udev/rules.d/60-rfkill.rules
read rules file: /usr/lib/udev/rules.d/60-vboxguest.rules
read rules file: /usr/lib/udev/rules.d/61-accelerometer.rules
read rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules
read rules file: /usr/lib/udev/rules.d/64-btrfs.rules
read rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules
read rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules
IMPORT found builtin 'usb_id --export %p', replacing /usr/lib/udev/rules.d/69-cd-sensors.rules:85
read rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules
read rules file: /usr/lib/udev/rules.d/70-infrared.rules
read rules file: /usr/lib/udev/rules.d/70-power-switch.rules
read rules file: /usr/lib/udev/rules.d/70-uaccess.rules
read rules file: /usr/lib/udev/rules.d/71-seat.rules
read rules file: /usr/lib/udev/rules.d/73-seat-late.rules
read rules file: /usr/lib/udev/rules.d/75-net-description.rules
read rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules
read rules file: /usr/lib/udev/rules.d/75-tty-description.rules
read rules file: /usr/lib/udev/rules.d/78-sound-card.rules
read rules file: /usr/lib/udev/rules.d/80-drivers.rules
read rules file: /etc/udev/rules.d/80-net-name-slot.rules
read rules file: /usr/lib/udev/rules.d/80-udisks.rules
read rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules
read rules file: /etc/udev/rules.d/91-fingerprint-gui-upek.rules
read rules file: /usr/lib/udev/rules.d/95-cd-devices.rules
read rules file: /usr/lib/udev/rules.d/95-dm-notify.rules
read rules file: /usr/lib/udev/rules.d/95-keyboard-force-release.rules
read rules file: /usr/lib/udev/rules.d/95-keymap.rules
read rules file: /usr/lib/udev/rules.d/95-udev-late.rules
read rules file: /usr/lib/udev/rules.d/97-bluetooth-hid2hci.rules
read rules file: /usr/lib/udev/rules.d/99-laptop-mode.rules
read rules file: /usr/lib/udev/rules.d/99-systemd.rules
rules contain 49152 bytes tokens (4096 * 12 bytes), 20074 bytes strings
3343 strings (40625 bytes), 2291 de-duplicated (21604 bytes), 1053 trie nodes used
GROUP 6 /usr/lib/udev/rules.d/50-udev-default.rules:40
LINK 'disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1' /usr/lib/udev/rules.d/60-persistent-storage.rules:43
LINK 'disk/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0-part1' /usr/lib/udev/rules.d/60-persistent-storage.rules:57
IMPORT builtin 'blkid' /usr/lib/udev/rules.d/60-persistent-storage.rules:70
probe /dev/sdb1 raid offset=0
LINK 'disk/by-uuid/1DFC8855338F968C' /usr/lib/udev/rules.d/60-persistent-storage.rules:76
LINK 'disk/by-label/Hacksign\x27s\x20Documents\x20Disk' /usr/lib/udev/rules.d/60-persistent-storage.rules:77
IMPORT 'udisks-part-id /dev/sdb1' /usr/lib/udev/rules.d/80-udisks.rules:84
starting 'udisks-part-id /dev/sdb1'
'udisks-part-id /dev/sdb1' [2444] exit with return code 0
handling device node '/dev/sdb1', devnum=b8:17, mode=0660, uid=0, gid=6
preserve permissions /dev/sdb1, 060660, uid=0, gid=6
preserve already existing symlink '/dev/block/8:17' to '../sdb1'
found 'b8:17' claiming '/run/udev/links/\x2fdisk\x2fby-id\x2fusb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1'
creating link '/dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1' to '/dev/sdb1'
preserve already existing symlink '/dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1' to '../../sdb1'
found 'b8:17' claiming '/run/udev/links/\x2fdisk\x2fby-label\x2fHacksign\x5cx27s\x5cx20Documents\x5cx20Disk'
creating link '/dev/disk/by-label/Hacksign\x27s\x20Documents\x20Disk' to '/dev/sdb1'
preserve already existing symlink '/dev/disk/by-label/Hacksign\x27s\x20Documents\x20Disk' to '../../sdb1'
found 'b8:17' claiming '/run/udev/links/\x2fdisk\x2fby-path\x2fpci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0-part1'
creating link '/dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0-part1' to '/dev/sdb1'
preserve already existing symlink '/dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0-part1' to '../../sdb1'
found 'b8:17' claiming '/run/udev/links/\x2fdisk\x2fby-uuid\x2f1DFC8855338F968C'
creating link '/dev/disk/by-uuid/1DFC8855338F968C' to '/dev/sdb1'
preserve already existing symlink '/dev/disk/by-uuid/1DFC8855338F968C' to '../../sdb1'
ACTION=add
DEVLINKS=/dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1 /dev/disk/by-label/Hacksign\x27s\x20Documents\x20Disk /dev/disk/by-path/pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0-part1 /dev/disk/by-uuid/1DFC8855338F968C
DEVNAME=/dev/sdb1
DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0/block/sdb/sdb1
DEVTYPE=partition
ID_BUS=usb
ID_DRIVE_FLASH_SD=1
ID_FS_LABEL=Hacksign_s_Documents_Disk
ID_FS_LABEL_ENC=Hacksign\x27s\x20Documents\x20Disk
ID_FS_TYPE=ntfs
ID_FS_USAGE=filesystem
ID_FS_UUID=1DFC8855338F968C
ID_FS_UUID_ENC=1DFC8855338F968C
ID_INSTANCE=0:0
ID_MODEL=USB_SD_Reader
ID_MODEL_ENC=USB\x20\x20SD\x20Reader\x20\x20
ID_MODEL_ID=6200
ID_PART_ENTRY_DISK=8:16
ID_PART_ENTRY_NUMBER=1
ID_PART_ENTRY_OFFSET=63
ID_PART_ENTRY_SCHEME=dos
ID_PART_ENTRY_SIZE=15685569
ID_PART_ENTRY_TYPE=0x87
ID_PART_TABLE_TYPE=dos
ID_PATH=pci-0000:00:1a.0-usb-0:1.1:1.0-scsi-0:0:0:0
ID_PATH_TAG=pci-0000_00_1a_0-usb-0_1_1_1_0-scsi-0_0_0_0
ID_REVISION=1.00
ID_SERIAL=Generic_USB_SD_Reader_12345678901234567890-0:0
ID_SERIAL_SHORT=12345678901234567890
ID_TYPE=disk
ID_USB_DRIVER=usb-storage
ID_USB_INTERFACES=:080650:
ID_USB_INTERFACE_NUM=00
ID_VENDOR=Generic
ID_VENDOR_ENC=Generic\x20
ID_VENDOR_ID=090c
MAJOR=8
MINOR=17
SUBSYSTEM=block
TAGS=:systemd:
UDISKS_PARTITION=1
UDISKS_PARTITION_ALIGNMENT_OFFSET=0
UDISKS_PARTITION_NUMBER=1
UDISKS_PARTITION_OFFSET=32256
UDISKS_PARTITION_SCHEME=mbr
UDISKS_PARTITION_SIZE=8031011328
UDISKS_PARTITION_SLAVE=/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/host8/target8:0:0/8:0:0:0/block/sdb
UDISKS_PARTITION_TYPE=0x87
UDISKS_PRESENTATION_NOPOLICY=0
USEC_INITIALIZED=7735553
It seems that 100-usb.rules doesn't be executed~
Am I anywhere wrong ?
Last edited by Hacksign (2013-04-09 02:15:13)Pasted another example of my usb sd card reader.
there is no test_X symbol link in /dev/ directory after i un-pluged sd card reader and re-pluged it in on my computer
oh, I use systemd of course:
XSign rules.d # cat /boot/grub/menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/disk/by-label/root resume=/dev/sda7 ro vga=0x361 init=/usr/lib/systemd/systemd quiet
initrd /boot/kernel26.img
Hacksign wrote:
brebs wrote:You're mixing the hierarchy levels (i.e. subsystems) - can't do that. See working example.
no, I dont think I mixed te hierarchy level.
SUBSYSTEM=="input" matched '/devices/platform/i8042/serio1/serio2/input/input24/mouse2'
and
SUBSYSTEMS=="usb", ATTR{idVendor}=="1532",
matched its parent
and I'm so sorry that I pasted a wrong device tree...
sorry -
[SOLVED] udev rule no longer working
I have a udev rule set up to automatically mount an ext4 filesystem when I plug a certain thumb drive in. It was working fine until yesterday (probably due to updates). Here is the rule, in file /etc/udev/rules.d/99-gfk.rules:
KERNEL=="sd?2", SUBSYSTEM=="block", ATTRS{idVendor}=="0930", ATTRS{idProduct}=="6545", ATTRS{serial}=="1C6F654E4041ED601910053F", SYMLINK+="gfshare"
ACTION=="add", KERNEL=="sd?2", SUBSYSTEM=="block", ATTRS{idVendor}=="0930", ATTRS{idProduct}=="6545", ATTRS{serial}=="1C6F654E4041ED601910053F", RUN+="/bin/mkdir /media/gfshare"
ACTION=="add", KERNEL=="sd?2", SUBSYSTEM=="block", ATTRS{idVendor}=="0930", ATTRS{idProduct}=="6545", ATTRS{serial}=="1C6F654E4041ED601910053F", RUN+="/bin/mount -t ext4 -o ro,nosuid,nodev,noexec,noatime /dev/gfshare /media/gfshare"
The symlink and the mkdir command are both working fine, but the mount command is not being run for some reason. If I manually run the mount command it works fine. Some possibly helpful output:
# pacman -Qo $(which udevadm)
/usr/bin/udevadm is owned by systemd 212-1
# dmesg |tail -16
[26458.120628] usb 7-1.3: new high-speed USB device number 7 using ehci-pci
[26458.223059] usb-storage 7-1.3:1.0: USB Mass Storage device detected
[26458.223825] scsi10 : usb-storage 7-1.3:1.0
[26459.311607] scsi 10:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 4
[26460.834081] sd 10:0:0:0: [sdd] 15240576 512-byte logical blocks: (7.80 GB/7.26 GiB)
[26460.834931] sd 10:0:0:0: [sdd] Write Protect is off
[26460.834935] sd 10:0:0:0: [sdd] Mode Sense: 23 00 00 00
[26460.835617] sd 10:0:0:0: [sdd] No Caching mode page found
[26460.835621] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[26460.839455] sd 10:0:0:0: [sdd] No Caching mode page found
[26460.839460] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[26460.860579] sdd: sdd1 sdd2
[26460.867111] sd 10:0:0:0: [sdd] No Caching mode page found
[26460.867115] sd 10:0:0:0: [sdd] Assuming drive cache: write through
[26460.867118] sd 10:0:0:0: [sdd] Attached SCSI removable disk
[26461.041982] EXT4-fs (sdd2): mounted filesystem with ordered data mode. Opts: (null)
# udevadm test /sys/bus/usb/devices/7-1.3
calling: test
version 212
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
load module index
timestamp of '/etc/systemd/network' changed
timestamp of '/usr/lib/systemd/network' changed
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context
timestamp of '/etc/udev/rules.d' changed
Skipping overridden file: /usr/lib/udev/rules.d/80-net-setup-link.rules.
read rules file: /usr/lib/udev/rules.d/10-dm.rules
read rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules
read rules file: /etc/udev/rules.d/12-android.rules
read rules file: /usr/lib/udev/rules.d/13-dm-disk.rules
read rules file: /usr/lib/udev/rules.d/40-hpet-permissions.rules
read rules file: /usr/lib/udev/rules.d/40-usb-media-players.rules
read rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /usr/lib/udev/rules.d/50-firmware.rules
read rules file: /usr/lib/udev/rules.d/50-udev-default.rules
read rules file: /usr/lib/udev/rules.d/51-android.rules
read rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules
read rules file: /usr/lib/udev/rules.d/60-drm.rules
read rules file: /usr/lib/udev/rules.d/60-keyboard.rules
read rules file: /usr/lib/udev/rules.d/60-pcmcia.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-input.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-serial.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /usr/lib/udev/rules.d/60-vboxdrv.rules
read rules file: /usr/lib/udev/rules.d/61-accelerometer.rules
read rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules
read rules file: /usr/lib/udev/rules.d/64-btrfs.rules
read rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules
read rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules
read rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules
read rules file: /usr/lib/udev/rules.d/69-libmtp.rules
read rules file: /usr/lib/udev/rules.d/70-infrared.rules
read rules file: /usr/lib/udev/rules.d/70-power-switch.rules
read rules file: /usr/lib/udev/rules.d/70-uaccess.rules
read rules file: /usr/lib/udev/rules.d/71-seat.rules
read rules file: /usr/lib/udev/rules.d/73-seat-late.rules
read rules file: /usr/lib/udev/rules.d/75-net-description.rules
read rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules
read rules file: /usr/lib/udev/rules.d/75-tty-description.rules
read rules file: /usr/lib/udev/rules.d/78-sound-card.rules
read rules file: /usr/lib/udev/rules.d/80-drivers.rules
read rules file: /etc/udev/rules.d/80-net-setup-link.rules
read rules file: /usr/lib/udev/rules.d/80-udisks.rules
read rules file: /usr/lib/udev/rules.d/80-udisks2.rules
read rules file: /usr/lib/udev/rules.d/85-usbmuxd.rules
read rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules
read rules file: /usr/lib/udev/rules.d/95-cd-devices.rules
read rules file: /usr/lib/udev/rules.d/95-dm-notify.rules
read rules file: /usr/lib/udev/rules.d/95-udev-late.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-dell.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-gateway.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-ibm.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-lenovo.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-toshiba.rules
read rules file: /usr/lib/udev/rules.d/95-upower-csr.rules
read rules file: /usr/lib/udev/rules.d/95-upower-hid.rules
read rules file: /usr/lib/udev/rules.d/95-upower-wup.rules
read rules file: /etc/udev/rules.d/99-gfk.rules
read rules file: /usr/lib/udev/rules.d/99-systemd.rules
read rules file: /usr/lib/udev/rules.d/kino.rules
rules contain 98304 bytes tokens (8192 * 12 bytes), 22360 bytes strings
10092 strings (88570 bytes), 8317 de-duplicated (67986 bytes), 1776 trie nodes used
IMPORT builtin 'usb_id' /usr/lib/udev/rules.d/50-udev-default.rules:9
IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:9
MODE 0664 /usr/lib/udev/rules.d/50-udev-default.rules:37
GROUP 1002 /usr/lib/udev/rules.d/51-android.rules:387
MODE 0660 /usr/lib/udev/rules.d/51-android.rules:387
RUN '/usr/share/virtualbox/VBoxCreateUSBNode.sh $major $minor $attr{bDeviceClass} vboxusers' /usr/lib/udev/rules.d/60-vboxdrv.rules:6
PROGRAM '/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3 7 7' /usr/lib/udev/rules.d/69-libmtp.rules:1204
starting '/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3 7 7'
'/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3 7 7'(out) '0'
'/usr/lib/udev/mtp-probe /sys/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3 7 7' [24644] exit with return code 0
IMPORT builtin 'path_id' /usr/lib/udev/rules.d/71-seat.rules:43
RUN 'uaccess' /usr/lib/udev/rules.d/73-seat-late.rules:15
handling device node '/dev/bus/usb/007/007', devnum=c189:774, mode=0660, uid=0, gid=1002
preserve permissions /dev/bus/usb/007/007, 020660, uid=0, gid=1002
preserve already existing symlink '/dev/char/189:774' to '../bus/usb/007/007'
ACTION=add
BUSNUM=007
DEVNAME=/dev/bus/usb/007/007
DEVNUM=007
DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3
DEVTYPE=usb_device
DRIVER=usb
ID_BUS=usb
ID_DRIVE_THUMB=1
ID_FOR_SEAT=usb-pci-0000_00_1a_7-usb-0_1_3
ID_MODEL=DataTraveler_2.0
ID_MODEL_ENC=DataTraveler\x202.0
ID_MODEL_FROM_DATABASE=Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
ID_MODEL_ID=6545
ID_PATH=pci-0000:00:1a.7-usb-0:1.3
ID_PATH_TAG=pci-0000_00_1a_7-usb-0_1_3
ID_REVISION=0100
ID_SERIAL=Kingston_DataTraveler_2.0_1C6F654E4041ED601910053F
ID_SERIAL_SHORT=1C6F654E4041ED601910053F
ID_USB_INTERFACES=:080650:
ID_VENDOR=Kingston
ID_VENDOR_ENC=Kingston
ID_VENDOR_FROM_DATABASE=Toshiba Corp.
ID_VENDOR_ID=0930
MAJOR=189
MINOR=774
PRODUCT=930/6545/100
SUBSYSTEM=usb
TAGS=:seat:uaccess:
TYPE=0/0/0
USEC_INITIALIZED=26452326568
adb_user=yes
run: '/usr/share/virtualbox/VBoxCreateUSBNode.sh 189 774 00 vboxusers'
run: 'uaccess'
unload module index
Unloaded link configuration context
# udevadm test /sys/bus/usb/devices/7-1.3:1.0
calling: test
version 212
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.
load module index
timestamp of '/etc/systemd/network' changed
timestamp of '/usr/lib/systemd/network' changed
Parsed configuration file /usr/lib/systemd/network/99-default.link
Created link configuration context
timestamp of '/etc/udev/rules.d' changed
Skipping overridden file: /usr/lib/udev/rules.d/80-net-setup-link.rules.
read rules file: /usr/lib/udev/rules.d/10-dm.rules
read rules file: /usr/lib/udev/rules.d/11-dm-lvm.rules
read rules file: /etc/udev/rules.d/12-android.rules
read rules file: /usr/lib/udev/rules.d/13-dm-disk.rules
read rules file: /usr/lib/udev/rules.d/40-hpet-permissions.rules
read rules file: /usr/lib/udev/rules.d/40-usb-media-players.rules
read rules file: /usr/lib/udev/rules.d/42-usb-hid-pm.rules
read rules file: /usr/lib/udev/rules.d/50-firmware.rules
read rules file: /usr/lib/udev/rules.d/50-udev-default.rules
read rules file: /usr/lib/udev/rules.d/51-android.rules
read rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules
read rules file: /usr/lib/udev/rules.d/60-drm.rules
read rules file: /usr/lib/udev/rules.d/60-keyboard.rules
read rules file: /usr/lib/udev/rules.d/60-pcmcia.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-input.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-serial.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules
read rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules
read rules file: /usr/lib/udev/rules.d/60-vboxdrv.rules
read rules file: /usr/lib/udev/rules.d/61-accelerometer.rules
read rules file: /usr/lib/udev/rules.d/63-md-raid-arrays.rules
read rules file: /usr/lib/udev/rules.d/64-btrfs.rules
read rules file: /usr/lib/udev/rules.d/64-md-raid-assembly.rules
read rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules
read rules file: /usr/lib/udev/rules.d/69-dm-lvm-metad.rules
read rules file: /usr/lib/udev/rules.d/69-libmtp.rules
read rules file: /usr/lib/udev/rules.d/70-infrared.rules
read rules file: /usr/lib/udev/rules.d/70-power-switch.rules
read rules file: /usr/lib/udev/rules.d/70-uaccess.rules
read rules file: /usr/lib/udev/rules.d/71-seat.rules
read rules file: /usr/lib/udev/rules.d/73-seat-late.rules
read rules file: /usr/lib/udev/rules.d/75-net-description.rules
read rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules
read rules file: /usr/lib/udev/rules.d/75-tty-description.rules
read rules file: /usr/lib/udev/rules.d/78-sound-card.rules
read rules file: /usr/lib/udev/rules.d/80-drivers.rules
read rules file: /etc/udev/rules.d/80-net-setup-link.rules
read rules file: /usr/lib/udev/rules.d/80-udisks.rules
read rules file: /usr/lib/udev/rules.d/80-udisks2.rules
read rules file: /usr/lib/udev/rules.d/85-usbmuxd.rules
read rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules
read rules file: /usr/lib/udev/rules.d/95-cd-devices.rules
read rules file: /usr/lib/udev/rules.d/95-dm-notify.rules
read rules file: /usr/lib/udev/rules.d/95-udev-late.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-dell.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-gateway.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-ibm.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-lenovo.rules
read rules file: /usr/lib/udev/rules.d/95-upower-battery-recall-toshiba.rules
read rules file: /usr/lib/udev/rules.d/95-upower-csr.rules
read rules file: /usr/lib/udev/rules.d/95-upower-hid.rules
read rules file: /usr/lib/udev/rules.d/95-upower-wup.rules
read rules file: /etc/udev/rules.d/99-gfk.rules
read rules file: /usr/lib/udev/rules.d/99-systemd.rules
read rules file: /usr/lib/udev/rules.d/kino.rules
rules contain 98304 bytes tokens (8192 * 12 bytes), 22360 bytes strings
10092 strings (88570 bytes), 8317 de-duplicated (67986 bytes), 1776 trie nodes used
IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:11
RUN 'kmod load $env{MODALIAS}' /usr/lib/udev/rules.d/80-drivers.rules:5
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:1a.7/usb7/7-1/7-1.3/7-1.3:1.0
DEVTYPE=usb_interface
DRIVER=usb-storage
ID_MODEL_FROM_DATABASE=Kingston DataTraveler 102 Flash Drive / HEMA Flash Drive 2 GB / PNY Attache 4GB Stick
ID_VENDOR_FROM_DATABASE=Toshiba Corp.
INTERFACE=8/6/80
MODALIAS=usb:v0930p6545d0100dc00dsc00dp00ic08isc06ip50in00
PRODUCT=930/6545/100
SUBSYSTEM=usb
TYPE=0/0/0
USEC_INITIALIZED=452326811
run: 'kmod load usb:v0930p6545d0100dc00dsc00dp00ic08isc06ip50in00'
unload module index
Unloaded link configuration context
Last edited by bentglasstube (2014-04-03 20:51:36)I see. That is somewhat aggravating but I will find another way to achieve what I wanted I suppose.
Thank you. Should I mark this is solved or unsolvable or something? Sorry, I'm new to posting on these forums.
Edit: I was able to achieve what I wanted with udevil as recommended by the wiki.
Last edited by bentglasstube (2014-04-03 20:55:45) -
[SOLVED] How to automatically mount USB drives with custom mount point
edit:
Original title was : 'Unable to mount USB disk via /etc/rc.local', but got changed since the /etc/rc.local problem isn't relevant for me anymore.
Hello,
Since I am new to this forum, I'll start off with this :
Thanks to archlinux, its founder and all its contributors, cause this is the operating system (flavour) that annoys me the least.
The root problem :
I want to automount USB storage devices to other places than /media/ and without the need for programs that depend on gnome and the like. As I tried some stuff with hald and such, I didn't really get to a nice and easy to configure solution. Any hints in that direction are always welcome.
For now, automount of known USB storages devices during boot, will do.
So the things I tried and didnt work :
1.
Provide the disk info to /etc/fstab (via the disks UUID and 'auto' filesystem)
Add 'mount /mountpoint' to /etc/rc.local
Result : the mount command in rc.local says '... specify filesystem'
However, after boot, running /etc/rc.local mounts the USB disks correctly.
2.
Provide the disk info to /etc/fstab (via the disks UUID and the correct filesystem)
Add 'mount /mountpoint' to /etc/rc.local
Result : pc doesn't get through boot process and gives me the 'ctrl-d to reboot or root passwd for maintenance'
3.
Provide no disk info in /etc/fstab
Add the full mount line to /etc/rc.local (mount -t fs /dev/disks/by-uuid/MyUUID /MyMountpoint )
Result : don't remember the output of the mount execution, but well, it didn't mount
However, after boot, running /etc/rc.local mounts the USB disks correctly.
Is there something that isn't loaded at the time of rc.local execution that I need for mounting of USB devices ? Or why else is this failing ?
Regards,
BasiK
Last edited by BasiK (2009-08-28 07:22:50)Thanks for the hint hunterthomson, but the pc I will be using it on, is an own-built HTPC/home file server, so there is no way I want to use a graphical file manager to get the usb disks mounted.
I tried to figure out a little about udev rules, and I got to do what I wanted to do, so thx for pointing me in that direction Mr.Elendig.
Btw, I am indeed also using auto-sleep/park disks, but this udev way works perfectly.
I added two rules files to /etc/udev/rules.d/ :
The first for a known usb disk (with its volume uuid), with a named mountpoint under my media dir /symbiosis/ :
[basik@plox ~]$ cat /etc/udev/rules.d/80-usb-utopia.rules
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",SYMLINK+="usb-%n", GROUP="storage", NAME="%k"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a",RUN+="/bin/mkdir -p /symbiosis/utopia"
ACTION=="add", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /symbiosis/utopia", OPTIONS="last_rule"
ACTION=="remove", KERNEL=="sd[b-z][0-9]", ENV{ID_FS_UUID}=="a59332c2-07ba-4c52-afb5-20e361bdf71a", RUN+="/bin/umount -l /symbiosis/utopia", OPTIONS="last_rule"
The second for unknown usb disks, to mount under the same dir. This is simply taken from the archwiki http://wiki.archlinux.org/index.php/Ude … .26_Tricks
Make sure these rules are executed after the ones for specific usb disks.
[basik@plox ~]$ cat /etc/udev/rules.d/usb-disks.rules
KERNEL=="sd[a-z]", NAME="%k", SYMLINK+="usb%m", GROUP="storage", OPTIONS="last_rule"
ACTION=="add", KERNEL=="sd[a-z][0-9]", SYMLINK+="usb%n", GROUP="storage", NAME="%k"
ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mkdir -p /symbiosis/usb%n"
ACTION=="add", KERNEL=="sd[a-z][0-9]", RUN+="/bin/mount -t auto -o rw,noauto,sync,dirsync,noexec,nodev,noatime /dev/%k /symbiosis/usb%n", OPTIONS="last_rule"
ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/umount -l /symbiosis/usb%n"
ACTION=="remove", KERNEL=="sd[a-z][0-9]", RUN+="/bin/rmdir /symbiosis/usb%n", OPTIONS="last_rule"
These may not be the nicest looking udev rules, but it works for what I wanted to do with it. -
Diadem runtime error while executing command "SchemeMeasStar"
Hello:
I used DIAdem9.0 and DAQCard6062E to acquire 16 channel data. I collected 65536 data for every channel. Whereas After the data acquisition stopped, an Error Message would poped up, but the data is still stored in data portal. the Error is like follows:
-Error- DIAdem
Runtime Error While Executing Command "SchemeMeasStar"
Error Type: UNKNOWN
Error Address:00001720
Module Name:GFSBase.Dll
Would you like to give me some suggestions?
thanks very much
jingDear MarcusP:
Thank you very much.
your solution really works. The attached is the detailed information of the problem. Would you like to tell me more about the prolem and how to solve the problem thoroughly.
Thank you very much.
yours
Jing
Attachments:
DIAdem_Error.doc 305 KB -
I'm new in Sun, i just recieved a sun v100 server, i already connected the server to a workstation (using the hyperterminal tool) and it seemmed to be fine... however when the LOM> prompt appears and i try to introduce various commands but it does nothing.
LOMlite starting up.
CPU type: H8/3437S, mode 3
Ram-test: 2048 bytes OK
Initialising i2c bus: OK
Searching for EEPROMs: 50(cfg)
I2c eeprom @50: OK
i2c bus speed code 01... OK
Probing for lm80s: none
Probing for lm75s: 48
Initialising lm75 @48: OK
System functions: PSUs fans breakers rails gpio temps host CLI ebus clock
LOMlite console
lom>
LOM event: +0h0m0s LOM booted
lom>poweron
(it does nothing...)
also when i turn the server on with the on/standby switch it also seems to be starting fine, but again when the ok prompt is displayed i try to execute commands and it does again nothing.
Firmware CORE Sun Microsystems, Inc.
@(#) core 1.0.18 2002/05/23 18:22
Software Power ON
Verifying NVRAM...Done
Bootmode is 0
MCR0 = 57b2ce06
MCR1 = 80008000
MCR2 = cff0ffff
MCR3 = b00003ff
Ecache Size = 512 KB
Clearing E$ Tags Done
Clearing I/D TLBs Done
Probing memory
Done
MEMBASE=0xc0000000
MEMSIZE=0x20000000
Clearing memory...Done
Turning ON MMUs Done
Copy ROM to RAM (154720 bytes) Done
Orig PC=0x1fff0007edc New PC=0xf0f07f34
Processor Speed=648MHz
Looking for Dropin FVM ... found
Decompressing Client Done
Transferring control to Client...
Reset Control: BXIR:0 BPOR:0 SXIR:0 SPOR:1 POR:0
Probing upa at 1f,0 pci
Probing upa at 0,0 SUNW,UltraSPARC-IIe (512 Kb)
Loading Support Packages: kbd-translator
Loading onboard drivers:
Probing /pci@1f,0 Device 7 isa dma rtc power SUNW,lomh serial serial
flashprom
Probing /pci@1f,0 Device 3 pmu i2c temperature dimm dimm dimm dimm
i2c-nvram idprom motherboard-fru ppm beep fan-control
lomp
Probing Memory Bank #0 512 Megabytes
Probing Memory Bank #1 512 Megabytes
Probing Memory Bank #2 512 Megabytes
Probing Memory Bank #3 512 Megabytes
Probing /pci@1f,0 Device 7
Probing /pci@1f,0 Device 3
Probing /pci@1f,0 Device c ethernet
Probing /pci@1f,0 Device 5 ethernet
Probing /pci@1f,0 Device a usb
Probing /pci@1f,0 Device d ide disk cdrom
todm5819 Sun Fire V100 (UltraSPARC-IIe 648MHz), No Keyboard
OpenBoot 4.0, 2048 MB memory installed, Serial #53320536.
Ethernet address 0:3:ba:2d:9b:58, Host ID: 832d9b58.
Environment monitoring: disabled
ok boot
(again... did nothing)
i think is a hyperterminal configuration problem but please advide.
thanks in advance.I think I took the wrong path to validate the New Zealand specific tax number. Is it possible to set some rules in PRST1_005 in table T005.
If this is possible then please pass me the steps description.
Thanks.
Naz -
Using AppleScript "execute" command in Acrobat
Acrobat's scripting dictionary has a cryptic description of an "execute" command that is supposed to execute a menu item "as if a user clicked it".
No information is given as to how to identify the desired menu command except "reference". Huh? Is there documentation or a tutorial on this anywhere?
Related question, how can AppleScript identify auxiliary windows such as the Document Properties window and its various button bar items and other fields?
Here's one simple thing I'm trying to accomplish: I'm using System Events to script some items like keywords in the Document Properties window. Sometimes it takes several seconds for a document to open. Without putting in huge wait loops, I'd like to execute the menu item "File: Properties..." and then wait for the window to open using a loop like this:
repeat until exists <some way to identify the Document Properties window>
end repeat
Any hope of doing stuff like this? I already tore out enough hair trying to get AppleScript's "do script" command to work (only lately having discovered that the script file apparently must be plain text, no Unicode).The Macintosh keyboard does not have a true "Enter" key any more - not on the MacBook Pro or the iBooks. Modifier keys do not seem to work either. I've turned on the System Prefs > Keyboard & made it appear in the top Menu Bar. From this menu choose "Show Keyboard Viewer" to see how keys + Return are displayed. Only the Function key changes the Return key. Function + Delete is a forward delete. But Function + Return is just another Return. So any highlighted text is deleted! Command + Return stays on the same line and selected text remains. I will try KeyRemap4MacBook utility then consider buying a USB numeric keypad. Urggh.
-
Simplified version: Execute command in WinPE after server image deployment but before WinPE reboots.
I have a custom ISO with a boot.wim and install.wim for deploying Windows Server to our environment. Our environment does not allow DHCP and we have no static IPs available at build time so this will all be done with no internet connection during all phases
of deployment.
We have a custom HTA form that generates an XML file based on user input and stores it on the RAMDisk during WinPE. How can we move this XML file from the RAMDisk to the deployed Windows Server image?
Thanks in advance, TimI believe you should be able to do this during the offlineServicing configuration pass. You would just need to add into your answer file a command or script to copy from the XML file over to the newly created C:\ drive.
I don't have System Image Manager installed on the computer I'm using but if I recall there is a spot during the offlineServicing pass to execute custom commands. You would just add your script path there, the WinPE system drive letter is
X:\ , and I think the target drive letter Windows is installed to might change depending on how many devices you have hooked up so do a test install and hit SHIFT-F10 , from there you can run diskpart > list volume to see where the new Windows
install is located.
Another alternative could be using a USB drive as your install media, then you can run a script during offlineServicing to copy that XML over to the USB drive. -
Web to execute commands in other machines
Hi,
I have to do a web page to execute commands (exe, bat) situated in different machines.
I need to see the results in my web page, and I would prefer to have my distributed application deployed in application servers instead of have to run jvm in the machines.
Can you give me any concrete idea? And web sites or books to begin with this?
Thank you very much by your help.
J.First of all, thanks a lot by your help.
I will try explain better (sorry about my english).Don't worry about that!
There are several servers and clients that I want to
monitor and I want to execute some operations over
them, like for example reboot, reboot the database,
creating some specific things, whatever, and these
operations are impletemented in every machine (they
use to be .exe and .bat applications)So far, so good
Now I want to do and interface to do all these
operations from it and to monitor the whole system
(if the system is running correctly in every
machine), I want to have a common interface for the
whole system and I want to access to it from
everywhere (if it is possible).
Everywhere?? Are you sure? Sounds extremely insecure, to me!
In terms of security, the application will need a
login and whatever it is neccesary.
I want to go in the right direction :)
Thank you!Ok, you've actually got several problems to solve here. You need a single monitoring app that runs on these servers, which allows you to connect to it from over a network, so that you can request the logs, or issue the admin commands. Then you need a client to connect to that piece of software, and since you want to do this via a web browser, that's probably best to be a servlet. How I'd tackle this, I'd first write the server software that does the listening, and have it pretend to send logs, reboot machines and what-not. Then I'd write the servlet and the web pages to control and monitor it. Then I'd go about writing the hooks between your shiny server and the various commands you need to run. You could do them in any order you like, really. The trick is, though - and this applies to all software projects - to tackle them one by one. Almost all problems can be decomposed into smaller, more manageable chunks. Do that, and nothing will be so scary again -
Hi everyone,
When I open a VI file, I see an additional title "Executing commands" before the title of the VI in the windows title bar. However, not all of the files show the same thing. What does it mean? How to remove this?
thx
Solved!
Go to Solution.Hai,
If you would like to change the title bar heading got to File>>VI Properties>>Window appearence>>
You have something called "Window title". When the text is changed there it reflects in the window title bar.
Hope this helps. Revert back for any queries.
With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved. -
Hi All,
I'm using diadem from .net Program. While on the run I'm getting the following error.
Error While executing "" Command
Error type ACCESS VIOLATION
Error Address: 0006898E
Module name:gfsdesk.DLL
Anyone have any idea why this is happening?
regards,
SwaroopHi Swaroop,
It would be helpful to better understand what your code really does. The information that you called DIAdem from your enviroenment is not yet sufficient to understand what the problem might be.
Andreas -
Just installed Lion and the Magic TrackPad and I am having a problem with one click commands. I have to hit the pad fairly hard with one finger to get it to accept the command. Is this normal, is there another way that I am suppose to execute commands?
No you just need to turn on Tap to Click. Go into System Preferences - Trackpad and click the Point to Click tab and select the first box which will say Tap to Click and you should be in business.
-
How to execute command(program) from external file in Oracle SQL developer
Hi,
Does anyone know, Oracle SQL developer version 1.0.0.14.67 got any function that can execute command from an external file?
Example, i have 100 insert SQL inside a text file,
and i want to use Oracle SQL developer to execute it. How do i read from my text file? Thanks a lots.If you're new to Oracle, do yourself and us a favour: read some tutorials and manuals. What sqldev's worth, better download the latest version (1.1.2), lots of fixes and enhancements...
Now for the big popper: to run an external file: @file
Best of luck,
K. -
Problem in using JDBC Execute commands(Update & Delete Only) with af:Table
HI Everyone,
I have one issue with Updating and Deleting Row Data using JDBC Execute commands.
Suppose In My Application i have two pages, in Page 1 I have Two Command Buttons(Delete and Save) and One Input TextBox to write the String to be stored in the Database. and Page 2 where the result Table is shown and table is binded with a ViewObject, Now When User Types some String in InTB and click Save then By Programmatically I'm searching, that string is already present in database or not, if it is already exist then Save button converts in Update button and instead of inserting it allows user to Update the String already exist in database.
Everything is working fine but the problem comes when i put those all buttons on the same page where result table is present.After putting all things on the same page and When i click save button to insert new String it is Successfully inserting but when any of other action is performed like updating or Deleting the existing one.. then my application just hanged and then nothing I able to do.
Please Help me to understand this problem and give me the solution for this..
Thanks
Fizzz...Hi frank,
Thanks to reply me...
I'm refreshing table's iterator on each command button's action to reflect the changed result... and i'm sorry i mentioned two pages in my project.. actually these are two forms in the same page..which conditionally changed its renderer properties.. its working fine when only one form is renderred and the otherside when both are rendered then it is not working.
Hope this change will help you to understand the problem.. if something else you are looking for then please tell me..
Thanks
Fizzz... -
ERROR: executing command /usr/openv/netbackup/bin/bpbackup
Hi,
Online backup in one of our integration systems is failing with the followin reasons
Status = 58 : can't connect to client
Status = 54 : timed out connecting to client
The complete work log is
[843860.00] Backup started 08/29/2007 07:21:27
[843860.00]
[983220.02] Backup started 08/29/2007 07:21:27
[983220.02]
[880690.03] Backup started 08/29/2007 07:21:27
[880690.03]
[1085482.01] Backup started 08/29/2007 07:21:27
[1085482.01]
[843860.00] 07:22:07 Initiating backup
[983220.02] 07:22:02 Initiating backup
[880690.03] 07:22:12 Initiating backup
[983220.02] 07:22:34 INF - Waiting for mount of media id MY0015 on server spnb6master.apac.gdc for writing.
[843860.00] 07:22:49 INF - Processing /oracle/OMI/sapdata1/undo_1/undo.data1
[843860.00] 07:22:49 /
[843860.00] 07:22:49 /oracle/
[843860.00] 07:22:49 /oracle/OMI/
[843860.00] 07:22:49 /oracle/OMI/sapdata1/
[843860.00] 07:22:49 /oracle/OMI/sapdata1/undo_1/
[880690.03] 07:24:35 INF - Processing /oracle/OMI/sapdata3/omi_5/omi.data5
[880690.03] 07:24:35 /
[880690.03] 07:24:35 /oracle/
[880690.03] 07:24:35 /oracle/OMI/
[880690.03] 07:24:35 /oracle/OMI/sapdata3/
[880690.03] 07:24:35 /oracle/OMI/sapdata3/omi_5/
[983220.02] 07:24:55 INF - Beginning backup on server spnb6master.apac.gdc of client ipcby104b1.apac.gdc.
ERROR: executing command /usr/openv/netbackup/bin/bpbackup -w -t 17 -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.1.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
Status = 58 : can't connect to client
[1085482.01] EXIT STATUS 58: can't connect to client
ERR - job (1085482) failed status (58)
[880690.03] 07:25:38 /oracle/OMI/sapdata3/omi_5/omi.data5
[880690.03] 07:25:38 INF - Processing /oracle/OMI/sapdata3/omi640_11/omi640.data11
[880690.03] 07:25:38 /oracle/OMI/sapdata3/omi640_11/
[983220.02] 07:26:25 INF - Server status = 54
[880690.03] 07:26:41 /oracle/OMI/sapdata3/omi640_11/omi640.data11
[880690.03] 07:26:41 INF - Processing /oracle/OMI/sapdata4/omi_6/omi.data6
[880690.03] 07:26:41 /oracle/OMI/sapdata4/
[880690.03] 07:26:41 /oracle/OMI/sapdata4/omi_6/
[880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_6/omi.data6
[880690.03] 07:27:44 INF - Processing /oracle/OMI/sapdata4/omi_9/omi.data9
[880690.03] 07:27:44 /oracle/OMI/sapdata4/omi_9/
ERROR: executing command /usr/openv/netbackup/bin/bpbackup -w -t 17 -S spnb6masterb1.apac.gdc -c APAC_SAP_DC1 -s U_xx_1m -L /oracle/GIP/sapbackup/backint/.backint.log.2.1188372087.561352 -k ".bdwaniws.lst561352" -f /oracle/GIP/sapbackup/backint/.backint
Status = 54 : timed out connecting to client
[983220.02] EXIT STATUS 54: timed out connecting to client
ERR - job (983220) failed status (54)
[843860.00] 07:28:28 /oracle/OMI/sapdata1/undo_1/undo.data1
[843860.00] 07:28:28 INF - Processing /oracle/OMI/sapdata1/omi640_4/omi640.data4
[843860.00] 07:28:28 /oracle/OMI/sapdata1/omi640_4/
[880690.03] 07:28:40 /oracle/OMI/sapdata4/omi_9/omi.data9
[880690.03] 07:28:40 INF - Processing /oracle/OMI/sapdata1/omi640_3/omi640.data3
[880690.03] 07:28:40 /oracle/OMI/sapdata1/
[880690.03] 07:28:40 /oracle/OMI/sapdata1/omi640_3/
[843860.00] 07:29:32 /oracle/OMI/sapdata1/omi640_4/omi640.data4
[843860.00] 07:29:32 INF - Processing /oracle/OMI/sapdata2/omi640_10/omi640.data10
[843860.00] 07:29:32 /oracle/OMI/sapdata2/
[843860.00] 07:29:32 /oracle/OMI/sapdata2/omi640_10/
[880690.03] 07:29:47 /oracle/OMI/sapdata1/omi640_3/omi640.data3
[880690.03] 07:29:47 INF - Processing /oracle/OMI/sapdata4/omi640_13/omi640.data13
[880690.03] 07:29:47 /oracle/OMI/sapdata4/
[880690.03] 07:29:47 /oracle/OMI/sapdata4/omi640_13/
[843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_10/omi640.data10
[843860.00] 07:31:03 INF - Processing /oracle/OMI/sapdata2/omi640_9/omi640.data9
[843860.00] 07:31:03 /oracle/OMI/sapdata2/omi640_9/
[880690.03] 07:31:20 /oracle/OMI/sapdata4/omi640_13/omi640.data13
[880690.03] 07:31:20 INF - Processing /oracle/OMI/sapdata2/omi640_8/omi640.data8
[880690.03] 07:31:20 /oracle/OMI/sapdata2/
[880690.03] 07:31:20 /oracle/OMI/sapdata2/omi640_8/
[843860.00] 07:32:29 /oracle/OMI/sapdata2/omi640_9/omi640.data9
[843860.00] 07:32:29 INF - Processing /oracle/OMI/sapdata4/omi_13/omi.data13
[843860.00] 07:32:29 /oracle/OMI/sapdata4/
[843860.00] 07:32:29 /oracle/OMI/sapdata4/omi_13/
[880690.03] 07:32:44 /oracle/OMI/sapdata2/omi640_8/omi640.data8
[880690.03] 07:32:44 INF - Processing /oracle/OMI/sapdata4/omi640_15/omi640.data15
[880690.03] 07:32:44 /oracle/OMI/sapdata4/
[880690.03] 07:32:44 /oracle/OMI/sapdata4/omi640_15/
[843860.00] 07:33:04 /oracle/OMI/sapdata4/omi_13/omi.data13
[843860.00] 07:33:04 INF - Processing /oracle/OMI/sapdata1/system_1/system.data1
[843860.00] 07:33:04 /oracle/OMI/sapdata1/
[843860.00] 07:33:04 /oracle/OMI/sapdata1/system_1/
[843860.00] 07:33:23 /oracle/OMI/sapdata1/system_1/system.data1
[843860.00] 07:33:23 INF - Client completed sending data for backup
[843860.00]
[880690.03] 07:33:18 /oracle/OMI/sapdata4/omi640_15/omi640.data15
[880690.03] 07:33:18 INF - Processing /oracle/OMI/sapdata4/omi_14/omi.data14
[880690.03] 07:33:18 /oracle/OMI/sapdata4/omi_14/
[880690.03] 07:33:49 /oracle/OMI/sapdata4/omi_14/omi.data14
[880690.03] 07:33:49 INF - Processing /oracle/OMI/sapbackup/cntrlOMI.dbf
[880690.03] 07:33:49 /oracle/OMI/sapbackup/
[880690.03] 07:33:50 /oracle/OMI/sapbackup/cntrlOMI.dbf
[880690.03] 07:33:50 INF - Client completed sending data for backup
[880690.03]
[843860.00] 07:34:47 INF - Server status = 0
[880690.03] 07:34:57 INF - Server status = 0
[880690.03] 07:36:02 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.
[880690.03]
[843860.00] 07:36:07 INF - Backup by oraomi on client ipcby104b1.apac.gdc using policy APAC_SAP_DC1, sched U_xx_1m: the requested operation was successfully completed.
[843860.00]
ERROR: wait for process to complete
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_12/omi640.data12
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_7/omi640.data7
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_1/omi.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_2/omi.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_3/omi.data3
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata3/omi_4/omi.data4
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_2/system.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_10/omi.data10
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_11/omi.data11
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_12/omi.data12
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata2/omi640_6/omi640.data6
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_3/system.data3
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omiusr_1/omiusr.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_7/omi.data7
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi_8/omi.data8
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata4/omi640_14/omi640.data14
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_1/omi640.data1
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_2/omi640.data2
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/omi640_5/omi640.data5
BR0233E Backup utility has reported an error while saving file /oracle/OMI/sapdata1/system_1/sysaux01.dbf
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/system_1/system.data1
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_10/omi640.data10
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_13/omi.data13
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_9/omi640.data9
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/undo_1/undo.data1
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/omi640_4/omi640.data4
#SAVED.... NS1188352332
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata2/omi640_8/omi640.data8
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_6/omi.data6
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_14/omi.data14
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi_9/omi.data9
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapbackup/cntrlOMI.dbf
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi640_13/omi640.data13
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata3/omi640_11/omi640.data11
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata4/omi640_15/omi640.data15
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata1/omi640_3/omi640.data3
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
#FILE..... /oracle/OMI/sapdata3/omi_5/omi.data5
#SAVED.... NS1188352337
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
BR0279E Return code from 'backint -u OMI -f backup -i /oracle/OMI/sapbackup/.bdwaniws.lst -t file -p /oracle/OMI/102_64/dbs/initOMI.utl -c': 2
BR0232E 16 of 36 files saved by backup utility
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.52
BR0231E Backup utility call failed
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.54
BR0317I 'Alter database end backup' successful
BR0056I End of database backup: bdwaniws.anf 2007-08-29 07.36.52
BR0280I BRBACKUP time stamp: 2007-08-29 07.36.55
BR0054I BRBACKUP terminated with errors
Thanks,
deepthiWhile surfing the net i got one solution
NetBackup patch S0820462 corrects this by ensuring file name uniqueness with a timestamp value included in the name. Obtain this patch by contacting VERITAS Technical Support. Once you have the patch, follow the instructions included in the file patchS0820462.README which accompanies the patch.
I got the idea but i dont understand where i will get the info regarding the files ??
and how this patch has to be installed in the system.
Maybe you are looking for
-
[CS2, JS] Extracting Metadata from Images
I have to place about 100 images into a document and label them with metadata from the images (Description and author) I'm happy just for the data to be pulled from the image and placed in a text frame over the image - i can reposition it later. any
-
Text and some images together in a scrolling effect
Hi. All the tutorials I find about scrolling effects are just with simple text. And all the tutorials about images don't say anything about applying it together with text. I have a rather simple scrolling credits at the end of my video and wanted to
-
Hi , I am working on goods receipt / goods issue slip . I used output type WA01 and copied the standard form to zform.When i designed my layout ,after the configurations my form is attached to the standard program SAPM07DR. for goods receipt it is
-
DVD Player Broken after 10.5.4 Security Update
After the recent Software Updates, my DVD player no longer works. I've tried a variety of disks, and none plays properly. Symptoms: first, there is no audio. Second, the playback stutters and stalls. Third, the application beachballs and eventually s
-
Return to vendor options at time of receipt
One of our manufacturing sites has posed a question regarding return to vendor options when receiving damaged or defective material. Our current process, which I believe is the standard process in SAP, is to receive the full quantity even if part of