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
rmmount(1)							   User Commands							rmmount(1)

NAME
rmmount, rmumount - mounts and unmounts removable media SYNOPSIS
rmmount [-u] [-o options] [nickname | device] [mount_point] rmmount [-d] [-l] rmumount [nickname | mount_point | device] rmumount [-d] [-l] DESCRIPTION
The rmmount and rmumount utilities mount and unmount removable or hot-pluggable volumes. The optional argument can identify the volume by its volume label, mount point or block device path. rmmount can also take additional mount options if the user has sufficient privileges to override the default mount options. Unmounting removable media does not result in its ejection. Use eject(1) to optionally unmount and eject the media. OPTIONS
The following options are supported for rmmount and rmumount: -d Display the device path of the default device. This device is used if no arguments are supplied. -l Display the paths and nicknames of mountable devices. The following options are supported for rmmount only: -o options Display mount options. This option can only be used by users that have privileges to override the system default options. -u Unmounts the volume as opposed to mounting it. OPERANDS
The following operands are supported: device Specifies which device to mount or unmount, by the name it appears in the directory /dev. mount_point Specifies which device to mount or unmount, by the name it appears in the directory /dev. nickname Specifies which device to mount or unmount, by its nickname as known to this command. EXAMPLES
Example 1 Mounting a USB disk The following example mounts a USB disk with a volume label of PHOTOS: example% rmmount PHOTOS Example 2 Unmounting a pcfs Volume The following example unmounts a pcfs volume by device path: example% rmumount /dev/dsk/c4t0d0p0:1 EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/media Default mount root. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWrmvolmgr | +-----------------------------+-----------------------------+ |Interface Stability |Uncommitted | +-----------------------------+-----------------------------+ SEE ALSO
eject(1), attributes(5) SunOS 5.11 18 Sep 2006 rmmount(1)
All times are GMT -4. The time now is 09:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy