Disk quota in AFS

Most users' files at KTH are stored on network file systems. Typically, the disk space available is limited by quotas. There are many tools available to see what your quota is, and to find files that are taking up space.


Most Unix and Unix-like operating systems (Solaris, macOS, Ubuntu & RedHat Linux, …) use AFS, and home directories are typically stored there.

Student's home directories are typically limited to 3GB, but you can receive more diskspace if needed, as long as it is related to your studies.

To see how much space you are using, open a terminal window and use

fs lq
AFS quota
Disk Usage Analyzer (Baobab)

Which files occupy all the space?


If your quota is near the limit, you can use Ubuntu's Disk Usage Analyzer (under Applications → Accessories) to see what is taking up space. Once it start, press "Scan Home" to analyze your home directory.


If you want to see which files that occupy space you can open 

  the apple > About This Mac > the tab "Storage" > the button "Manage..."

In the left column you will see different categories and remove files if needed.

On other operating systems, or remotely, command-line tools can be used: "fs lq" to see the quota, "du -sk directory/" to see the disk usage of a directory.

Problems logging in?


If Gnome refuses to start, you can switch to a console with Ctrl+Alt+F2, log in and use command-line tools to recover some space, then log out ("exit") and switch back to the graphical log in with Ctrl+Alt+F7. The command "gnome-cleanup" can help you if your Gnome settings are still corrupted.

If you have set up , you can also  (an Ubuntu machine), and use "baobab" on the command-line.


.OldFiles does not count

Note that the directory .OldFiles does not count as part of your quota. It is a backup directory, a copy of your home directory from yesterday, and is stored on a separate volume. (You can't modify the files there, and it will be updated again when the daily backup is made, sometime during the night.)

Out of space?

If a particular course requires that you store large files, check with your course leader. Often, files are better stored in the course's directory so that all students can access it both from the web and locally. For those courses where that is not the case, and each student must store data in their home directory, the course leader usually requests additional space for all who are registered on the course.


Employees can have larger quotas, although their accounts are usually created with the default quota. However, if a particular project (or some other purpose) requires a lot of disk space, it is usually better to create a separate AFS volume. (Mainly because this makes it easier to move around volumes to balance the load on the servers and/or backups, but also because it is easier to share the data with others who work on the same project.)

Some employees also have access to store temporary files on local disk. These files are NOT BACKED UP, so this should be used with caution. Contact IT Support for more information.

Page responsible:it-support@kth.se
Belongs to: KTH Intranet
Last changed: Feb 25, 2020