Linux Disk Quotas


Linux home directories have disk quotas that limit the total disk usage. The soft disk quota is 100-mb. You may exceed it for up to seven days. The hard limit is 110-mb. You may not exceed it. If you do exceed either limit you will be unable to login normally. You will need to login using text console mode and remove some files to lower your disk quota.

How to Lower Your Disk Usage

1. Hold Alt and Ctr keys then press F1 key. This brings up a console window.
2. Enter your user name and password to login.
3. Use the suggestions for lowering disk usage below to find files to remove.
4. Enter "exit" or "logout" when done.
5. Hold Alt and Ctr keys then press F7 key.


Suggestions For Lowering Disk Usage

Find Your Disk Usage. Enter: "cd; du -s .[A-z]* * | sort -n" to show how much disk space each file and directory is using. With this information, you can look for things to remove.

Remove "core" Files. These files are created when a process exits abnormally and can be safely deleted. Run "find ~/. -name core" to find all core files in your home directory, and run "find ~/. -name core -exec rm {} \;" to remove them.

Reduce the Netscape Cache.  1. Start Netscape.  2. Select "Preferences" from the "Edit" menu. 3. Click on "Advanced". 4. Click on "Cache". 5. Click on "Clear Disk". 6. Reduce the "Disk Cache" field or change the "Cache Folder" to "/tmp".

Remove Backup Files. If you edit a file named foo.c, emacs will create a backup copy named foo.c~. You can find these files by running "cd; find . -name \*~" and you can remove them with "cd; find . -name \*~ -exec rm {} \;".

Remove Orphan Files. These files are left when a process is killed unexpectedly. To find them run "cd; find . -name #\*#" To remove them run "cd; find . -name #\*# -exec rm {} \;".

Compress Files. If you have a file named foo, "gzip foo" will compress the file and replace it with one named "foo.gz". Use "gzip -d foo.gz" to uncompress it and "zcat foo.gz" to view it.

Return To Computer Science Laboratory Page