cdrom support and other usb devices

Can someone please clarify (using sun connector RDP software)

I have successfully made memory sticks work on sunray using sun connector software

I understand that floppy disks will not work at all due to unavailability of drivers (though I wish Sun would qualify a driver and a floppy for legacy, let me know if I am incorrect please)

I have checked http://www.sun.com/io_technologies/sunray.html. What is the statement on CDroms. I don't see any there.

I have tried hooking one up (IOmega) and find that nothing gets recognized until a CD is placed into drive. then the drive sees the data, but ultimately hangs and is unusable. the disk will not eject pressing the eject button either. is there a process to follow to read the data consistently without hanging? is there a command to eject the disk under sun connector?

thank you.

[870 byte] By [tucker] at [2007-11-26 9:01:32]
# 1

CDs get mounted under the same mount directory as memory sticks. You can use "utdiskadm -l" (from Solaris or Linux) to list the mount point. It is this mount point that is passed as an argument to Sun Ray connector. The eject operation can only be performed on a device, not a mount point. Since it is not possible to pass device arguments to the connector, you cannot eject from within it.

You can eject from the host OS (Solaris or Linux) using the uteject command. This command will unmount the filesystem and eject the media. Make sure all applications accessing the device are closed before ejecting it.

Regarding your experience:

How do you know the drive sees the data ?

Did you try running utdiskadm -l to see whether it mounted ?

How did you determine it hangs ?

What exactly hangs ? Did you try to read something & did the command hang ?

If you have administrator privileges, you can look at the following log files to see whether there were any errors.

/var/opt/SUNWut/log/utstoraged.log

/var/opt/SUNWut/log/utmountd.log

aw11 at 2007-7-6 23:08:02 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 2

thank you for your reply.

I have had good success with the "general" connection to the sunray using JDS default desktop. I can make the usb stick work as well as the CDrom. I agree with you about the device and the uteject command. it works well from the default desktop.

using sunray connector, I know the system sees the data because I can "CD" to the device (running uttsc -m -b -r disk:USB=/tmp/SUNWut/mnt/$USER/usbdisk") from the windows system. the disk got hung up in the past on an install of a product (perhaps not the best test). The install began and then just stopped. by the way, in a second window that connected to solaris, I can see the proper directories created under /tmp/SUNWut/mnt/$USER)

perhaps considering the hang a fluke, the interesting thing is to get the CD to eject under windows. as you stated, it is a mountpoint. I tried having "utaction" call for an eject disk upon entry or exit to the program. the idea is to have a "station" where you put your card in, use the CDrom, finish, pull your card out, and it would eject your CD. not the best solution, but OK. (machine set up with CARD USERS/CAM mode and NOCARD/none) but could not get this to work. I am guessing here, but as soon as you remove your card, the USB device gets owned by root ( I saw the device move to root in the /tmp/SUNWut/mnt area), and utaction with a uteject does not work since you don't own the disk anymore.

if you have any further ideas on how to get a CDrom drive to work under sun connector, I would appreciate it. Since I am considering a station for CD access, some kind a background daemon that could eject the CD when card is not in the sunray would be good.

thank you.

tucker at 2007-7-6 23:08:02 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 3

Regarding the install hang:

Not being very knowledgeable on MS Windows, I cannot say this for sure, but I don't think Windows XP lets you install software from a remote desktop session. It only lets you do installations from the console. On Windows 2003, you are expected to change the terminal services mode to install-mode.

Other than trying to install software, does regular file read from a CD through SR connector give you a problem ?

Regarding ejecting on disconnect, I'm afraid I don't have any good ideas.

Your daemon idea is ok. It should run as root & you'll have to make utaction send it the absolute path (the one that includes the MAC address IEEE.../dev/rdsk/..) to the full device (s2 on SPARC, p0 on Solx86). Also make sure you give enough time until the device path can be stat'ed first. You can use the stat(2) structure to see whether it is really owned by root & a dkio(7I) ioctl before deciding whether you should eject or not.

aw11 at 2007-7-6 23:08:02 > top of Java-index,Desktop,Sun Ray Software - General Discussion...
# 4

thank you again for your feedback.

you have raised a very nice point about installing versus just reading files. I will double check that. I did do some more testing yesterday before your follow up note. I had no problems just reading files. but I will revisit the installation versus just reading issue.

I will also test your other suggestions for the daemon. the gotcha may be that sunray server software will not allow you to eject a device on a non logged in session by root ( remember, I saw the cdrom move to under root in /tmp/SUNWut/mnt, and when you pull the card out of the sunray, I was in "non card, no login mode"). well, you never know unless you test.

thank you again for your help.

tucker at 2007-7-6 23:08:02 > top of Java-index,Desktop,Sun Ray Software - General Discussion...