Mounting in the /mnt directory in Linux

What is the problem you are having with rclone?

So I am trying to mount the drive I created in rclone in the /mnt location. I swear I have done this in the past with my other server but this one is giving me grief. I run the command. sudo rclone mount gdrive: /mnt/name_of_directory. When running this my SSH session just freezes and never returns anything back. Am I missing something here?

Run the command 'rclone version' and share the full output of the command.

version: v1.69.1
-os/version: centos 7.9.2009 (64 Bit)
-os/arch: amd64
-go/version: go1.24.0
-go/linking: static
-go/tags: none

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)

sudo rclone mount gdrive: /mnt/name_of_directory

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

rclone config redacted
[gdrive]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id =

For some context. This is a headless server. I had to do the authorize drive on a different machine and do the copy rclone.conf file hack (which took forever to figure out) to get the Client_Id to automatically update every hour with the API I created in google.

Lastly, I created the directory with mkdir /mnt/gdrive (where I am trying to mount to) and made sure it has full drwxrwxrwx permission and it is owned by the root user.

Thanks for the help in advance. This forum has been great in figuring out all the other steps.

P.S I know CentOS is old, The company I work for is not ready to upgrade yet. We will be moving to 24.4 in a few months which will probably make this setup much easier.

And what would you expected rclone to return back?

If you need more detailed output run it in debug mode - add -vv flag.

I suspect that everything is working fine - open another SSH session (as the first one is occupied with running mount command) and check if drive is mounted.

Thanks you for the reply,

It just freezes the ssh session completely, Then when I close the session and start a new one the drive is never mounted. I run the df -h and it is not displayed in the list.

I will give the -vv flag a try but I suspect I will get nothing back as the session never comes back until I close it out and start a new one.

Thanks again.

Do not close it! If mount is running then you kill it by doing it. Open another session to check.