Sponsored Content
Operating Systems Solaris Understanding dmesg and usb hardware mounting Post 302481419 by striker0010 on Friday 17th of December 2010 12:20:06 PM
Old 12-17-2010
Understanding dmesg and usb hardware mounting

The Scenario:

Solaris 8 box with USB ports on mobo. Two USB devices both fat32 filesystems and mount with the fs type pcfs, device A is a USB thumb drive (1gb), device B is a External HDD (500gb). Insert device A into a usb port; use dmesg output to find the device path (usb@a/storage@2#). Look at ls -l /dev/dsk grep storage@2# to find out what c#t#d#s# disk that device is tied to. Mount the device (/mnt/usb); ls to check; unmount device (umount /mnt/usb). Unplug device A.

This all works fine, now pull device A out and insert device B into the same USB port. Run dmesg and this is the output

dmesg output
Code:
Dec 17 15:10:54 ubox usba: [ID 349649 kern.info] usba:    offlining scsa2usb1 failed (-5)
Dec 17 15:10:54 ubox usba: [ID 464422 kern.warning]  WARNING: /pci@1e,600000/usb@a/storage@2 (scsa2usb1): Cannot access device. Please reconnect SanDisk, U3 Cruzer Micro, 3349530F3010A88F

Now if I try and repeat the mounting steps over for deviceB it will not mount I get a message along the lines of no disk, however if I pull it reinsert device A then run the same mount command it works fine.

Each time I pull out a usb device I see that offlining scsa2usb1 failed (-5) message.

To me it seems like I am not properly closing out of the device, and it is being cached. The only way to solve this problem I have found thus far is a restart. But after the first device either A or B had been mounted then unmount and replaced I hit the same issue.

Things that I have tried to fix this.
eject /dev/dsk/c#t#d#s# where the numbers map to the usb device
eject /mount point
cfgadm -C
stoping and starting volmgt
calling vold

P.S. My system will not automount to /rmdisk infact that dir does not exist on my root

Questions:
1.) What am I doing wrong here, is it in the unmounting?
2.) What is offlining and why does it fail?
3.) Does some cache of connected devices exist and can it be reset?
4.) Is there a way to cycle the power in the USB port or internal hub to reset device mappings, if so how?

Last edited by striker0010; 12-17-2010 at 01:23 PM.. Reason: Left out questions
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

mounting USB

Hi I was trying to mount my USB flashdrive on solaris 10 and I am getting the message saying that (I have already gone through the previous blogs in the forum) mount: Block device required. I have tried most of the possible ways. #rmformat(gives me the necessary information about my flash... (1 Reply)
Discussion started by: akhil1460
1 Replies

2. UNIX for Dummies Questions & Answers

USB flash drive is not mounting what to do...?

hello forum.. i am using RHEL 4.0 and my system is dual boot.normally the usb flash drive should be auto mount , but in my system i am unable to mount the drive plz help... i am a new user so plz give me in detail. thank u in advance. (5 Replies)
Discussion started by: manoranjan
5 Replies

3. Linux

mounting usb device

Hi Folks, I want to know how to mount usb device (cd,dvd etc) in linux, Regards, Manoj (4 Replies)
Discussion started by: manoj.solaris
4 Replies

4. Solaris

mounting usb drive

hi, first of all, i would really like to know how to find out where my usb is in the system. if i "cd to /dev/usb i have a hub0 to hub4 and hid0 -- hid5 .. how do i know where my usb is? and i guess once i find out which one my usb is at, i can do something like "mount /dev/usb/xxx /tmp" ... (5 Replies)
Discussion started by: k2k
5 Replies

5. UNIX for Dummies Questions & Answers

Need help with mounting my USB

My previous post seems to be erased and I didn't get any help. I'm logged as root now but no mounting command seems to work, I've tried: Mount -t vfat /dev/sdc1 /mnt/USB Changing "sdc1" for hda1-7, and sdc1-7, and still nothing. Sometimes i get: "special device not found" and others "device... (4 Replies)
Discussion started by: Dax01
4 Replies

6. SCO

Mounting a USB DRIVE- SCO_SV

I wish to mount a USB pen drive to allow me copy files from the pc to the pen drive. when I insert the dirve I get a message umass Attached: Kingston DataTraveler 2.0, rev 2.0, usb_id 2 The version of unix is SCO_SV. I cannot see any new file in the /dev folder. I was looking for... (5 Replies)
Discussion started by: ralph2010
5 Replies

7. Solaris

Mounting USB HD

I am very new to Solaris. The machine I am working with is running Solaris 10. I have a 1.5 TB hard drive plugged into a USB dock plugged into the Solaris machine. I ran 'cfgadm -al' and can see that the usb0/1 is usb-storage that was not there before. How do i mount this drive and format... (3 Replies)
Discussion started by: mcdef
3 Replies

8. 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

9. Programming

Look-up USB mounting point

Hi all, I'm developing a short program to look-up for all devices connected to the computer. Using udev and libusb libraries I achieved some progress but I can not find the way to find the mount point. For instance, given a device that I can retrieve using libusb, I would like to know... (4 Replies)
Discussion started by: Carles Rabaneda
4 Replies
lsusb(8)							Linux USB Utilities							  lsusb(8)

NAME
lsusb - list USB devices SYNOPSIS
lsusb [ options ] DESCRIPTION
lsusb is a utility for displaying information about USB buses in the system and the devices connected to them. OPTIONS
-v, --verbose Tells lsusb to be verbose and display detailed information about the devices shown. This includes configuration descriptors for the device's current speed. Class descriptors will be shown, when available, for USB device classes including hub, audio, HID, communi- cations, and chipcard. -s [[bus]:][devnum] Show only devices in specified bus and/or devnum. Both ID's are given in decimal and may be omitted. -d [vendor]:[product] Show only devices with the specified vendor and product ID. Both ID's are given in hexadecimal. -D device Do not scan the /dev/bus/usb directory, instead display only information about the device whose device file is given. The device file should be something like /dev/bus/usb/001/001. This option displays detailed information like the v option; you must be root to do this. -t Tells lsusb to dump the physical USB device hierarchy as a tree. This overrides the v option. -V, --version Print version information on standard output, then exit successfully. RETURN VALUE
If the specified device is not found, a non-zero exit code is returned. FILES
/var/lib/usbutils/usb.ids A list of all known USB ID's (vendors, products, classes, subclasses and protocols). SEE ALSO
lspci(8), usbview(8). AUTHOR
Thomas Sailer, <sailer@ife.ee.ethz.ch>. usbutils-007 6 May 2009 lsusb(8)
All times are GMT -4. The time now is 11:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy