Unable to mount dmg on encrypted google drive on Monterey

Hello,
thanks in advance for any advices

What is the problem you are having with rclone?

I use google drive with encryption.
I need to mount a DMG stored on an encrypted rclone mount.
I'm getting "The disk image couldn't be opened" "The operation couldn't be completed. No such file or directory" from DiskImageMounter.app on MacOS Monterey (12.0.1)

What is your rclone version (output from rclone version)

rclone v1.57.0

  • os/version: darwin 12.0.1 (64 bit)
  • os/kernel: 21.1.0 (x86_64)
  • os/type: darwin
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: dynamic
  • go/tags: cmount

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone cmount -vv backups:/ ~/rclone/mnt/test

The rclone config contents with secrets removed.

[mine]
type = drive
scope = drive

[backups]
type = crypt
remote = mine:backups
filename_encryption = standard
directory_name_encryption = true

A log from the command with the -vv flag

2021/11/29 12:55:13 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "cmount" "-vv" "backups:/" "/Users/me/rclone/mnt/test" "--log-file=/Users/me/pb.log"]
2021/11/29 12:55:13 DEBUG : Creating backend with remote "backups:/"
2021/11/29 12:55:13 DEBUG : Using config file from "/Users/me/.config/rclone/rclone.conf"
2021/11/29 12:55:13 DEBUG : Creating backend with remote "backup"
2021/11/29 12:55:13 DEBUG : Google drive root 'backup': 'root_folder_id = 0ANM1Osb2FG2kUk9PVA' - save this in the config to speed up startup
2021/11/29 12:55:14 DEBUG : Mounting on "/Users/me/rclone/mnt/test" ("backups")
2021/11/29 12:55:14 DEBUG : Adding "-o modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC" for macOS
2021/11/29 12:55:14 DEBUG : Encrypted drive 'backups:/': Mounting with options: ["-o" "attr_timeout=1" "-o" "fsname=backups:/" "-o" "subtype=rclone" "-o" "max_readahead=131072" "-o" "atomic_o_trunc" "-o" "daemon_timeout=600" "-o" "volname=backups" "-o" "noappledouble" "-o" "modules=iconv,from_code=UTF-8,to_code=UTF-8-MAC"]
2021/11/29 12:55:14 DEBUG : Encrypted drive 'backups:/': Init: 
2021/11/29 12:55:14 DEBUG : Encrypted drive 'backups:/': >Init: 
2021/11/29 12:55:14 DEBUG : /: Statfs: 
2021/11/29 12:55:14 DEBUG : /: Statfs: 
2021/11/29 12:55:14 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/11/29 12:55:14 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/11/29 12:55:14 DEBUG : /: Statfs: 
.../...
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: Access: mask=04
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: >Access: errc=0
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: OpenEx: flags=0x0
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: OpenFile: flags=O_RDONLY, perm=-rwxrwxrwx
2021/11/29 12:56:02 DEBUG : openwrt.dmg: Open: flags=O_RDONLY
2021/11/29 12:56:02 DEBUG : openwrt.dmg: >Open: fd=openwrt.dmg (r), err=<nil>
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: >OpenFile: fd=openwrt.dmg (r), err=<nil>
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: >OpenEx: errc=0, fh=0x0
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: Read: ofst=0, fh=0x0
2021/11/29 12:56:02 DEBUG : openwrt.dmg: ChunkedReader.openRange at 0 length 134217728
2021/11/29 12:56:02 DEBUG : openwrt.dmg: ChunkedReader.Read at 0 length 4096 chunkOffset 0 chunkSize 134217728
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: >Read: n=4096
2021/11/29 12:56:02 DEBUG : /openwrt.dmg: Read: ofst=24576, fh=0x0
2021/11/29 12:56:02 DEBUG : openwrt.dmg: waiting for in-sequence read to 24576 for 20ms
2021/11/29 12:56:03 DEBUG : openwrt.dmg: aborting in-sequence read wait, off=24576
2021/11/29 12:56:03 DEBUG : openwrt.dmg: failed to wait for in-sequence read to 24576
2021/11/29 12:56:03 DEBUG : openwrt.dmg: ReadFileHandle.seek from 4096 to 24576 (fs.RangeSeeker)
2021/11/29 12:56:03 DEBUG : openwrt.dmg: ChunkedReader.RangeSeek from 4096 to 24576 length -1
2021/11/29 12:56:03 DEBUG : openwrt.dmg: ChunkedReader.Read at -1 length 3802 chunkOffset 24576 chunkSize 134217728
2021/11/29 12:56:03 DEBUG : openwrt.dmg: ChunkedReader.openRange at 24576 length 134217728
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Read: n=3802
2021/11/29 12:56:03 DEBUG : /: Statfs: 
2021/11/29 12:56:03 DEBUG : /: >Statfs: stat={Bsize:4096 Frsize:4096 Blocks:4294967295 Bfree:4294967295 Bavail:4294967295 Files:1000000000 Ffree:1000000000 Favail:0 Fsid:0 Flag:0 Namemax:255}, errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Access: mask=00
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Access: errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Getattr: fh=0xFFFFFFFFFFFFFFFF
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Getattr: errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Access: mask=04
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Access: errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Flush: fh=0x0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Flush: errc=0
2021/11/29 12:56:03 DEBUG : /: Access: mask=01
2021/11/29 12:56:03 DEBUG : /: >Access: errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Release: fh=0x0
2021/11/29 12:56:03 DEBUG : openwrt.dmg: ReadFileHandle.Release closing
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Release: errc=0
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: Access: mask=00
2021/11/29 12:56:03 DEBUG : /openwrt.dmg: >Access: errc=0
2021/11/29 12:56:04 DEBUG : /: Access: mask=01
2021/11/29 12:56:04 DEBUG : /: >Access: errc=0
2021/11/29 12:56:08 INFO  : Signal received: interrupt
2021/11/29 12:56:08 DEBUG : Not calling host.Unmount as signal received
2021/11/29 12:56:08 DEBUG : Unmounted successfully
2021/11/29 12:56:08 ERROR : /Users/me/rclone/mnt/test: Unmounted rclone mount
2021/11/29 12:56:08 INFO  : Exiting...

Regards

Is the mount running in a terminal or something? Did you close the terminal out or stop the command?

That seems like you stopped it or something stopped it.

Hello,
you're right. I tried the mound from Terminal for this test.
Once got the error, I closed it

Regards

You probably need --allow-other as the system is opening up the file I'd imagine.

I just tried this command

rclone cmount -vv backups:/ ~/rclone/mnt/test --log-file=/tmp/pb.log --allow-other

but sill getting the error from the mounting command :frowning:

Can you share the debug log?

Hello
with the given option, everything is working perfectly

Thanks a lot for your help

Have a nice day

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.