SUMMARY2: Mounting USB device on SunBlade1500

From: Carolyn Mayr {ITSD/CS} <carolyn_at_cs.usna.edu>
Date: Fri Mar 11 2005 - 11:59:23 EST
Two more people to thank with their replies:

<jreid@vnet.net>
Octave Orgeron <unixconsole@yahoo.com>

	Carolyn



###########################################
From: Joe Reid <jreid@vnet.net>
No direct help, but when I put my usb2.0 drive in my usb 1.1 sun 
(ax1105-500 sparc engine board) there's a message in /var/adm/messages 
listing the devices, I'm pretty sure I succeeded getting them mounted - 
no, not as a non-root user.  But that should point you in the rigth 
direction.  FWIW, I was using sol10...

my drives was a PQI I-stick2 512mb



###########################################
From: Octave Orgeron <unixconsole@yahoo.com>
I would recommend that you use Solaris 10 GA for usb devices. It has
support for memory sticks, usb mass storage, cameras, keyboards/mice,
cd burners, etc. In Solaris 9, some of these devices were supported,
but a normal user could not unmount them. This has changed in Solaris
10. You can setup RBAC on S9 to grant media management to a user. 






------------- Begin Forwarded Message -------------
Delivered-To: sunmanagers@sunmanagers.org
Date: Fri, 11 Mar 2005 11:54:59 -0500 (EST)
From: Carolyn Mayr {ITSD/CS} <carolyn@cs.usna.edu>
To: sunmanagers@sunmanagers.org


Thanks so much to:

John Malick <john@starinc.com>
the hatter <sunmanagers@bang.meep.org>
Will Dowling <william.m.dowling@nuim.ie>
David A Stewart <David.Stewart@ee.ed.ac.uk>
"NO UCE" <nouce@mighty.co.za>

Replies have been posted below.

		Carolyn Mayr
		



###########################################
From: "NO UCE" <nouce@mighty.co.za>

I have used USB memory sticks - no hassles - on a SB100. SB50, V240, V280R
and ... and Ultra 10 with a NEC USB card :-)

The big thing is to insert the usb device, stop volume management, mkdir
/rmdisk and restart.

Thereafter all works: eject rmdisk etc - till you reboot . Then you have to
redo unless device is inserted while rebooting.

www.sun.com/bigadmin has some docs on this. USB2.0 support is only available
in Sol 9.

Make sure you are patched to data for Sol 8 for acceptable USB support.



###########################################
From: David A Stewart <David.Stewart@ee.ed.ac.uk>

Here's how we do it in Solaris 8 on SunBlade 1500s.

1. When you plug the device in a few lines appear in /var/adm/messages
from scsa2usb. Find the appropriate line and note the device name.

2. Look through /dev/dsk to find the appropriate symbolic links. Pick
the first one.

3. Add ":c" to the end of the symbolic link and mount it.

4. Remember to unmount it before you remove the device.

Doing it from the shell looks something like this.

# grep "(scsa2usb.) online" /var/adm/messages
Mar 10 16:01:15 myhost unix: /pci@1e,600000/usb@a/storage@1 (scsa2usb2) online
# ls -l /dev/dsk | grep "/pci@1e,600000/usb@a/storage@1" 
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s0 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:a
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s1 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:b
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s2 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:c
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s3 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:d
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s4 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:e
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s5 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:f
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s6 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:g
lrwxrwxrwx   1 root     root          54 Apr  1  2004 c3t0d0s7 -> 
../../devices/pci@1e,600000/usb@a/storage@1/disk@0,0:h
# mount -Fpcfs /dev/dsk/c3t0d0s0:c /mnt

If it fails to mount then the device is probably incompatible.
And then to unmount it's just...

# umount /mnt

This all has to be done as root. If you script it and make the
script setuid root then anyone can do it.

We have two scripts "usbmount" and "usbunmount"

This has been written and researched by my collegue Chris Rudd 
(Chris.Rudd@ed.ac.uk).  
We find that not all USB devices work, only some.  Chris has recently
updated the scripts to cover the situation where folk remove the 
USB devices befoer running the "usbunmount" command.
We can send the scripts if you would like to see them.



###########################################
From: Will Dowling <william.m.dowling@nuim.ie>

What you could do is plug in the usb device and then su to
root. issue the commands 
/etc/init.d/volmgt stop
then 
/etc/init.d/volmgt start
the usb device will then automount. The usb device can now
automount everytime you plug it in. You won't have to issue
those commands again.
But you must do that for each different type of usb device.
Hope that helps.


