Understanding dmesg and usb hardware mounting


 
Thread Tools Search this Thread
Operating Systems Solaris Understanding dmesg and usb hardware mounting
# 1  
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
# 2  
Old 12-17-2010
Maybe automountd is remounting the ejected device, since it does not actually eject? Mount point does not seem to be a valid argument to eject, but who knows!

Maybe you need to turn it off at some lower level to keep the lower levels happy:

Man Page for cfgadm_usb (OpenSolaris Section 1m) - The UNIX and Linux Forums
# 3  
Old 12-20-2010
I agree that it seems that the lower levels need to be apeased somehow. I am just out of ideas on how to make that happen. As for cfgadm -l
I don't see any of my USB ports all I get is the SCSI Bus.

# 4  
Old 12-20-2010
Do you have this lib:

Code:
DESCRIPTION
       The    Universal    Serial    Bus   (USB)   hardware-specific   library
       /usr/lib/cfgadm/usb.so.1 provides the functionality  for  administering
       USB  devices  via the cfgadm(1M) command. cfgadm operates on attachment
       points. For details regarding attachment points, refer to cfgadm(1M).

# 5  
Old 12-20-2010
Ref libaries

Ok, I am on the same page with you, cfgadm does not list anything for usb because I am missing that libary which provides cfgadm instructions on how to interact with different hardware. So how do I go about adding an attachment point, ie usb.so.1 ?
# 6  
Old 12-20-2010
When you find the package containing the library and its run-time prerequisites, and install them, then you can explore this command.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

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

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

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

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

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

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

9. 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
Login or Register to Ask a Question