Disk Usage

Every undergraduate user has 1024 MB of disk. All other students, faculty, and staff do not have such limits. Quota usage can be found by running the following command in a terminal:

quota -s username

If you are out of disk quota, you may see where your space is used by running the disk-usage script installed on our systems.

Example:
leo@csc:~$ cd ~
leo@csc:~$ disk-usage
Largest directories in /home/staff/leo
8.85547MB ./bin/
5.85156MB ./tmp/
3.83594MB ./bin/lib/
2.96875MB ./gnome/
2.60547MB ./bin/sbin/
2.20703MB ./gnome/workspace/
1.40234MB ./switchsnmp/
1.1875MB ./bin/bin/
1020KB ./bin/share/
1016KB ./bin/share/man/
628KB ./gnome/Documents/

In this case, the directory using the most space is my bin directory.

Clean Up

To free some space, you may do one or more of the following:

  1. Clean Mozilla firefox cache files

    On the terminal, run the clear-firefox-cache command.

  2. Clear out trash

    Clear out the trash bin either on their desktop by right clicking on "Trash" -> "Empty", or remove the files under ~/.local/share/Trash

    If you're on the terminal, run the clear-trash command.

Quota Increase (staff only)

If you deem that the user has a legitimate reason for using the allotted quota, follow the next few steps to increase their quota.

  1. Determine user's fileserver

    $ cd ; pwd
    /home/ugc/username
    $ df |grep ugc
    nsg:/export/ug       381885664  68428480 294058528  19% /home/ugc
    
    nsg is the file server.
  2. Log in to the file server

  3. Edit the quota

    needs MB Soft Quota and MB Hard Quota
    setquota -u -F vfsv1 $username     /export/ug

Quota Report

You can build a report on users' quota limits by running:

for i in `/bin/ls` ; do echo -ne "$i," >> users2.txt ; quota -s $i | tail -n 1 | awk '{print $2}' >> users2.txt ; done 

You can use this list to set quotas for users without quotas by running

for i in `cat users.txt |grep quotas|awk -F, '{print $1}'` ; do setquota -u -F vfsv1 $i 1048576 1572864 51200 92160 /export/ug ; done