Why can't I login graphically? : Going over quota


NOTE: Most users in the College are given 2GB of disk space with their account. If you are a student you can request an increase with written (email) permission from your instructor. For projects related to a class, we can also create 'scratch' space. For more information please contact help@engineering.ucsb.edu.

 

How to get under quota: Finding and removing excess files.

It is the user’s responsibility to monitor and manage disk usage and keep it under quota. If you happen to go over your quota, you will be unable to log in graphically to any Unix computer. You can, however, still log in remotely through SSH or through the "failsafe" login when sitting at the computer.

In order to get to a non-graphical login screen, just hold CTRL-ALT and any one of the function keys F3-F6. Once you have followed the steps below and wish to re-attempt a graphical login, simply hold CTRL-ALT and either F1, F2 or F7 to return to the graphical login screen. 

One way to help with quota issues is deleting Firefox's cache.

  1. Go to the directory: cd ~/.cache/mozilla/firefox
  2. View the contents: ls
  3. You should see a folder that looks like RandomString.default.
  4. cd into this directory.
  5. Delete the Cache folder: rm -r Cache
  6. Check your quota again and see if that helped: quota -v

Finding Out if You Are Over Quota

For Linux or Unix machines, you can view your current disk usage and quota by executing the following command:

quota –v

You should see output similar to this:

Disk quotas for user test_user (uid 65331):
Filesystem blocks quota limit grace files quota limit grace
/filesys 140732 200000 210000 4362 20000 21000

There are two resources limited by our quota systems: disk space and number of files. Disk space used is listed under "blocks," with the corresponding limits listed after it under "quota" and "limit." Your number of files used is listed under "files," with the quota also following. If either your disk space or number of files used is greater than the "quota" (soft limit) or "limit" (hard limit) you should attempt reduce your resource usage.

Determining Your Current Disk Space Usage
When in your home in directory, use the command:

du -sm * .??* | sort -rn | head

to see a list of your 10 largest files or directories (biggest displayed first). This command also works from within sub-directories allowing you to get a finer-grain view of usage. You can judge which are good candidates to delete or compress.

Determining Your Current File Usage

When in your home directory, use the command:

/usr/local/bin/countfiles

to see your 10 directories with the most amount of files in them. This command also works from within sub-directories allowing you to get a finer-grain view of usage. You can judge which are good candidates to delete or archive.

Removing/Archiving Files and Directories

When near or over quota, look for your cache (or temporary files) in your web browser. These unneeded and space gobbling cache (or temporary) files are often the worst offenders. They can best be deleted from within your browser program.

Delete any core dump files when you are finished analyzing them.

Your user interface can also produce extraneous cache files. They are located in the hidden subdirectories, .kde/share, .gnome/share. You can examine all of your hidden files, when in your login directory, with the command: ls –la | more

You can also combine multiple files into one (archive) and compress large files to reduce your file and space usage. The "tar" program takes many files and turns them into one. To learn more about it type "man tar." The "gzip" program is used to compress files in size. Type "man gzip" to learn more about it. Also there are many tutorials available on the web, google "tar gzip" to find some.

Troubleshooting Problems

If you believe that the quota program is not accurately listing your current disk usage you can run the following command from within your home directory:

du . -s

it will give you a quick summary of current disk usage.

SImilarly the count files program (/usr/local/bin/countfiles) will give a total of all the files in the current directory.

If either of these counts are different from that listed my the quota program, please email help@engineering.ucsb.edu.

back to top

Tags: account, countfiles, directory, home, quota
Last update:
2014-01-23 21:15
Author:
Richard Kip, Troy Smith
Revision:
1.16
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.