You have two options...

1) forward one level higher directory /tmp/SUNWut/mnt/$USER/

which will require your users to dill down to their files

or

2) I have created a usbdiskd daemon for solving this problem.

Basically this script changes a soft link based on where the current disk is mounted.
You will forward /tmp/SUNWut/mnt/$USER/usbdisk through ICA and this script will change this soft link to point to the currently mounted "disk#" folder.

usbdiskd.sh

#!/bin/sh
UTDISKADM=/opt/SUNWut/bin/utdiskadm
USBDIR=/tmp/SUNWut/mnt/$USER/usbdisk
while [ 1 ]
do
        DISK=`/bin/ksh $UTDISKADM -l | grep SUNWut | awk '{ print $3 }'`
        if [ "$DISK" != "" ]; then
		ln -s -f $DISK $USBDIR 
	else
	        rm -r $USBDIR
        fi
        sleep 5
done
#end

Call usbdiskd.sh before starting wfica in your CAM script.

This script exposes a bug in utdiskadm where logname is called, but cannot be resolved due to CAM usage.

You need to patch utdiskadm using the following commands

cp /opt/SUNWut/bin/utdiskadm /opt/SUNWut/bin/utdiskadm.orig
sed 's/`logname`/$USER/' /opt/SUNWut/bin/utdiskadm.orig > /opt/SUNWut/bin/utdiskadm

Unfortunately, this fix could be overwritten in an SRSS patch. So be aware of it and you will be allright.

Brad

Mihai Nastase wrote:
Hi,

On Our Sparc Solaris 10 Sunray 3.1 installation we have an issue with
the local USB drive DTU attached. We export /tmp/SUNWut/mnt/$USER/disk1
with ICA client and is presented as D: drive in Windows. This goes well
and when the user will logoff and remove the USB this is correctly
unmounted (the /tmp/SUNWut/mnt/$USER is empty). When USB (the same or
other) is reinserted this is mounted as disk2 or 3 or 4 or 1 apparently
at random, although there is no other USB drive mounted. Normally it
would be expected to be mounted again as disk1. The problem results in
USB not always being presented in Citrix (because we export disk1). Is
there a solution? Your answer would be greatly appreciated.

Thanks,
Mihai
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users
  

--
Brad Lackey
Desktop Product Lead
US Software Practice
(720) 548-3339
[EMAIL PROTECTED]
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to