I tried with this %fs ls dbfs:/mnt, but i want to know do this give me all the mount point?
Asked
Active
Viewed 5.4k times
3 Answers
40
I like to do the following :
display(dbutils.fs.mounts())
as it displays the databricks path and external endpoint.
I find it safer than %sh ls /mnt/
as you can have a folder in /mnt/ that is not pointing to an external storage.

Axel R.
- 1,141
- 7
- 22
9
You can simply use the Databricks filesystem commands to navigate through the mount points available in your cluster.
%fs
mounts
This will give you all the mount points and also display the corresponding ADLS source file path.

Mission Coding
- 301
- 4
- 12
-3
Before running this command, make sure you have created mount points earlier.
How to list all the mount points in Azure Databricks?
Here is the list of commands to list all the mount points in Azure Databricks.

CHEEKATLAPRADEEP
- 12,191
- 1
- 19
- 42
-
3From my experience, you can have folders in dbfs:/mnt/ that are not actually mounted volumes but just simple folders. – Axel R. Dec 16 '20 at 20:49