Jump to content

Emby Media Server adding GDrive Mountpoint on Raspberry PI


Go to solution Solved by rodainas,

Recommended Posts

Posted

Hello,
 
I hope someone is able to help me. I am running the Emby Server on my Raspberry PI4.
With rclone I mounted the Google-Drive to the PI with the path $HOME/mnt/gdrive
 
I can access the path via the console and SFTP. 
But I am not able to choose this part in the Emby Settings to add new media. The /drive is not available to choose.
I set the chmod to 777
 
Does someone has any idea?
 
Thanks

Posted
3 hours ago, chris31077 said:

Hello,
 
I hope someone is able to help me. I am running the Emby Server on my Raspberry PI4.
With rclone I mounted the Google-Drive to the PI with the path $HOME/mnt/gdrive
 
I can access the path via the console and SFTP. 
But I am not able to choose this part in the Emby Settings to add new media. The /drive is not available to choose.
I set the chmod to 777
 
Does someone has any idea?
 
Thanks

On linux you have to use the —allow-other flag with the mount command.

  • Like 1
Posted

Thanks a lot. I tried your proposal. And I am receiving the following:

pi@raspberrypi:~ $ rclone mount gdrive: $HOME/mnt/gdrive --allow-other

2021/11/24 14:44:21 Fatal error: Directory is not empty: /home/pi/mnt/gdrive If you want to mount it anyway use: --allow-non-empty option

When I am using the -allow-non-empty it does not have any impact. Is there any chance to combine both flags within one command?

 

Posted (edited)
8 minutes ago, chris31077 said:

Thanks a lot. I tried your proposal. And I am receiving the following:

pi@raspberrypi:~ $ rclone mount gdrive: $HOME/mnt/gdrive --allow-other

2021/11/24 14:44:21 Fatal error: Directory is not empty: /home/pi/mnt/gdrive If you want to mount it anyway use: --allow-non-empty option

When I am using the -allow-non-empty it does not have any impact. Is there any chance to combine both flags within one command?

 

Try deleting the gdrive directory, creating it again, and reapply the mount command don't use allow non empty.

Edited by rodainas
append
Posted

Thank you. How to proceed the deletion? Do I need to start again the rclone config?

 

Posted (edited)

Delete it like any folder make a new one and after that just enter the rclone mount command.

Edited by rodainas
Posted

I am not able to delete it with the rm -r command. The resource is in use

 

 

Posted

Would it be possible to provide the user emby root rights? How can I do this?

 

  • Solution
Posted
3 minutes ago, chris31077 said:

Would it be possible to provide the user emby root rights? How can I do this?

 

Are you sure rclone was stopped before removing it, seems that an instance is interfering.

With —gid # and —uid # you assign group and user but it works with or without it.

Posted

Hello Thanks, I stopped the rclone and tried to start with the command. This is the result:

 

pi@raspberrypi:~/mnt/gdrive $ sudo rclone mount gdrive: $HOME/mnt/gdrive --allow-other

2021/11/25 09:19:38 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults

2021/11/25 09:19:38 Failed to create file system for "gdrive:": didn't find section in config file

Do you have any idea?

Posted

Thanks I made it... Now it runs fine

Posted

Hello, I have one more question. I made a search in case it is possible to mount a shared drive within GDrive as well. The flag should be 

--drive-shared-with-me

But when I use this command: rclone mount gdrive: $HOME/mnt/gdrive  --drive-shared-with-me i receive this error 

Fatal error: Directory is not empty: /home/pi/mnt/gdrive If you want to mount it anyway use: --allow-non-empty option

Is it possible to combine two flags? --allow-non-empty and -drive-shared-with-me? How would be the command?

Thanks

Posted
2 minutes ago, chris31077 said:

Hello, I have one more question. I made a search in case it is possible to mount a shared drive within GDrive as well. The flag should be 

--drive-shared-with-me

But when I use this command: rclone mount gdrive: $HOME/mnt/gdrive  --drive-shared-with-me i receive this error 

Fatal error: Directory is not empty: /home/pi/mnt/gdrive If you want to mount it anyway use: --allow-non-empty option

Is it possible to combine two flags? --allow-non-empty and -drive-shared-with-me? How would be the command?

