How to enumerate USB Mass Storage devices?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to enumerate USB Mass Storage devices?
# 1  
Old 10-12-2008
How to enumerate USB Mass Storage devices?

Hi all,
I want to write a program in C that can enumerate all USB massand their mount point storage on my system. i want to give ability to copy one file to desired USB mass storage or read a file from it. I have posted another question about how can recieve USB arrival in this forum.
I think that this will possible with navigating into /proc/partitions and /proc/mounts is there any other way?
(I am working on Fedorad core 8 (kernel 2.6))
thanks a lot
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Questions about remote access and install USB devices.

I have a server running openindiana, it hosts virtualbox and several VMs on it. My first question is if I can run openindiana desktop from my windows on same network, now I am using XWin server under cygwin-X, I can run GUI of VirtualBox etc. but can I have the openindiana desktop show on my... (2 Replies)
Discussion started by: wyx2000
2 Replies

2. AIX

Mounting USB Mass Storage

Hi experts, recently i'm exploring USB with filesystem FAT32 mounting on my aix oslevel 6100-04-02-1007. I tried to google to get solutions but failed. Thus, i post it here hope to get solution. Appreciate :) This is my usb drives: (5 Replies)
Discussion started by: polar
5 Replies

3. Cybersecurity

How to disable USB for storage devices in Suse?

Hello folks, for some confidential reason, I need to disable the USB to access the storage devices in Suse11.2, but I still need two USB for the mouse and keyboard. Anyone knows? Thanks a lot in advance! (3 Replies)
Discussion started by: gnsxhj
3 Replies

4. Shell Programming and Scripting

1 usb stick -> 2 mounted devices

Hello, i am using a solaris thinclient that tries to connecting to a terminalserver. (RDP) Everything works fine, but the usb redirection. If i put in a usb stick i always get 2 usb-drives mounted. If i look in /tmp/SUNWut/mnt/<name of the host> i see 2 devices. One with the name of the... (2 Replies)
Discussion started by: anarcy
2 Replies

5. Linux

Can USB Devices Be Exported Over a Network?

While I know that it's possible to use something like SANE to share a USB scanner over a network, or use NBD or iSCSI to share a USB flash or external HD over the network, I've been wondering about a raw USB <--> TCP/IP transport. Back in the late 90s, I swear I remember hearing about a project... (2 Replies)
Discussion started by: deckard
2 Replies

6. Shell Programming and Scripting

disableing my USB devices using a script

hi guys I would like to disable my USB devices using a shell script(Linux machine) i.e(hoteplug,kernelpcmciacs,pcmciacs) Kindly suggest me at the earliest Thnks in advance regards ash (0 Replies)
Discussion started by: whizkidash
0 Replies

7. UNIX for Advanced & Expert Users

HP-UX 10.2 servers interoperability with IBM mass storage devices

Does anyone have succesfully interconnected HP-UX 10.2 HP 9000 K370 servers with A6885A HBA's, with an IBM Fastt storage server? I need to replace integrate both platforms. Interoperability matrices from manufacturers do not certified such integration. Thanks for anybody's help. (0 Replies)
Discussion started by: raltmannr
0 Replies

8. Red Hat

USB Devices

I am trying to get a flash card reader to work with my machine. My question is, are all of my USB ports screwed up? Do I need to buy a seperate USB controller? I does not appear that the onboard USB ports work. In trying to get it to work, I typed cat /proc/scsi/scsi and got this: # cat... (2 Replies)
Discussion started by: davidkretsch
2 Replies

9. Linux

Some problem about usb mass storage device

Dear linuxers, I have a usb mess storage device. My OS is rh as3 update2. Each time I use the command mount -t vfat /dev/sda1 /mnt/usb I got the error "the device is not a valid block device". I found from google that I should install the module sd_mod I use the command insmod sd_mod... (2 Replies)
Discussion started by: niukun
2 Replies
Login or Register to Ask a Question
usba(7D)																  usba(7D)

NAME
usba, usb - Solaris USB Architecture (USBA) USB provides a low-cost means for attaching peripheral devices, including mass-storage devices, keyboards, mice, and printers, to a system. For complete information on USB, go to the USB website at http://www.usb.org. USBA supports 126 hot-pluggable USB devices per USB bus. The maximum data transfer rate is 1.5 Mbits (low speed USB 1.x) or 12 Mbits (full speed USB 1.x) or 480 MBits (high speed USB 2.0) Mbits per second (Mbps). USBA adheres to the Universal Serial Bus 2.0 specification and provides a transport layer abstraction to USB client drivers. FILES
Listed below are drivers and modules which either utilize or are utilized by USBA. Drivers in /kernel/drv are 32 bit drivers ( only). Driv- ers in /kernel/drv/sparcv9 or /kernel/drv/amd64 are 64 bit drivers. +------------------------------------+----------------------------------+ | CLIENT DRIVER | FUNCTION/DEVICE | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]hid | HID class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]hubd | hub class | +------------------------------------+----------------------------------+ |/ker- | mass storage class | |nel/drv/[sparcv9|amd64/]scsa2usb | | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usbprn | printer class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_as | audio streaming class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_ac | audio control class | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb_mid | multi-interface device | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]usb- | Edgeport USB to serial port | |ser_edge | | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ugen | generic USB driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ohci | open host controller driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]uhci | universal host controller driver | +------------------------------------+----------------------------------+ |/kernel/drv/[sparcv9|amd64/]ehci | enhanced host controller driver | +------------------------------------+----------------------------------+ +--------------------------------+-----------------------------+ | CLIENT STREAMS MODULES | FUNCTION/DEVICE | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usbkbm | Keyboard | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usbms | Mouse | +--------------------------------+-----------------------------+ |/kernel/strmod/[sparcv9/]usb_ah | audio HID | +--------------------------------+-----------------------------+ +------------------------------------------+----------------+ | HOST CONTROLLER INTERFACE DRIVERS | DEVICE | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]ehci | Enhanced HCI | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]ohci | Open HCI | +------------------------------------------+----------------+ |/kernel/drv/[sparcv9/]uhci | Universal HCI | +------------------------------------------+----------------+ See attributes(5) for a description of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |PCI-based systems | +-----------------------------+-----------------------------+ |Availability |SUNWusb | +-----------------------------+-----------------------------+ cfgadm_usb(1M), attributes(5), ehci(7D), hid(7D), hubd(7D), ohci(7D), scsa2usb(7D), uhci(7D), usb_ac(7D), usb_as(7D), usb_mid(7D), usbprn(7D), usbser_edge(7D), ugen(7D), virtualkm(7D) Universal Serial Bus Specification 2.0. System Administration Guide: Basic Administration http://www.sun.com/io NOTES
Booting from USB mass-storage devices is not supported. The messages described below may appear on the system console as well as being logged. All messages are formatted in the following manner: WARNING: Error message... No driver found for device <device_name> (interface <number> node name=<node_name>) The installed Solaris software does not contain a supported driver for this hardware. <number> is the interface number. <name> is either the device path name or the device name. Draining callbacks timed out! An internal error occured. Please reboot your system. If this problem persists, contact your system vendor. 27 June 2005 usba(7D)