plexdrive

Plexdrive mounts your Google Drive FUSE filesystem (optimized for media playback) .

Installation

  1. Download Plexdrive

     mkdir -p ~/bin; wget -O ~/bin/plexdrive https://github.com/dweidenfeld/plexdrive/releases/download/5.0.0/plexdrive-linux-amd64
    
  2. Make the binary executable.

     chmod +x ~/bin/plexdrive
    
  3. If ~/bin is not in your PATH already, add it.

      echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
    

Configuration

You will need to create a Google Drive client ID and client secret. Instructions for doing this can be seen here.

Usage

Beginning with version 5 of Plexdrive, default settings are based on the hardware it is being ran on. Our HDD and SSD plans are very powerful, and in fact too powerful because the high default values do not work well with Plexdrive. It is recommended to mount with the following parameters:
plexdrive mount -v 3 --chunk-check-threads=16 --chunk-load-threads=16 --chunk-load-ahead=16 --max-chunks=256 /home/user/mountedfolder/
This will run in the foreground, and will consequently be shutdown if you close your terminal.

To have it run in the background and remain running after you close your terminal, use screen:
screen -dmS plexdrive plexdrive mount -v 3 --chunk-check-threads=16 --chunk-load-threads=16 --chunk-load-ahead=16 --max-chunks=256 /home/user/mountedfolder/

To view its output, attach to the screen with screen -x plexdrive. To detach from the screen, use Ctrl+a and then d.

Unmount with
fusermount -uz ~/mountedfolder

Notes

You will always receive the following error when using FUSE mounts without root privileges. This is fine and it can be ignored. The error is:
mount helper error: fusermount: failed to open /etc/mtab: Permission denied

Many guides on the Internet have said to use the "allow_other" parameter, however you should not do this. This is only intended for when Plex runs on its own user account, and on a shared system it would mean other users being able to access your mounted data. We have this module disabled and you will receive errors if trying to use it.

If you receive this error:
mount helper error: fusermount: failed to chdir to mountpoint: Permission denied
It means that the mountpoint is broken. Forcefully unmount it with fusermount -uz ~/mountedfolder and then mount again normally.