Thanks

Yes you can combine both flags, but the reason of this error is that you have an already mounted instance of rclone for a remote and you are trying to mount above it a whole different content, allow non empty just hides the original content so when you have the mount active you lose access to those original files until the remote is unmounted.

What you should do is create a separate remote for the "Shared with me Content" and create a different folder on the /mnt/ directory for that remote, the use a second mount command with the shared with me flag.

Posted

Thanks, I am running thorugh the config and I am receiving this error Failed to configure team drive: config team drive failed to create oauth client: error opening service account credentials file: open n: no such file or directory

 

Posted
2 minutes ago, chris31077 said:

Thanks, I am running thorugh the config and I am receiving this error Failed to configure team drive: config team drive failed to create oauth client: error opening service account credentials file: open n: no such file or directory

 

I dont know what steps you are following , but seems like you specified a path while creating the remote for service accounts file but the files are not on that path, try first creating the remote without specifying service account then you can manually edit the conf file to add the path if you really want to do that.

Posted

Thanks. I am using the client-id and secret id from my own Google-Account. Is this right? I can see the shared files within my GDrive and I would like to mount this share

Posted

When I am using the option "team drive" during rclone config will it provides me the list of all directories which are shared with me?

Posted
35 minutes ago, chris31077 said:

When I am using the option "team drive" during rclone config will it provides me the list of all directories which are shared with me?

Nop, Team Drives and Shared with Me are 2 different things.

Both have their own section when you access the gdrive webui, so you need to identify what are you dealing with.

If your intention is to mount a Team Drive later called Shared drives, then forget about the flag shared with me because is a entirely different thing.

Posted

is there a way to mount a shared drive anyway?

Posted
1 minute ago, chris31077 said:

is there a way to mount a shared drive anyway?

Yes as you pointed out, Team Drive now called Shared Drive, during rclone config you choose the option Team Drive, it will list all the team drives where you are member and you choose one of them.

If you want to use Shared with me, say no to Team Drive, then use the mount command with the shared with me flag on that remote, also you have to specify the path with that remote like remote:/path/to/shared/directory or you can specify the folder id for the remote on the rclone.conf file.

Hope this helps you clear out things.

Posted

Thanks. One last comment. How can I remove rclone completly from the pi to start a fresh mount? How should the command look like with the two flags. I need to add the allow all for the emby as well

Posted

Just kill the rclone instance using the Process id

To get rclone pid
ps -ax | grep rclone

Then end the procedd

kill -9 pid#

you can use as many flags as you want

for example

rclone mount remote: /path/to/folder —flag-1 —flag2 —flag3 —allow-other

 

Posted

Hello again,

I tried it once more. This is the screen of my shared-Files. I am sorry for the German language .

I would like to mount this folder "share"

I used this command 

rclone mount gdrive: $HOME/mnt/gdrive/share  --drive-shared-with-me --allow-other

but this does not work

2021/11/26 18:08:34 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /home/pi/mnt/gdrive/share

Using this command 

 

rclone mount gdrive: $HOME/mnt/gdrive  --drive-shared-with-me --allow-other

Mounts only my share "Meine Ablage" in the screen.

could you please let me know the right command?

 

image.thumb.png.774757fe48c113dfa966f63fbd62df4e.png

Posted
14 minutes ago, chris31077 said:

Hello again,

I tried it once more. This is the screen of my shared-Files. I am sorry for the German language .

I would like to mount this folder "share"

I used this command 

rclone mount gdrive: $HOME/mnt/gdrive/share  --drive-shared-with-me --allow-other

but this does not work

2021/11/26 18:08:34 Fatal error: failed to mount FUSE fs: mountpoint does not exist: /home/pi/mnt/gdrive/share

Using this command 

 

rclone mount gdrive: $HOME/mnt/gdrive  --drive-shared-with-me --allow-other

Mounts only my share "Meine Ablage" in the screen.

could you please let me know the right command?

 

image.thumb.png.774757fe48c113dfa966f63fbd62df4e.png

“Share” is a Team Drive (Shared Drive)

So on the rlcone config you say yes when it asks if the remote is for a Team Drive and select it. Then on the mount command dont use —drive-shared-with-me.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...