How do I access AFS from the Yens?

AFS is currently mounted on the Yens at /afs, so user astorer has their AFS directory here: /afs/ir/users/a/s/astorer/. For convenience, there is a symbolic link to your AFS space from your home directory, which you can access at ~/afs-home.

Access to AFS requires a Kerberos token - if you believe you should have access to an AFS space but do not, try the following command first:

kdestroy && kinit && aklog

Support for AFS

AFS is not part of the University’s long term roadmap, and access to your space must be renewed on an annual basis. To see the space you administer, please visit the AFS Archive Management Tool.

We recommend moving data out of AFS to our Yen storage or other university storage systems. If you need assistance with your AFS space, please open a University IT Support Ticket.

If your afs-home link is missing in your Yen home folder, you can create the symbolic link manually using the following command:

Create link to your AFS folder

ln -s /afs/ir/users/<SUNetID first letter>/<SUNetID second letter>/<SUNetID> afs-home


ln -s /afs/ir/users/j/o/johndoe13 afs-home

AFS Volumes

When you log into the Yen servers you will automatically land in your home directory, which is located at /home/users/{SUNet-id} or with the shortcut ~. You are able to access your former AFS home directory by following the afs-home symlink inside your home directory.

You have a personal AFS volume that is named according to your SUNetID. For example if your SUNetID is johndoe13, then the path to your AFS directory is: /afs/ir/users/j/o/johndoe13. The two individual letters are the first two letters of the SUNetID.

You may have access to other AFS volumes set up for specific projects, or other people may give you access to a specific directory in their AFS volume. To access other AFS volumes, you need to know what the path to them is. For example, the path might be something like /afs/ir/data/gsb/nameofyourdirectory.

How to access an AFS volume

There are two options for transferring files to and from AFS:

  1. From your desktop using OpenAFS, a free download available from Stanford. This software will mount your AFS directory so that you can access it using an Explorer (Windows) or Finder (Mac) window as you do with other files.

  2. Through a web interface: When you go to this url, it will take you to your home directory. To go to a different directory, click the Change button at the top of the page under Current AFS Directory Path.

How to create an AFS volume

If you are working with a faculty member on a project that uses AFS, chances are that person already has an AFS directory created for that project. Just ask the faculty member what the path to the directory is, and to grant you permissions to use it.

Size Limitations

As of this writing, AFS volumes at Stanford can be as large as 256 GB. However, it is possible to chain multiple volumes together in one Linux directory using symbolic links.


All AFS directories are backed up nightly. Any file or directory that existed for at least 24 hours before it was deleted, can be restored by submitting a HelpSU request.