Bob,

Windows doesn't see the thumb drive as a "drive", like it would with a
typical desktop.  The drive actually gets auto-mounted in the users homedir.

To work around some shortcomings with SRSS 3.1, and to make this more
slightly transparent to users, you have to jump through a few hoops.

1) Create a script as described here:
http://blogs.sun.com/ThinkThin/entry/cam_mass_storage_workaround

Mine is slightly different, as I tried to make this easier for my
Windows-centric users.

#!/bin/sh
# Work-around for CAM and Mass Storage
#set -x
  for i in `/bin/cat /var/opt/SUNWbb/users.list`
  do
    echo $i
    if [ ! -d /tmp/SUNWut/mnt/$i ];then
      /bin/mkdir /tmp/SUNWut/mnt/$i
      ln -s /tmp/SUNWut/mnt/$i/noname /tmp/SUNWut/mnt/$i/usbdisk
      /bin/chown $i:other /tmp/SUNWut/mnt/$i
      /bin/chmod 500 /tmp/SUNWut/mnt/$i
    fi
  done
#End of Script

2) Create a wrapper script that launches uttsc with your preferred
options.  This is the app you will add to CAM.  Here's mine:

/opt/SUNWuttsc/bin/uttsc -m -r \
    disk:usbdisk=/tmp/SUNWut/mnt/$LOGNAME/usbdisk wts.server.ip

3) I had a problem with mount points going stale, ie staying around even
when the USB device was unplugged.  To fix this, I created a script that
finds them and clears them out, run as a cron job.

3a) If your patch version for SRSS Core Services (120880) is -03, you
need to fix /opt/SUNWut/bin/utdiskadm.  Make a copy, call it
utdiskadm.fix.  In line 712, replace the line
        UTUSERNAME="`logname`"
with the following:
        UTUSERNAME="$LOGNAME"
On my recent clean reinstall, I installed patch -06 (the latest).  The
utdiskadm script with that version is significantly different, so you
don't need to (and in fact can't) make this change.

3b) Here's my script that does the cleaning, I called it utfixmounts:

LOGFILE=/var/opt/SUNWut/log/messages

if [ "`/opt/SUNWut/bin/utdiskadm.fix -s -a 2>&1`" != "" ]; then
  for m in `/opt/SUNWut/bin/utdiskadm.fix -s -a 2>&1 | cut -f1 -d:`; do
    echo `date '+%b %e %T'` fixmount: fixing stale mountpoint $m >>
$LOGFILE;
    d=`echo $m|awk -F\/ '{ print $5 }'`;
    umount /tmp/SUNWut/mnt/$d/usbdisk;
    rm /tmp/SUNWut/mnt/$d/disk*;
    rmdir /tmp/SUNWut/mnt/$d/noname;
  done
fi

I have it cron'ed to run continuously, as it has little or no overhead.

That's it! :)  Now, when a user logs in and plugs in a USB device, they
point Windows Explorer to \\tsclient\usbdisk.  It's not completely
transparent, but it's the closest I could get.  This method seems to be
working for me.  Users appear to be using USB drives with no complaints.

I haven't tried SRSS 4 yet, so I can't say how this works with that.

Seth


Robert Prendergast wrote:
> Hello All,
> 
> Does anyone have any tips for auto-mounting of USB thumb drives in kiosk
> mode while using uttsc? I've used Craig's USB daemon script and it works
> like a champ, but no matter what I try, I cannot get Windows to see a
> thumb drive.
> 
> Thanks,
> Bob
> 
> 


-- 
Seth Galitzer
Systems Coordinator
Computing and Information Sciences
Kansas State University
[EMAIL PROTECTED]
785-532-7790
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to