Using a USB memory-stick/drive on CSE Linux machines
1. Plug the USB stick in the USB slot on the FRONT of the computer. Only computers with USB ports at the front can be used.
2. To mount your USB stick, type in an xterm:
priv usb mount
3. To access all files on your USB stick, type in an xterm:
cd /mnt/usb/N
where N is the number that was displayed when you mounted the USB memory stick.
An example of this is as follows. All commands are executed in an xterm.
% priv usb mount
Device 1 successfully mounted on /mnt/usb/1
% cd /mnt/usb/1
/mnt/usb/1% ls
file1.txt file2.txt ass4.java diary.txt
4. To remove your USB memory stick, type in an xterm:
priv usb unmount
and you will be alerted with a message similar to: /mnt/usb/1 unmounted successfully
Now you can remove the Memory Stick safely.
More detailed instructions can be found at:
http://www.cse.unsw.edu.au/faq/questions/other-usbdrive.html
In an xterm, type priv usb for all USB commands and how to use them. (Without the quotation marks).
USB Stick commands:
|
List contents (Make sure you are in /mnt/usb/N/): ls
Copying files (From home directory - USB stick): cp FILE_NAME /mnt/usb/N
Copying files (From USB stick - home directory): cp /mnt/usb/N/FILE_NAME ~/
Deleting a file (From USB stick): rm FILE_NAME
|