###########################################
From: the hatter <sunmanagers@bang.meep.org>

I can do you the first half, but not the second, so hope fully someone's
got the full answer for you, because that'd be useful.  I don't use vold,
so if you're frequently adding and removing combinations of usb devices,
then it'll be a bit irritating to keep changing the exact device name.  In
/etc/vfstab, I have :

/dev/dsk/c3t0d0s0:1     -       /mounts/clie    pcfs    -       no      rw

Or from the commandline:

 mount -F pcfs /dev/dsk/c3t0d0s0:1 /mounts/clie

That's using one of the usb2 ports on the back of my blade1500, if you're
using one of the front-mounted usb1.1 ports, try c1t0d0s0:1 as the device.
I'm not quite sure how all the numbering for bus and device works, but
worst case, ls -lL /dev/dsk will show you the dates the devices were last
created, so you can see which one you just created when you plugged it in.
The :1 bit is solaris's way of saying "first dos-like partition table".

I guess you've looked at /var/adm/messages and it lists something deep and
meaningful like:

Mar 10 15:39:46 angel usba10: [ID 855233 kern.info] USB-device: storage@2,
usba10_scsa2usb0 at bus address 2
Mar 10 15:39:46 angel usba10: [ID 349649 kern.info]     Sony  PEG Mass
Storage
Mar 10 15:39:46 angel genunix: [ID 936769 kern.info] usba10_scsa2usb0 is
/pci@1e,600000/pci@2/usb@8,1/storage@2
Mar 10 15:39:46 angel genunix: [ID 408114 kern.info]
/pci@1e,600000/pci@2/usb@8,1/storage@2 (usba10_scsa2usb0) online

(and several more lines of address mapping junk)



###########################################
From: John Malick <john@starinc.com>

I have had issues with my SunBlade150 as well but figured out a scenario 
that works. The SB1500 may be the same.

What I found may not be applicable in your situation since it requires 
reboots:

1. Insert the USB memory stick
2. Perform a reconfigure boot

Vold mounts it for you..

The problem is that if you have another USB stick, even the same brand, 
and insert that it won't automount unless you do another reconfigure 
reboot (PAIN).

The user would then 'eject rmdisk' from the command line to unmount. You 
can re-insert it at any time and it automounts.

If it does not automount you need to become root user and run the following:

# mount -F pcfs /dev/dsk/c2t0d0s0:c /mnt

The controller/target may be different for you. Since this method did 
not automount you must umount it manually as well before removing to 
reduce the risk of losing data.

Hope this helps.





ORIGINAL MESSAGE:

Carolyn Mayr {ITSD/CS} wrote:
> Does anyone know the correct procedure for mounting a USB device
> on specifically on a SunBlade 1500?  I need to (a) mount it
> and (b) as a non-root user.
> 
> I am running Solaris 9 4/04 with the latest vold patch.
> I have already spoken to Sun tech support for a number of
> weeks and they were unable to give me a solution.
> 
> I was pointed to Sunsolve document 74753 but it wasn't useful.
> I do not see a /dev/sda1 device name so I don't know the
> mount command device to use.  I could not find any specific
> SunBlade 1500 step-by-step documentation.
> 
> I've tried 2 Lexar, 1 Samsung and one unknown USB device.
> Sun told me the only way for a non-root user is via RBAC.
> Sun said the other drives probably didn't mount as they may 
> have not been USB 1.1 or a Sun-compatible device. 
> 
> Please help.  Thank you.
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Carolyn Mayr (IT Specialist/UNIX sysadm) Voice: 410-293-6808 (sec-6800)
> Computer Science Department, DivMath&Sci Email: carolyn@cs.usna.edu     
> 572M Holloway Road, Michelson Hall, 9F   FAX:   410-293-2686
> U.S. Naval Academy                       WWW:   http://www.cs.usna.edu
> Annapolis, MD  21402-5002                USNA:  410-293-1000
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers

------------- End Forwarded Message -------------


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Mayr (IT Specialist/UNIX sysadm) Voice: 410-293-6808 (sec-6800)
Computer Science Department, DivMath&Sci Email: carolyn@cs.usna.edu     
572M Holloway Road, Michelson Hall, 9F   FAX:   410-293-2686
U.S. Naval Academy                       WWW:   http://www.cs.usna.edu
Annapolis, MD  21402-5002                USNA:  410-293-1000
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Mar 11 12:00:05 2005

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:44 EST