Failure when accessing or mounting storage

Do not mount storage to the root mount path.

Written by kiran.bharathi

Last published at: May 16th, 2022

Problem

You are trying to access an existing mount point, or create a new mount point, and it fails with an error message.

Invalid Mount Exception:The backend could not get tokens for path /mnt.

Cause

The root mount path (/mnt) is also mounted to a storage location.

You can verify that something is mounted to the root path by listing all mount points with DBUtils (AWS | Azure | GCP).

%python

dbutils.fs.mounts()

If /mnt is listed with a source, you have storage incorrectly mounted to the root path..

Solution

You should unmount the root mount path.

%python

dbutils.fs.unmount("/mnt")

You can now access existing mount points, or create new mount points.

Was this article helpful?