Mount failed due to invalid mount source

C.E Aparna 20 Reputation points
2023-06-13T13:28:22.1933333+00:00

Hello everyone,

I'm trying to mount blob storage using the below syntax ,but failing to mount saying invalid source.

Any help would be appreciated.

Tried different solutions like unmount /mnt and remount

1.

dbutils.fs.unmount("/mnt")
'dbutils.fs.mount(source='wasbs://
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,200 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sedat SALMAN 14,180 Reputation points MVP
    2023-06-13T22:42:32.4333333+00:00

    Another possibility is that the same container has been mounted to two different paths in the workspace. Unmounting all and remounting might resolve the issue. You can unmount all mounts beginning with /mnt/ with the following code:

    print('Unmounting all mounts beginning with /mnt/')
    for mount in dbutils.fs.mounts():
      if mount.mountPoint.startswith('/mnt/'):
        dbutils.fs.unmount(mount.mountPoint)
    print('Re-listing all mounts')
    dbutils.fs.mounts()
    
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.