s3 mount point, mount non-empty directory

0

Hello, is it possible to mount a folder that is not empty with s3 mount point? I can't find related information. This is the error I get: use: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount option Error: Failed to create FUSE session

Caused by: No such file or directory (os error 2) Error: Failed to create mount process

1개 답변
0

To resolve the first issue and mount your S3 bucket to a non-empty directory, you should modify your mount command to include the nonempty option.

For the second issue, ensure that the path you are trying to mount to actually exists on your filesystem. If the path is correct, review your mount command for any typos or configuration errors.

profile picture
전문가
답변함 2달 전
profile picture
전문가
검토됨 한 달 전
  • I don't see that the mount-s3 service has that option:

    Usage: mount-s3 <BUCKET_NAME|DIRECTORY|--prefix <PREFIX>|--region <REGION>|--endpoint-url <ENDPOINT_URL>|--force-path-style|--transfer-acceleration|--dual-stack|--requester-pays|--bucket-type <BUCKET_TYPE>|--no-sign-request|--profile <PROFILE>|--read-only|--storage-class <STORAGE_CLASS>|--allow-delete|--allow-overwrite|--auto-unmount|--allow-root|--allow-other|--maximum-throughput-gbps <N>|--max-threads <N>|--part-size <PART_SIZE>|--uid <UID>|--gid<GID>|--dir-mode <DIR_MODE>|--file-mode <FILE_MODE>|--foreground|--expected-bucket-owner <AWS_ACCOUNT_ID>|--log-directory <DIRECTORY>|--log-metrics|--debug|--debug-crt|--no-log|--cache <DIRECTORY>|--metadata-ttl <SECONDS>|--max-cache-size <MiB>|--user-agent-prefix <PREFIX>>

  • you might consider alternative methods or tools for mounting S3 buckets, such as s3fs-fuse, which supports the nonempty option. With s3fs-fuse, you can typically add the nonempty option to the mount command like so:

    s3fs yourbucketname /path/to/mountpoint -o nonempty

    Make sure to replace yourbucketname with your actual S3 bucket name and /path/to/mountpoint with your desired mount point.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