Plexdrive allows you to mount your Google Drive account as read-only fuse filesystem, with direct delete option on the filesystem.
The project is comparable to projects like rclone, google-drive-ocamlfuse or node-gdrive-fuse, but optimized for media streaming e.g. with plex ;)
Please note that plexdrive doesn't currently support writes (adding new files or modifications), it only supports reading existing files and deletion.
I tried using rclone for a long time, but got API Quota errors every day and/or multiple times per day, so I decided to try node-gdrive-fuse. The problem here was that it missed some of my media files, so as a result I started implementing my own file system library.
If you like the project, feel free to make a small donation via PayPal. Otherwise support the project by implementing new functions / bugfixes yourself and create pull requests :)
- First you need to install fuse on your system
- Then you should download the newest release from the GitHub release page.
- Create your own client id and client secret (see https://rclone.org/drive/#making-your-own-client-id).
- Sample command line for plexdrive
./plexdrive mount -c /root/.plexdrive -o allow_other /mnt/plexdrive
You can use this tutorial for instruction how to mount an encrypted rclone mount.
Usage of ./plexdrive mount:
--cache-file string
Path the the cache file (default "~/.plexdrive/cache.bolt")
--chunk-check-threads int
The number of threads to use for checking chunk existence (default 2)
--chunk-load-ahead int
The number of chunks that should be read ahead (default 3)
--chunk-load-threads int
The number of threads to use for downloading chunks (default 2)
--chunk-size string
The size of each chunk that is downloaded (units: B, K, M, G) (default "10M")
-c, --config string
The path to the configuration directory (default "~/.plexdrive")
-o, --fuse-options string
Fuse mount options (e.g. -fuse-options allow_other,...)
--gid int
Set the mounts GID (-1 = default permissions) (default -1)
--max-chunks int
The maximum number of chunks to be stored on disk (default 10)
--refresh-interval duration
The time to wait till checking for changes (default 1m0s)
--root-node-id string
The ID of the root node to mount (use this for only mount a sub directory) (default "root")
--uid int
Set the mounts UID (-1 = default permissions) (default -1)
--umask value
Override the default file permissions
-v, --verbosity int
Set the log level (0 = error, 1 = warn, 2 = info, 3 = debug, 4 = trace)
--version
Displays program's version information
Slack support is available on our Slack channel. Feel free to ask configuration and setup questions here.
- allow_other
- allow_root
- allow_dev
- allow_non_empty_mount
- allow_suid
- max_readahead=1234
- default_permissions
- excl_create
- fs_name=myname
- local_volume
- writeback_cache
- volume_name=myname
- read_only
You can use the option root-node-id
to specify a folder id that should be mounted as
the root folder. This option will not prevent plexdrive from getting the changes for your
whole Google Drive structure. It will only "display" another folder as root instead of the
real root folder.
Don't expect any performance improvement or something else. This option is only for your
personal folder structuring.
If you want to support the project by implementing functions / fixing bugs yourself feel free to do so!
- Fork the repository
- Clone it to your golang workspace $GOPATH/src/github.com/username/plexdrive
- Implement your changes
- Test your changes (e.g.
go build && ./plexdrive -v3 /tmp/drive
) - Format everything with gofmt ( (I recommend working with VSCode and VSCode-Go)
- Create a pull request