28

I tried with this %fs ls dbfs:/mnt, but i want to know do this give me all the mount point?

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42
Shahid Ahmed
  • 281
  • 1
  • 3
  • 3

3 Answers3

40

I like to do the following :

display(dbutils.fs.mounts())

as it displays the databricks path and external endpoint.

enter image description here

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.

enter image description here

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.

enter image description here

CHEEKATLAPRADEEP
  • 12,191
  • 1
  • 19
  • 42
  • 3
    From 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