Hi @Danish11052000,

Not exactly. dbutils.fs.mounts() is for legacy DBFS mounts, and it can still work in some Unity Catalog-enabled workspaces if those mounts still exist and the cluster/access mode permits DBFS access. However, mounts are deprecated and are not the Unity Catalog model.

In Unity Catalog, the equivalents to inspect are external locations, storage credentials, and volumes rather than mounts. So there isn’t a direct "list mounts" UC API; instead, you’d use commands/APIs such as SHOW EXTERNAL LOCATIONS, SHOW STORAGE CREDENTIALS, and SHOW VOLUMES, plus the Files API/SDK for volume file operations.

During migration, support both patterns... use dbutils.fs.mounts() only for remaining legacy mounts, and use UC metadata objects for UC-governed storage.

Lastly, when you mention that non-UC workspaces will gradually migrate to UC, I assume this is an activity you will be handling. I want to clarify that this process will not happen automatically, in case you had that impression.

If this answer resolves your question, could you mark it as “Accept as Solution”? That helps other users quickly find the correct fix.

 

Regards,
Ashwin | Delivery Solution Architect @ Databricks
Helping you build and scale the Data Intelligence Platform.
***Opinions are my own***