How to detect USB device drives

Hi
I want to write a program which will detect the drive letter when a usb device is plugged in. i.e., if a usb device is plugged in and the drive letter is "F:", then my program will instantly detect the presense of the device as well as get the drive letter. How's that possible in Java?
Thanx in advance
Regards
Mathew

cotton.m wrote:
Well if you're looking for the newUSBDriveListener API you're out of luck.
There is no way to do what you are looking for in a number of ways.
1) If something is listed as a drive the best you can now (from FileSystemView) is that it's a drive.
2) There isn't "new drive/or device added" event API.
So what you would have to do is when your program starts get the list of roots. Then poll at some intervals to get the list of roots and see if there are changes. If new drives show up then they show up.I agree!!!

Similar Messages

  • How to detect USB Flash Drive name in LabVIEW

    Hi there
    I was looking for how to detect a USB Flash Drive name in Labview
    appearently every time i insert USB Flash Drive in a computer, windows assign it a different name
    once "J:" and sometimes "M:"
    Is there anyway to obtain USB Flash Drive name programmatically in Labview ?
    Because in my program an user shouldn't be able to access HDD Drives except his USB Flash Drive (for inserting some file ...)
    thank you and excuse me for my poor english 

    I was able to get the demo.vi to load, but it could not load the other two because there is no block diagram associated with those.  I'm not sure why this is.  I haven't had any issues with other llbs before.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • Apple iPod USB Device driver issue on Win XP - syncing shuffle 2nd gen.

    Hello fellow iPod shuffle users. Any of you run into this problem using the following configurations? Any advise/recommendations/workarounds much appreciated as I've burned 3 days on this issue and I'm still stonewalled.
    I personally think it's a device driver issue/bug and am searching for a way to update my Apple iPod USB device driver for Win XP. Two brand new ipod shuffles (received for Christmas 2008) are both behaving this way, so the problem most likely points to a global software issue more-so than to shuffle hardware issue.
    PROBLEM STATEMENT: Driver data i/o streaming issue does not allow shuffle to sync data with iTunes after initial sync (i.e. reading the content of the shuffle is good, but writing modified content fails). Posted error message "The ipod ... cannot be synced. Required disk cannot be found". After cracking the hood on my device driver, the problem seems to point to the Apple iPod USB device driver for Win XP. Driver will recognize the shuffle and read to it, but subsequent write attempts will result in device driver balks that "this device cannot start (code 10)".
    ATTEMPTED WORKAROUNDS:
    *Read All "How to Get Started Manuals" to make sure I was using the right technique for syncing my two shuffles from within iTunes... tried and failed
    *Ensure only one shuffle was plugged in at a time (saw notice that two shuffles plugged in at the same time is not yet a supported config)... tried and failed
    *The 5 R's as recommended by Apple Support... tried and failed.
    *I've tried all 3 built in USB ports on my Lenovo T60. no love... tried and failed.
    *Per discussion board: From Window's Device Manager-> Scaned for new hardware while shuffle was syncing...tried and failed.
    * Per Discussion board: From Window's Disk Management -> Ensured shuffle came up as a FAT32 filesystem... connection tore down as quickly as windows recognized it.... tried and failed.
    *From Windows Software config utility: Ran repair to re-install itunes 8... same results.
    *From Windows software management utility: Uninstalled and reinstalled itunes 8... same results.
    Hardware: IBM Thinkpad/Lenovo T60. Using build in k/b & no external mouse. Has 3 USB built in ports.
    Software: Windows XP Pro SP2/iTunes 8.0.2/shuffle (2nd gen) driver 1.0.4 (same behavior using the original driver 1.0.3).
    Apple iPod USB Device properties:
    Driver Provider - Microsoft
    Driver Date - 7/1/2001
    Driver Version - 5.1.2535.0
    Digital Signer - Microsoft Windows Publisher

    Hi. Ive got pretty much the same problem.... Got a new shuffle for christmas..having real problems syncing with itunes. Funnily enough I managed to get 25 tracks on it but then it just stopped. error message says " The ipod shuffle cannot be synced. The required disk cannot be found." Ive done restore, and downloaded a reset utility thingy to try but still no joy.

  • How can detect that cdrom drive were opened and closed?

    How can detect that cdrom drive were opened and closed?

    I'm sure there are more elegant and complicated ways to accomplish this using Windows SDK function calls to kernel32.dll or something extravagant like that, but if you want the bare-bones easy way to check if the CD-ROM tray is currently opened, then simply use System Exec to query the CD-ROM drive from the command line. One example of this is shown below.
    Use the command line function cmd /c d:, where d: is your CD-ROM drive. If the Standard Error output from System Exec.vi is "The device is not ready." followed by a carraige return and line feed, then voila, your CD-ROM drive is open. If not, it's closed. Anyone have a better idea? I'm sure one exists...
    Message Edited by Jarrod S. on 02-16-2006 12:23 PM
    Jarrod S.
    National Instruments
    Attachments:
    CDROM_Check.JPG ‏22 KB

  • When I plug in my iPhone to a USB port on the back of my computer I get the error "MTP USB Device driver was not successfully installed"   and of course there is no device that shows up either.  It would be great to download my photos!  I'm using Windows

    When I plug in my iPhone to a USB port on the back of my computer I get the error "MTP USB Device driver was not successfully installed"   and of course there is no device that shows up either.  It would be great to download my photos!  I'm using Windows

    Go through this support doc:
    OS: Device not recognised in iTunes
    Windows: http://support.apple.com/kb/TS1538

  • How to erase USB flash drives?? Thanks, Michael

    How to erase USB flash drives on my MacBookAir ?? Thanks, Michael

    Welcome to Apple Support Communities
    To erase them, you can use Disk Utility, in /Applications/Utilities > http://pondini.org/OSX/DU1.html
    When you open Disk Utility, choose the external disk in the sidebar, go to Erase tab and erase the disk

  • E72 / Win7 64-bit Ovi Suite - MTP USB device drive...

    Just installed Ovi Suite (most recent version) on Windows 7 64-bit for my E72.
    Windows installs all drivers, however 'MTP USB device ' driver fails to install. 
    What does this driver do ? And can this be solved ?

    I am running OVI 2.2.0.245 on 64 bit W7 and Office 2007 and using a 5800ExpreMusic..
    I have experienced all the problems mentioned above. After 2 days of try and error end nearly getting crazy I found a solution at least for my situation. However I can imagine many more people are maybe in the same situation.
    At first I had been using the USB ports in front of the machine's cabinet. None of them worked for a longer period than 3 minutes and I always lost the connection to the mapserver. Until I found out that each two ports in front of the cabinet share the capacity of a single USB connection at the back of the system. So I moved the USB from one of the front ports the a back port. Now that the full Capacity of a USB port can be used I no longer suffer any problems with OVI.
    It works great.
    However it is a shame Nokia users must find out what Nokia could have told its users. 

  • How to add and configure a usb device driver in SRSS for Sunray?

    Dear Sir,
    If I want to use a usb device on Sunray 2 (the usb device is plugged into Sunray's usb port), and I have been developed a usb driver on Solaris 10. Can I install the same driver in SRSS host to active the usb device in Sunray? If it can, how do I configure SRSS and where is the location of SRSS drivers? Can I use add_drv similar command to add my driver to SRSS?
    The second question is when I plug-in a usb device to Sunray, can I see device information (VID, PID, and so on) in any log file or by any command as "prtconf -v" on Solaris?
    Thank you very much.
    Best Regards,
    Steven

    What sort of USB device do you want to use ?
    The peripherals chapter in the SRSS admin guide tells you how to use supported USB devices.
    http://docs.sun.com/source/819-2384/dev.html
    Drivers written for Solaris devices will not work with Sun Ray devices. If you want to write a device driver for Sun Ray, it is recommended you use libusb for a userland driver. See libusb notes on same chapter mentioned above.
    There is currently no SRSS utility to list Sun Ray device parameters like prtconf does.
    You could write a libusb application to do this, or use the test program described here:
    http://libusb.sourceforge.net/doc/examples.html

  • [SOLVED] Openbox+Thunar, how to show usb devices in thunar?

    Hi.  I've been running a pretty standard Xfce environment for a while.  When I plug in a usb drive, I get a new item pop up in the "DEVICES" section of the left panel in thunar (note, it doesn't automount the device, it just shows that it's there and only mounts it when I click on it...I like this behaviour).
    Now, I'm setting up an even lighter-weight environment, just openbox and tint2 with thunar as the file manager.  But when I'm logged into the openbox environment, I don't get the item in the "DEVICES" section in thunar (but it still works fine in xfce).
    If it run thunar from the command line and plug in a usb drive I get this message in the terminal
    (thunar:21205): thunar-WARNING **: Failed to launch the volume manager (Failed to execute child process "thunar-volman" (No such file or directory)), make sure you have the "thunar-volman" package installed.
    I don't see why I would need thunar-volman if it works fine in xfce.  If I install thunar-volman and do the same, I get this message
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unsupported USB device type.
    thunar-volman: Unknown block device type.
    So I'm wondering if maybe there is a daemon that is autostarted during an xfce session that makes thunar probe for devices to be plugged in or something like that.  Why does it work in an xfce session, but not in an openbox session?
    Last edited by Pacopag (2013-03-14 15:52:32)

    Thanks for your replies.
    henk:  I tried installing polkit-gnome and creating the rule as per the wiki, but it didn't work.  Volume detection seems to work fine in xfce without this package.
    jv2112:  I added udiskie to .config/openbox/autostart and it seems to work.  I've had problems with udiskie in the past; it seemed to have some trouble unmounting the drives properly after a write as I would find that the newly written files were corrupt.  But it seems to be working fine.
    I'll mark this as solved, but I'm still curious as to how xfce-thunar is mounting the usb devices. 
    One clue is that with udiskie, devices get mounted to /media, whereas in xfce they get mounted to /var/run/media/username/ (or something like that).

  • Windows Server 2008 R2 only detect USB storage drives if I restart the system

    Hi, I have a Windows Server 2008 R2 with an weird behaviour. I cannot connect any USB drive (not USB external hard disk neither pendrives). Windows device manager detects the device as
    Mass Storage Device, but with a yellow exclamation sign. The exact error code is:
    The device cannot start.
    However, if I restart the machine keeping the USB disk plugged, the hard disk (or pendrive) is correctly detected and usable.
    I've tried:
    Update mass storage driver.
    Review HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\usbstor "Start"
    and is 3 (I think is right)
    I've tried with different usb hard disks that are working in other PCs.
    I've tried with large (>1TB) disks and small (8GB) pendrives.
    I've tried all available USB ports, front and back, with same behaviour.
    Always I get a yellow exclamation  (Device cannot start) and if I restart the computer the device is working perfectly.
    Can someone help me?
    Thanks in advance
    Edit: Here is the log of connecting a Kingstone USB 8GB pendrive
    >>> [Device Install (Hardware initiated) - USB\VID_0930&PID_6544\C860008863DBCE801A0B24B4]
    >>> Section start 2015/01/09 09:35:49.342
    ump: Creating Install Process: DrvInst.exe 09:35:49.498
    ndv: Retrieving device info...
    ndv: Setting device parameters...
    ndv: Searching Driver Store and Device Path...
    dvi: {Build Driver List} 09:35:49.966
    dvi: Searching for hardware ID(s):
    dvi: usb\vid_0930&pid_6544&rev_0100
    dvi: usb\vid_0930&pid_6544
    dvi: Searching for compatible ID(s):
    dvi: usb\class_08&subclass_06&prot_50
    dvi: usb\class_08&subclass_06
    dvi: usb\class_08
    cpy: Policy is set to make all digital signatures equal.
    dvi: Enumerating INFs from path list 'C:\Windows\inf'
    inf: Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    dvi: Created Driver Node:
    dvi: HardwareID - USB\Class_08&SubClass_06&Prot_50
    dvi: InfName - C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf
    dvi: DevDesc - Dispositivo de almacenamiento USB
    dvi: DrvDesc - Dispositivo de almacenamiento USB
    dvi: Provider - Microsoft
    dvi: Mfg - Dispositivo de almacenamiento USB compatible
    dvi: ModelsSec - Generic.NTamd64
    dvi: InstallSec - USBSTOR_BULK
    dvi: ActualSec - USBSTOR_BULK.NT
    dvi: Rank - 0x00ff2000
    dvi: Signer - Microsoft Windows
    dvi: Signer Score - INBOX
    dvi: DrvDate - 06/21/2006
    dvi: Version - 6.1.7601.17577
    inf: Searched 1 potential matches in published INF directory
    inf: Searched 36 INFs in directory: 'C:\Windows\inf'
    dvi: {Build Driver List - exit(0x00000000)} 09:35:51.900
    ndv: Selecting best match from Driver Store (including Device Path)...
    dvi: {DIF_SELECTBESTCOMPATDRV} 09:35:51.900
    dvi: No class installer for 'DataTraveler 2.0'
    dvi: No CoInstallers found
    dvi: Default installer: Enter 09:35:51.900
    dvi: {Select Best Driver}
    dvi: Selected driver installs from section [USBSTOR_BULK] in 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf'.
    dvi: Class GUID of device changed to: {36fc9e60-c465-11cf-8056-444553540000}.
    dvi: Set selected driver complete.
    dvi: Selected:
    dvi: Description - [Dispositivo de almacenamiento USB]
    dvi: InfFile - [c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf]
    dvi: Section - [USBSTOR_BULK]
    dvi: Signer - [Microsoft Windows]
    dvi: Rank - [0x00ff2000]
    dvi: {Select Best Driver - exit(0x00000000)}
    dvi: Default installer: Exit
    dvi: {DIF_SELECTBESTCOMPATDRV - exit(0x00000000)} 09:35:51.916
    inf: {SetupCopyOEMInf: C:\Windows\INF\usbstor.inf} 09:35:51.931
    inf: Driver Store location: C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf
    inf: Published Inf Path: C:\Windows\INF\usbstor.inf
    inf: {SetupCopyOEMInf exit (0x00000050)} 09:35:51.931
    dvi: Searching for hardware ID(s):
    dvi: usb\vid_0930&pid_6544&rev_0100
    dvi: usb\vid_0930&pid_6544
    dvi: Searching for compatible ID(s):
    dvi: usb\class_08&subclass_06&prot_50
    dvi: usb\class_08&subclass_06
    dvi: usb\class_08
    inf: Opened PNF: 'C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    dvi: Selected driver installs from section [USBSTOR_BULK] in 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf'.
    dvi: Class GUID of device changed to: {36fc9e60-c465-11cf-8056-444553540000}.
    dvi: Set selected driver complete.
    ndv: Driver selected, now performing install...
    ndv: {Core Device Install} 09:35:51.947
    inf: Opened PNF: 'C:\Windows\INF\usbstor.inf' ([strings.0c0a])
    inf: Opened PNF: 'C:\Windows\INF\usbstor.inf' ([strings.0c0a])
    dvi: {DIF_ALLOW_INSTALL} 09:35:52.259
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: No CoInstallers found
    dvi: Default installer: Enter 09:35:52.259
    dvi: Default installer: Exit
    dvi: {DIF_ALLOW_INSTALL - exit(0xe000020e)} 09:35:52.259
    ndv: Installing files...
    dvi: {DIF_INSTALLDEVICEFILES} 09:35:52.306
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: Default installer: Enter 09:35:52.306
    dvi: {Install FILES}
    inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    inf: {Install Inf Section [USBSTOR_BULK.NT]}
    inf: CopyFiles=USBSTOR.CopyList (usbstor.inf line 173)
    flq: CopyFiles from an inbox inf.
    cpy: Open PnpLockdownPolicy: Err=2. This is OK. Use LockDownPolicyDefault
    flq: QueueSingleCopy...
    flq: Inf : 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf'
    flq: SourceInf: 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf'
    flq: SourceSection: [sourcedisksfiles]
    flq: Source root path based on SourceInf
    flq: SourceRootPath: 'C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d'
    flq: {FILE_QUEUE_COPY}
    flq: CopyStyle - 0x09000000
    flq: {FILE_QUEUE_COPY}
    flq: CopyStyle - 0x09000000
    flq: SourceRootPath - 'C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_amd64_neutral_26b33263a639795d'
    flq: SourceFilename - 'USBSTOR.SYS'
    flq: TargetDirectory- 'C:\Windows\system32\drivers'
    flq: TargetFilename - 'USBSTOR.SYS'
    flq: SourceDesc - 'windows cd'
    flq: {FILE_QUEUE_COPY exit(0x00000000)}
    flq: {FILE_QUEUE_COPY exit(0x00000000)}
    inf: {Install Inf Section [USBSTOR_BULK.NT] exit (0x00000000)}
    dvi: Processing co-installer registration section [USBSTOR_BULK.NT.CoInstallers].
    inf: {Install Inf Section [USBSTOR_BULK.NT.CoInstallers]}
    inf: {Install Inf Section [USBSTOR_BULK.NT.CoInstallers] exit (0x00000000)}
    dvi: Co-installers registered.
    dvi: {Install INTERFACES}
    dvi: Installing section [USBSTOR_BULK.NT.Interfaces]
    dvi: {Install INTERFACES exit 00000000}
    dvi: {Install FILES exit (0x00000000)}
    dvi: Default installer: Exit
    dvi: {DIF_INSTALLDEVICEFILES - exit(0x00000000)} 09:35:52.384
    ndv: Pruning file queue...
    dvi: {_SCAN_FILE_QUEUE}
    flq: ScanQ flags=620
    flq: SPQ_SCAN_PRUNE_COPY_QUEUE
    flq: SPQ_SCAN_FILE_COMPARISON
    flq: SPQ_SCAN_ACTIVATE_DRP
    flq: ScanQ number of copy nodes=1
    flq: File 'C:\Windows\system32\drivers\USBSTOR.SYS' pruned from copy.
    sig: Using catalog 'C:\Windows\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\Package_3_for_KB982018~31bf3856ad364e35~amd64~~6.1.3.2.cat'.
    cpy: DrpSetRegFileProt 'C:\Windows\system32\drivers\USBSTOR.SYS' Status=0 Class=Inbox Windows protected
    flq: ScanQ action=200 DoPruning=32
    flq: ScanQ end Validity flags=620 CopyNodes=0
    dvi: {_SCAN_FILE_QUEUE exit(0, 0x00000000)}
    ndv: Committing file queue...
    flq: {_commit_file_queue}
    flq: CommitQ DelNodes=0 RenNodes=0 CopyNodes=0
    flq: CommitQ early exit: No nodes are queued
    flq: {_commit_file_queue exit OK}
    ndv: Registering CoInstallers...
    dvi: {DIF_REGISTER_COINSTALLERS} 09:35:54.037
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: Default installer: Enter 09:35:54.069
    inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    inf: {Install Inf Section [USBSTOR_BULK.NT.CoInstallers]}
    inf: {Install Inf Section [USBSTOR_BULK.NT.CoInstallers] exit (0x00000000)}
    dvi: Co-installers registered.
    dvi: Default installer: Exit
    dvi: {DIF_REGISTER_COINSTALLERS - exit(0x00000000)} 09:35:54.100
    ndv: Installing interfaces...
    dvi: {DIF_INSTALLINTERFACES} 09:35:54.100
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: No CoInstallers found
    dvi: Default installer: Enter 09:35:54.100
    dvi: {Install INTERFACES}
    inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    dvi: Installing section [USBSTOR_BULK.NT.Interfaces]
    dvi: {Install INTERFACES exit 00000000}
    dvi: Default installer: Exit
    dvi: {DIF_INSTALLINTERFACES - exit(0x00000000)} 09:35:54.100
    ndv: Installing device...
    dvi: {DIF_INSTALLDEVICE} 09:35:54.100
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: Default installer: Enter 09:35:54.100
    dvi: {Install DEVICE}
    inf: Opened PNF: 'c:\windows\system32\driverstore\filerepository\usbstor.inf_amd64_neutral_26b33263a639795d\usbstor.inf' ([strings.0c0a])
    dvi: Processing Registry/Property directives...
    inf: {Install Inf Section [USBSTOR_BULK.NT]}
    inf: AddReg=USBSTOR_BULK.AddReg (usbstor.inf line 174)
    inf: {Install Inf Section [USBSTOR_BULK.NT] exit (0x00000000)}
    inf: {Install Inf Section [USBSTOR_BULK.NT.Hw]}
    inf: Empty section
    inf: {Install Inf Section [USBSTOR_BULK.NT.Hw] exit (0x00000000)}
    dvi: {Writing Device Properties}
    dvi: Provider name=Microsoft
    dvi: DriverDate 06/21/2006
    dvi: DriverVersion=6.1.7601.17577
    dvi: Class name=USB
    dvi: Manufacturer=Dispositivo de almacenamiento USB compatible
    dvi: Matching DeviceID=usb\class_08&subclass_06&prot_50
    dvi: Strong Name=usbstor.inf:Generic.NTamd64:USBSTOR_BULK:6.1.7601.17577:usb\class_08&subclass_06&prot_50
    dvi: {Writing Device Properties - Complete}
    inf: {Install Inf Section [USBSTOR_BULK.NT.Services]}
    inf: Addservice=USBSTOR,0x00000002,USBSTOR.AddService (usbstor.inf line 177)
    inf: ServiceType=1 (usbstor.inf line 234)
    inf: StartType=3 (usbstor.inf line 235)
    inf: ErrorControl=1 (usbstor.inf line 236)
    inf: ServiceBinary=C:\Windows\system32\DRIVERS\USBSTOR.SYS (usbstor.inf line 237)
    inf: DisplayName="Controlador de dispositivo de almacenamiento USB" (usbstor.inf line 233)
    dvi: Add Service: Modified existing service 'USBSTOR'.
    inf: AddReg=DeviceSpecific (usbstor.inf line 238)
    inf: {Install Inf Section [USBSTOR_BULK.NT.Services] exit(0x00000000)}
    dvi: Updated reflected section names for: usbstor.inf
    dvi: {Install DEVICE exit (0x00000000)}
    dvi: Writing common driver property settings.
    dvi: DriverDescription=Dispositivo de almacenamiento USB
    dvi: DeviceDisplayName=Dispositivo de almacenamiento USB
    dvi: Install Device: Restarting device. 09:35:54.537
    dvi: Install Device: Restarting device completed. 09:35:57.625
    !!! dvi: Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
    dvi: Default installer: Exit
    dvi: {DIF_INSTALLDEVICE - exit(0x00000000)} 09:35:57.641
    dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL} 09:35:57.641
    dvi: No class installer for 'Dispositivo de almacenamiento USB'
    dvi: Default installer: Enter 09:35:57.641
    dvi: Default installer: Exit
    dvi: {DIF_NEWDEVICEWIZARD_FINISHINSTALL - exit(0xe000020e)} 09:35:57.657
    ndv: Device install status=0x00000000
    ndv: Performing device install final cleanup...
    ! ndv: Queueing up error report since device has a PnP problem...
    ndv: {Core Device Install - exit(0x00000000)} 09:35:59.201
    ump: Server install process exited with code 0x00000000 09:35:59.232
    <<< Section end 2015/01/09 09:35:59.279
    <<< [Exit status: SUCCESS]

    I tried, but windows says that the best driver is alredy installed.
    Now I've just tried to delete (uninstall) absolutly all devices under Universal Serial Bus Controller
    (host controllers, root hubs, etc) into Device Manager, and then I've click on
    Scan for hardware changes to force reinstall of all USB drivers. After that I've connected my USB external hard disk and has been correctly recognized and its working. However I don't know if when I'll restar the server and connect a new one usb device
    it will continue working or not. I'll try later, because this is a production server.
    I've tried for drivers into HP site to update or reinstall, but there isn't any driver for motherboard or USB controller. It's an HP ML350 G6.

  • How to mount USB & CDROM drives from single user mode - Solaris boot disk?

    Hi All,
    I need to carry out ufsrestore on a single newly replaced system disk (no redundancy / mirroring) from either USB or CDROM drives from the following steps:
    ( i ) GRUB => e, e, cdrom –s, Enter, b (boot from Solaris 10 x86 media).
    ( ii ) Choose menu 1 for Install Solaris Interactive Mode to reach single user mode.Below are the commands that I have tried in single user mode without success:
    mount –r –F pcfs /dev/dsk/c1t0d0p0 /cdrom (after unmount Solaris CD)
      mount: /dev/dsk/c1t0d0p0 is not a DOS filesystem.
    svcadm –v enable smserver
      svcadm: Pattern ‘smserver’ doesn’t match any instances
    svcadm enable autofs
      svcadm: Pattern ‘autofs’ doesn’t match any instances
    devfsadm
      devfsadm: mkdir failed for /dev 0s1ed: Read-only file system
    mkdir /mnt
      mkdir: Failed to make directory “/mnt”; Read-only file systemPart of the problem is due to the current READ ONLY filesystems which does not allow the creation of mount point such as /mnt.
    I have been able to create both / root (/dev/dsk/c1t0d0s0) and /export/home (/dev/dsk/c1t0d0s0) filesystems with newfs that are awaiting for restore using ufsrestore.
    The only option I am left with is to attach a secondary disk to install Solaris 10 on either of them before bring the system to multi-user mode so that service such as volmgt, autofs, volfs are available to access USB & CDROM drives.
    Any suggestion on how to resolve this issue?
    Many thanks,
    Jack

    Hi JKGN,
    Is the directory a located under the root filesystem. ie /a? Are there any other mount point for say USB drive as well? I am not in a position to try it out right now but will get back
    to you soon on whether /a exist or not.
    Btw, the last thing I managed to do on this system at the time was added a secondary 1TB internal disk with the intention to restore both / and /export/home data onto this disk while
    making use of all the disk device management services such as the following services only available in a fully installed Solaris system (both single & multi-user modes) installed on the
    primary disk:
    # svcs smserver
    STATE          STIME    FMRI
    online         Jun_08   svc:/network/rpc/smserver:default
    # svcs autofs
    STATE          STIME    FMRI
    online         Jun_08   svc:/system/filesystem/autofs:default
    # devfsadm
    # iostat -En
    c1t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: ATA      Product: SAMSUNG HD321KJ  Revision: 0-11 Serial No: 
    Size: 320.07GB <320072932864 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 41 Predictive Failure Analysis: 0
    c0t0d0           Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
    Vendor: PHILIPS  Product: DVD+-RW DVD8801  Revision: AD21 Serial 
    Size: 17.54GB <17538875392 bytes>
    Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
    Illegal Request: 10 Predictive Failure Analysis: 0
    c2t0d0           Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
    Vendor: JetFlash Product: Transcend 16GB   Revision: 1100 Serial No: 
    Size: 0.00GB <0 bytes>
    Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
    Illegal Request: 7 Predictive Failure Analysis: 0
    # rmformat
    Looking for devices...
         1. Volmgt Node: /vol/dev/aliases/cdrom0
            Logical Node: /dev/rdsk/c0t0d0s2
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@0/sd@0,0
            Connected Device: PHILIPS  DVD+-RW DVD8801  AD21
            Device Type: DVD Reader/WriterHowever, I was disappointed that "iostat -En" has not found the secondary disk (1 TB) even though it was available earlier, for Solaris installation as the only disk on the same system.
    As a result, I am left with no option but the need to rebuild this system with only a single primary disk while in single user mode. However, the single user mode that I am in is the
    one from Solaris installation disk with restrictive (_cannot create folder for mount point or running disk management utilities_) capability such as those services just covered, compared to one from a completed Solaris installation system with full access to all filesystems and utilities / commands in general.
    I would very much value your assistance on how to mount both CD & USB in this restrictive limited Read Only OS (assume that it is running from memory) in order to get complete access to
    the blank primary disk so that full restore with ufsrestore could take place.
    Thanks in advance,
    Jack
    Edited by: 797805 on 9/06/2012 04:15

  • How to get USB device in the list of VISA resource Name field of VISA Open VI

    I have followed the below tutorial to communicate with my device using USB port. But i didn't get the name of the USB port in Measurement & Automation Explorer devices list. How to get it? Can anyone suggest something?
    http://zone.ni.com/devzone/cda/tut/p/id/4478
    Solved!
    Go to Solution.

    Hi kimhyun,
                     I have attempted this.But succeeded.I used pendrive as my USB device.my sugesstion is you don't disconnect your device at any point of your work.Check the device is connected properly.IF your system has recognized your device,you can view the device in control panel>>Device Manager>>Then open your particular device from the list of connected device then Details>>device description>>Hardware Ids>>Then you can find your vendor id there.
    Try this.I think your device is loosly connected.Which USB device are you using??Also you must install THE DRIVER OF YOUR USB DEVICE.
    GOOD LUCK
    Thanks as kudos only

  • How to make Automatically Device driver installation in Win 7/WIn 8 when using RNDIS in Windows Compact

    We are developing a precision instrument that measures Temperature, Pressure and humidity used in the pharmaceutical industry.
    The Instrument is based on Windows Embedded Compact (7.0)
    WE establish a TCP communication vi a USB connection. This is done by the RNDIS Driver.
    When we connect the instrument to a PC we have to do the following in Windows:
    http://developer.toradex.com/knowledge-base/how-to-install-microsoft-rndis-driver-for-windows-7
    The INF that is used is then C:\Windows\inf\rndiscmp.inf
    We want this to be executed automatically
    The way it is automated is by setting the correct entry’s in the registration database on the Instruments. In Windows CE registration database.
    On
    http://www.usb.org/developers/defined_class we think we must set Base Class = EFh, SubClass = 04h and Protocol = 01h.
    But how is this done in the registry on the device?
    Who can help me :-)

    Hi Mads,
    changes in "rndisfn.h" in public folder have no influance on your project, because those files are not built at all. Visual Studio will use this one anyway (which is already built): C:\WINCE700\public\common\oak\target\armv7\retail\rndisfn.dll
    To make use of Microsoft public code, you have to clone this code - that is copy selected source files to BSP folder and adjust DIRS files to include new data in the compilation process.
    To clone RNDIS component, copy rndis folder from C:\WINCE700\public\common\oak\drivers\UsbFn\class
    to C:\WINCE700\platform\YOUR_BSP\Src\COMMON\USBFN.
    Edit source file C:\WINCE700\platform\YOUR_BSP\Src\COMMON\USBFN\rndis\rndisfn\sources:
    DOSYSGEN=1
    TARGETDEFNAME=RNDISFN
    TARGETNAME=RNDISFN
    TARGETTYPE=DYNLINK
    DLLENTRY=_DllEntryCRTStartup
    SOURCES= \
    rndisfn.cpp \
    TARGETLIBS= \
    $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\ndis.lib \
    $(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\ceddk.lib \
    $(_SYSGENSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib
    SOURCELIBS=\
    $(SG_OUTPUT_ROOT)\platform\$(_TGTPLAT)\lib\$(_CPUINDPATH)\rndismini2.lib \
    $(_PUBLICROOT)\common\oak\lib\$(_CPUINDPATH)\ufnclientlib.lib
    Finally, edit C:\WINCE700\platform\YOUR_BSP\Src\COMMON\USBFN\dirs to include your new component (folder) in the build process:
    DIRS=\
    RNDISKITL \
    RNDIS \
    System will build now new rndisfn.dll, which will replace the original one in the public directory. I hope I didn't forget anything...

  • How to mount USB Flash Drive

    Hello again Arch-Linux users,
    I always search google very hard and for months (off and on) I search for how to mount a USB Flash Drive.  Nothing ever work so I give up than try again months latter.  I don't want to give up anymore and that is why I join this forum.
    Here are some of the code I found on the net.  Some of these commands will only re-mount the entire Arch-Linux running system in  /mnt/usbstick.
    sudo mount -o rw,noauto,async,user,umask=1000 /dev/sda1 /mnt/usbstick
    ... don't work it only re-mount the entire system
    /dev/sda15 /mnt/usbstick  vfat   user,noauto,unhide   0      0
    ... don't work... I found nothing inside /mnt/usbstick
    mount -t vfat -o rw,nosuid,nodev,quiet,shortname=mixed,uid=1001,gid=100,umask=077,iocharset=utf8 /dev/sda1 /mnt/usbstick
    ... don't work... here is the error i get:
    mount: /dev/sda1 already mounted or /mnt/usbstick busy
    mount: according to mtab, /dev/sda1 is mounted on /
    It strange that most USB mount commands use the operating system partition itself- example: /dev/sda1 as the device for USB device, while others use /dev/cdrom for cd - /dev/dvd for dvd and /dev/fd0 for floppy.
    Could someone post the code that will easily mount a usb device under Arch_Linux.
    I'm using Arch-Linux core-64 (08-2009)
    Thanks in advance
    Last edited by sharris (2010-06-17 21:58:43)

    Thanks fsckd,
    I needed a rapid reply because I been wasting too much time not getting anything done because I needed to get pass this flash-drive thing.  I can now have a secure back-up in my pocket on USB to go.  Arch-Linux does it better for what I seen while just dd'ing on disk.
    ...lsusb
    Found it
    http://gd.tuwien.ac.at/linuxcommand.org … susb8.html
    Thanks demian,
    sdb is the location for my single hard-drive machine.  I saw it before in my list above but I changed it to sda1 because I knew no better.  I had no clue it represent a 2nd hard-drive for LINUX if one is not already present.
    This did it for me
    Thanks again

  • How to write usb touchscreen driver kext ?

    I want to write a usb touchscreen kext for usb touch screen .
    I have read the Kernel Extension Programming Topics and the I/O Kit Fundamentals etc,
    My question is,
    1 . how to get the input report messages from touch screen ?
    2 . how to post the coordinate info to system ?
    I have no idea, anybody help?

    I built the touchscreen.
    The details:
    System:   OS X 10.9.1 (13B42)
    USB Infrared Touch Screen:
    Low Speed device @ 3 (0x14400000): .............................................   Composite device from unknown vendor
        Port Information:   0x101a
               Not Captive
               Attached to Root Hub
               External Device
               Connected
               Enabled
               Connected to External Port
        Number Of Endpoints (includes EP0):  
            Total Endpoints for Configuration 1 (current):   2
        Device Descriptor  
            Descriptor Version Number:   0x0100
            Device Class:   0   (Composite)
            Device Subclass:   0
            Device Protocol:   0
            Device MaxPacketSize:   8
            Device VendorID/ProductID:   0x255E/0x0001   (unknown vendor)
            Device Version Number:   0x0100
            Number of Configurations:   1
            Manufacturer String:   0 (none)
            Product String:   0 (none)
            Serial Number String:   0 (none)
        Configuration Descriptor (current config)  
            Length (and contents):   25
                Raw Descriptor (hex)    0000: 09 02 19 00 01 01 00 A0  FA 09 04 00 00 01 FF 00 
                Raw Descriptor (hex)    0010: 00 00 07 05 81 03 08 00  0A
            Number of Interfaces:   1
            Configuration Value:   1
            Attributes:   0xA0 (bus-powered, remote wakeup)
            MaxPower:   500 mA
            Interface #0 - Vendor-specific  
                Alternate Setting   0
                Number of Endpoints   1
                Interface Class:   255   (Vendor-specific)
                Interface Subclass;   0   (Vendor-specific)
                Interface Protocol:   0
                Endpoint 0x81 - Interrupt Input  
                    Address:   0x81  (IN)
                    Attributes:   0x03  (Interrupt)
                    Max Packet Size:   8
                    Polling Interval:   10 ms
    My test code source.
    As the details, my infrared touch screen is not a HID USB device, and report interrupt input event. So, I need to write a custom USB driver for it. And then, I decided to write a USB driver kext.
    According to the Mac Developer Library (I/O Kit Fundamentals),I see the Handling Events.To put the role of the work loop in perspective, it helps first to consider the event sources that it is designed for. In the I/O Kit there are five broad categories of asynchronous events:
    Interrupt events—indirect (secondary) interrupts originating from devices
    Timer events—events delivered periodically by timers, such as timeouts
    I/O commands—I/O requests issued by driver clients to their providers
    Power events—typically generated through calls down the driver stack
    Structural events—typically events involving the I/O Registry
    I set up their work loops, event sources, and event handlers in their start function.But not works.So, I can't get the data from USB touch screen device.
    My questions:
    Is there other ways to receive the report data from USB device in os x USB kext ?
    How to dispatch the coordinate to system, when get the report data ?

Maybe you are looking for

  • Apple TV cannot connect to iMovie Theater Channel

    My Apple TV (3rd generation) CAN connect to My Music, My Films etc... but CANNOT connect anymore to the iMovie Theater Channel. The Apple TV is up to date and its "region" is correct. It happened when I updated my iMac to Yosemite and to the new iMov

  • Java gui program won't compile.

    The error I am getting in my compiler is missing return statement, then ill add some braces and get a class, interface, or enum expected error, and sometimes when i add some ill end up getting a reached the end without parcing error. Can someone look

  • RMAN and Datapump Question

    Hello, Database : 11gR2 I was recently provieded an access to a new database, because users are complaining of poor perfromance. During my monitoring of this database, and using statspack report (because we don't have licensed diagnostics pack), I ha

  • Illustrator CS6 won't open on mac

    I suddely cannot open Illustrator CS6 on my imac. The message says something to the effect that I should check with the software developers to make sure it works with this version of OS X and that a reinstall may be necessary. Any thoughts? Process: 

  • PS CS4 does not recognize any printers

    I have a client that gets the error ""Before you can perform print-related tasks such as page setup or printing a document, you need to install a printer" when he tries to print from PS CS4 He has a networked printer and has Adobe PDF as his local de