Using a USB drive on a Sun Ray terminal


Note that mounted drives are only available on the sun ray server to which your sun ray terminal is attached.

Also note that mounting of USB drives is not available if you have used the sun ray login screen to connect to a remote host.

USB drives are not backed up! Be sure to store any data you want backed up on a supported filesystem like /fs/junkfood

NTFS formatted disks are not currently supported. Staff is working on enabling this feature.


Mounting a USB drive

  1. Insert your USB drive into a free USB port on the back of the Sun ray terminal.
  2. If the drive already has a common file system on it, it will be automatically mounted under /tmp/SUNWut/mnt/<username>

Locating your mounted drive

Drives are automatically mounted under /tmp/SUNWut/mnt/<username>, where <username> is your username. You may want to simplify accessing your USB drives by creating a symbolic link to this location in your home directory:

% cd
% ln -s /tmp/SUNWut/mnt/$USER usbdrive

Then you can simply refer to your usb drive as ~/usbdrive/drive1.

You can also run /opt/SUNWut/bin/utdiskadm -l to get a list of all your mounted drives:

% /opt/SUNWut/bin/utdiskadm -l
Device Partition Mount Path
------ --------- ----------
disk1 disk1s2 /tmp/SUNWut/mnt/bplecs/unnamed

Moving data to and from your drive

Simply copy data as you would with any other UNIX directory:

% cp file.c /tmp/SUNWut/mnt/bplecs/disk1

Unmounting your drive

Be sure to unmount your drive before removing it!

Filesystem caching means that not all your data is really on the USB device until the buffers flush and the drive is unmounted. To be sure you won't corrupt your data, it's important to tell the system that you're about to unplug the disk.

To unmount your USB drive, run:

% /opt/SUNWut/bin/utdiskadm -r disk1
disk1 is ready for unplugging

If your drive isn't mounted as disk1, specify the correct device alias as returned by /opt/SUNWut/bin/utdiskadm -l.

Advanced usage

For advanced usage, such as formatting and partitioning USB drives, see the sun ray server documentation.