OpenSolaris

Printable Version Enter a New Search
Bug ID 6486759
Synopsis TX - hot plugging USB device can lead to inaccessible cdrom
State 10-Fix Delivered (Fix available in build)
Category:Subcategory audit:utility
Keywords CC_Evaluation | s10u3-reviewed
Responsible Engineer Ashish Joshi
Reported Against s10u3_08 , solaris_10u4
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_67
Fixed In snv_67
Release Fixed solaris_nevada(snv_67) , solaris_10u5(s10u5_04) (Bug ID:2148511)
Related Bugs 6612994 , 6868082
Submit Date 26-October-2006
Last Update Date 13-May-2009
Description
s10u3_08 with TX.

All tests performed by root user in TP workspace.

Inserted DOS formatted USB memory stick, allocated rmdisk0 to root user in TP zone.
(This USB  device has many files and directories on it verified working on Solaris_Nevada system.)

After inserting device on TX system a window is launched "Media Format /dev/rdsk/c2t0d0p0" (in fact two of these windows were launched), the device is not mounted (df -k does not list it).

Also when rmdisk0 is allocated, cdrom0 is not available in allocated devices or in the available devices windows.. Removing the USB memory stick before deallocating it in the device manager, the user is left with only audio0 as an available device and no devices listed in allocated.

Closing the Device allocation manager and re-launching it, audio0 is still the only device listed. Reboot, again only the audio0 is listed in the device allocation manager

touch /reconfigure, reboot - rmdisk0 is now listed as an available device, however cdrom0 is still not listed. touch /reconfigure again and reboot - same result.
Allocating  rmdisk0 and inserting a good documentation cdrom into the drive - I get the option to format the drive /dev/rdsk/c0t0d0s0, this time three windows offering to format were launched..

Reinserting the USB memory stick - rmdisk0 gets moved back to available devices, and cdrom0 magically reappears.
Dellocating all devices, and removing the USB memory stick cdrom0 and rmdisk0 again disappear.
Again rebooting after touch /reconfigure - only audio0 and rmdisk0 are listed as devices. I am now left with a system which requires me to insert a memory stick in order to see cdrom0, and on doing so I cannot open any removable media devices, (memory stick or cdrom).
Work Around
Here's a workaround - as root in a global zone terminal,
1. Save /etc/security/device_allocate and /etc/security/device_maps
2. After you hotplug a USB, remove /etc/security/device_allocate and
   /etc/security/device_maps
3. Run
   /usr/sbin/mkdevalloc > /etc/security/device_allocate
   /usr/sbin/mkdevmaps > /etc/security/device_maps
   This will create new device_allocate and device_maps with the correct paths.
4. Add this to the top of /etc/security/device_allocate
   DEVICE_ALLOCATION=ON

	-=-=-=-

On Solaris 10, note that the patches 128404-01 (for Sparc) & 128405-01 (for x86) avoid this problem,
but if the problem occurred before the patch is installed, you'll still need to run the following command as root in a global zone terminal after installing the patch:

   /usr/sbin/mkdevmaps > /etc/security/device_maps

(See the "Note 2" in the patches README files).
Comments
N/A