Tux Home Directory Storage Usage

Tagged with: usage disk storage tux du home space

Tux users are allowed to store 4 GB of files inside their home directory. 


This is more than sufficient for most use cases, but if you are having issues with any functionality, you may want to check if you've exceeded this storage limit.

If you have exceeded this storage limit, it's usually for reasons A or B below.

(A) you have connected something like vscode to Tux, and vscode libraries and configs and other related files, particularly for projects, can very quickly take up the entire 4 GBs of allotted space.
or
(B) You have uploaded that many files somehow to Tux.

Also, if you are using vs code, please use the following settings to avoid other technical issues. VERY important!

Sometimes, there are other reasons, but the best thing to do at this point is to see if (a) or (b) apply.

Below is how to check how much of your allotted space you have used, and further below is how to move files out of Tux if you are out.

  1. Connect to Tux over SSH like normal: 
  2. Run "du -sh ~/". This will tell you the real size of your home directory
    Tux Check Disk Use 1
  3. From there, you can run the command "du -sh .[^.]* *", which will get the size of all files and folders (including hidden ones) to help track down what's taking up space. Often, things like VS Code may take up significantly more space than they are expected to.
  4. Tux Check Disk Use 2

If you are using vscode, the folder ".vscode-server" can easily use 1 or more GBs, and ".cache" can easily use 2-3 GBs of your 4G B quota. SEE SCREENSHOT BELOW.

Use the ls -a command and then cd into these folders, if you wish, but there's really no need.

You can *SAFELY* use the rm -rf command to delete .cache and .vscode-server folders/directories. They will recreate on next connect and take up less space when they do.

IMPORTANT: Also, if you are using vs code, please use the following settings to avoid other technical issues. 

Again, these commands will safely delete the .cache and .vscode-server folders/directories.

rm-rf .cache

rm -rf .vscode-server

Tux Check Disk Use 3 - vscode using too much

Please review these hidden folders in your home folder to see if you can clean up some space.

Below is how to get these files onto your computer.

If you are unsure how to get these files or folders off of Tux to your local computer, see the scp options/commands page below.

Remember too that everyone at Drexel gets 5 TBs of online cloud storage through Microsoft OneDrive at https://onedrive.com . More information at link below.

If you've gone through your home directory and cannot reasonably clear up space (for example, due to a class using operating system images or a project involving a language model), contact ihelp@drexel.edu and request a storage extension. 

In your request, mention that you've reviewed the files in your home directory and explain why you need more than the standard storage allocation. 

The sysadmin may offer solutions outside of expanding your quota, depending on the type of work being done and if there is a more appropriate or performant option for storing the type of data you're working with.

Swap or .swp or Lock File Writing Error - Disk Quota Exceeded

If you get the error above, or the error shown in the screenshots below, again, follow what we say to do above. You have exceeded your allotted disk file space.


[ Error writing lock file ./.CG-hw9.py.swp: Disk quota exceeded ]

[ Error writing lock CG-hw9.py: Disk quota exceeded ]


Again, go to the top of this document and follow the instructions if you see errors like the ones above.