--vfs-cache-mode writes: This option tells rclone to use the VFS cache in write mode. This helps improve performance when streaming media files, especially if they are large.
--vfs-cache-max-size 100G: This option sets the maximum size of the VFS cache to 100 GB. You can adjust this value based on the amount of RAM available on your system.
--buffer-size 1G: This option sets the buffer size to 1 GB. This is the amount of data that rclone will buffer in memory before sending it to the Plex server. Again, you can adjust this value based on your system's available RAM.
--allow-other: This option allows other users on the system to access the mounted file system.
--drive-chunk-size 64M: This option sets the chunk size to 64 MB. This is the size of the file chunks that rclone will download from Google Drive. A larger chunk size can improve performance, but it can also increase memory usage.
--use-mmap: This option tells rclone to use memory mapping when reading files. This can help improve performance.
--acd-templink-threshold 0: This option disables the Amazon Cloud Drive temporary link threshold. You can safely ignore this option if you are not using Amazon Cloud Drive.
--log-level INFO: This option sets the logging level to INFO, which will output more detailed information about what rclone is doing. You can change the log level to DEBUG for even more detailed output.
gdrive:: This is the remote name that you configured when setting up rclone with Google Drive.
/mnt/gdrive: This is the mount point where you want to mount the Google Drive remote.
Keep in mind that streaming 4K files with bit rates up to 100 Mbps will require a fast and stable internet connection. With a 400 Mbps internet connection, you should have no problem streaming these files, but if your internet connection is unstable, you may experience buffering or other playback issues.
User
best rclone mount command to mount google drive to play/stream 4k files with bit rate up to 100 Mbps for plex
I have a 400 mbps internet
Assistant
Here's an example rclone mount command to mount Google Drive for streaming 4K files with bit rates up to 100 Mbps using Plex:
--allow-other: This option allows other users on the system to access the mounted file system.
--buffer-size 1G: This option sets the buffer size to 1 GB. This is the amount of data that rclone will buffer in memory before sending it to the Plex server. Again, you can adjust this value based on your system's available RAM.
--dir-cache-time 72h: This option sets the amount of time that directory and file metadata will be cached to 72 hours. This can help improve performance.
--drive-chunk-size 64M: This option sets the chunk size to 64 MB. This is the size of the file chunks that rclone will download from Google Drive. A larger chunk size can improve performance, but it can also increase memory usage.
--log-level INFO: This option sets the logging level to INFO, which will output more detailed information about what rclone is doing. You can change the log level to DEBUG for even more detailed output.
--poll-interval 15s: This option sets the polling interval to 15 seconds. This determines how often rclone will check for changes on Google Drive. A shorter interval can improve performance, but it can also increase API usage.
--timeout 1h: This option sets the timeout to 1 hour. This determines how long rclone will wait for a response from Google Drive before timing out.
--umask 002: This option sets the default permissions for files and directories to 775.
--vfs-cache-mode full: This option tells rclone to use the VFS cache in full mode. This means that all reads and writes will go through the VFS cache, which can help improve performance.
--vfs-cache-max-age 5m: This option sets the maximum age of the VFS cache to 5 minutes. This means that any file that hasn't been accessed within the last 5 minutes will be removed from the cache. You can adjust this value based on your needs.
User
compare and tell difference between part 1 and part 2
part 1:
rclone mount
--vfs-cache-mode writes
--vfs-cache-max-size 100G
--buffer-size 1G
--allow-other
--drive-chunk-size 64M
--use-mmap
--acd-templink-threshold 0
--log-level INFO
gdrive: /mnt/gdrive
part 2:
rclone mount
--allow-other
--buffer-size 1G
--dir-cache-time 72h
--drive-chunk-size 64M
--log-level INFO
--poll-interval 15s
--timeout 1h
--umask 002
--vfs-cache-mode full
--vfs-cache-max-age 5m
--vfs-cache-max-size 100G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit 2G
gdrive: /mnt/gdrive
Assistant
Both part 1 and part 2 are rclone mount commands used to mount Google Drive for streaming and playing 4K files with Plex. However, there are some differences between the two commands:
VFS cache mode: In part 1, the --vfs-cache-mode option is set to "writes", while in part 2, it is set to "full". "Writes" mode only caches data that is being written to the drive, while "full" mode caches all data, including data that is being read. This can have an impact on performance and memory usage.
Directory cache time: Part 2 has an additional option, --dir-cache-time, which sets the amount of time that directory and file metadata will be cached. This can help improve performance by reducing the number of API calls to Google Drive.
Polling interval: Part 2 also has an additional option, --poll-interval, which sets the polling interval for checking for changes on Google Drive. A shorter interval can improve performance but increase API usage.
Timeout: Part 2 has an additional option, --timeout, which sets the timeout for API requests to Google Drive. This can help avoid hanging or freezing issues.
VFS read chunk size: In part 2, the --vfs-read-chunk-size option is set to 128 MB, while in part 1 it is not set. This option controls the size of chunks that rclone reads from the VFS cache, and a larger chunk size can improve performance.
Overall, both commands have similar options and achieve the same goal, but part 2 includes some additional options that can help improve performance and avoid issues with API usage and timeouts.
User
part 1:
rclone mount
--allow-other
--buffer-size 1G
--dir-cache-time 72h
--drive-chunk-size 64M
--log-level INFO
--poll-interval 15s
--timeout 1h
--umask 002
--vfs-cache-mode full
--vfs-cache-max-age 5m
--vfs-cache-max-size 100G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit 2G
gdrive: /mnt/gdrive
part 2:
rclone mount
--log-level=INFO
--log-file=/opt/rclone/logs/rclone-mount.log
--user-agent=muffinsdrive
--umask=002
--gid=1002
--uid=1000
--allow-other
--timeout=1h
--poll-interval=15s
--dir-cache-time=1000h
--cache-dir=/opt/rclone/cache/gmedia
--vfs-cache-mode=full
--vfs-cache-max-size=150G
--vfs-cache-max-age=12h
gdrive: /mnt/gdrive
compare and tell difference between part 1 and part 2
Assistant
Here are the differences between part 1 and part 2 of the rclone mount commands:
Logging: Part 2 has additional options for logging, including the --log-file and --log-level options, which specify where to log the output and at what level of detail.
User agent: Part 2 includes the --user-agent option, which sets a custom user agent string for rclone. This can be useful for identifying your traffic to Google Drive as coming from your own application.
User and group IDs: Part 2 includes the --uid and --gid options, which specify the user and group IDs to use when accessing the mount point. This can be useful for ensuring that the files on the mounted drive are accessible to the appropriate users and groups.
Cache directory: Part 2 includes the --cache-dir option, which specifies a directory to use for caching data. This can help improve performance by reducing the number of API calls to Google Drive.
VFS cache max size and age: Part 1 sets the --vfs-cache-max-size option to 100G and the --vfs-cache-max-age option to 5m, while part 2 sets these options to 150G and 12h, respectively. This means that part 2 can cache more data for longer periods of time, which can improve performance.
Dir cache time: Part 2 sets the --dir-cache-time option to 1000h, while part 1 sets it to 72h. This means that part 2 will cache directory and file metadata for a much longer period of time, which can reduce the number of API calls to Google Drive.
Other options: Part 1 sets the --use-mmap and --acd-templink-threshold options, which are not included in part 2.
Overall, both commands have similar options and achieve the same goal of mounting Google Drive for use with Plex, but part 2 includes some additional options that can help improve performance and customize the behavior of rclone.
User
part 1:
rclone mount
--allow-other
--buffer-size 1G
--dir-cache-time 72h
--drive-chunk-size 64M
--log-level INFO
--poll-interval 15s
--timeout 1h
--umask 002
--vfs-cache-mode full
--vfs-cache-max-age 5m
--vfs-cache-max-size 100G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit 2G
gdrive: /mnt/gdrive
part 2:
rclone mount
--log-level=INFO
--log-file=/opt/rclone/logs/rclone-mount.log
--allow-other
--timeout=1h
--poll-interval=15s
--dir-cache-time=1000h
--cache-dir=/opt/rclone/cache/gmedia
--vfs-cache-mode=full
--vfs-cache-max-size=150G
--vfs-cache-max-age=12h
gdrive: /mnt/gdrive
combine part 1 and part 2 and make me a besr rclone mount config to stream 4k video in plex with bit rate of video 100 Mbps max
Assistant
Here's a combined rclone mount command that includes the best options from part 1 and part 2 to stream 4K videos in Plex with a maximum bit rate of 100 Mbps:
--allow-other: Allows other users on the system to access the mounted file system.
--buffer-size 1G: Sets the buffer size to 1 GB, which is the amount of data that rclone will buffer in memory before sending it to the Plex server.
--dir-cache-time 1000h: Sets the amount of time that directory and file metadata will be cached to 1000 hours, reducing the number of API calls to Google Drive.
--drive-chunk-size 64M: Sets the chunk size to 64 MB, which is the size of the file chunks that rclone will download from Google Drive.
--log-level INFO: Sets the logging level to INFO, which outputs detailed information about rclone's actions.
--poll-interval 15s: Sets the polling interval to 15 seconds for checking for changes on Google Drive.
--timeout 1h: Sets the timeout for API requests to Google Drive to 1 hour.
--umask 002: Sets the default permissions for files and directories to 775.
--vfs-cache-mode full: Uses the VFS cache in full mode, which caches all data.
--vfs-cache-max-age 12h: Sets the maximum age of the VFS cache to 12 hours.
--vfs-cache-max-size 150G: Sets the maximum size of the VFS cache to 150 GB.
--vfs-read-chunk-size 128M: Sets the read chunk size to 128 MB.
--vfs-read-chunk-size-limit 2G: Sets the read chunk size limit to 2 GB.
--log-file /opt/rclone/logs/rclone-mount.log: Logs rclone output to /opt/rclone/logs/rclone-mount.log.
--user-agent muffinsdrive: Sets the user agent string to muffinsdrive.
--cache-dir /opt/rclone/cache/gmedia: Specifies a directory to use for caching data.
With these options, you should be able to stream 4K videos in Plex with a maximum bit rate of 100 Mbps from your Google Drive with good performance and stability. Note that your internet connection speed and system specifications may affect the actual performance.
User
part 1:
rclone mount
--allow-other
--buffer-size 1G
--dir-cache-time 72h
--drive-chunk-size 64M
--log-level INFO
--poll-interval 15s
--timeout 1h
--umask 002
--vfs-cache-mode full
--vfs-cache-max-age 5m
--vfs-cache-max-size 100G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit 2G
gdrive: /mnt/gdrive
part 2:
rclone mount
--allow-other
--timeout=1h
--poll-interval=15s
--dir-cache-time=1000h
--cache-dir=/mnt/cache/gmedia
--vfs-cache-mode=full
--vfs-cache-max-size=150G
--vfs-cache-max-age=12h
gdrive: /mnt/gdrive
combine part 1 and part 2 and make me a besr rclone mount config to stream 4k video in plex with bit rate of video 100 Mbps max
Assistant
Here's a combined rclone mount command that includes the best options from part 1 and part 2 to stream 4K videos in Plex with a maximum bit rate of 100 Mbps:
--allow-other: Allows other users on the system to access the mounted file system.
--buffer-size 1G: Sets the buffer size to 1 GB, which is the amount of data that rclone will buffer in memory before sending it to the Plex server.
--dir-cache-time 1000h: Sets the amount of time that directory and file metadata will be cached to 1000 hours, reducing the number of API calls to Google Drive.
--drive-chunk-size 64M: Sets the chunk size to 64 MB, which is the size of the file chunks that rclone will download from Google Drive.
--log-level INFO: Sets the logging level to INFO, which outputs detailed information about rclone's actions.
--poll-interval 15s: Sets the polling interval to 15 seconds for checking for changes on Google Drive.
--timeout 1h: Sets the timeout for API requests to Google Drive to 1 hour.
--umask 002: Sets the default permissions for files and directories to 775.
--vfs-cache-mode full: Uses the VFS cache in full mode, which caches all data.
--vfs-cache-max-age 12h: Sets the maximum age of the VFS cache to 12 hours.
--vfs-cache-max-size 150G: Sets the maximum size of the VFS cache to 150 GB.
--vfs-read-chunk-size 128M: Sets the read chunk size to 128 MB.
--vfs-read-chunk-size-limit 2G: Sets the read chunk size limit to 2 GB.
--cache-dir /mnt/cache/gmedia: Specifies a directory to use for caching data.
With these options, you should be able to stream 4K videos in Plex with a maximum bit rate of 100 Mbps from your Google Drive with good performance and stability. Note that your internet connection speed and system specifications may affect the actual performance.
User
part 1:
rclone mount
--allow-other
--buffer-size 1G
--dir-cache-time 72h
--drive-chunk-size 64M
--log-level INFO
--poll-interval 15s
--timeout 1h
--umask 002
--vfs-cache-mode full
--vfs-cache-max-age 5m
--vfs-cache-max-size 100G
--vfs-read-chunk-size 128M
--vfs-read-chunk-size-limit 2G
gdrive: /mnt/gdrive
part 2:
rclone mount
--log-level=INFO
--log-file=/opt/rclone/logs/rclone-mount.log
--allow-other
--timeout=1h
--poll-interval=15s
--dir-cache-time=1000h
--cache-dir=/opt/rclone/cache/gmedia
--vfs-cache-mode=full
--vfs-cache-max-size=150G
--vfs-cache-max-age=12h
gdrive: /mnt/gdrive
combine part 1 and part 2 and make me a besr rclone mount config to stream 4k video in plex with bit rate of video 100 Mbps max
I have a 400 mbs connection
and tell me should i mount this on hdd or ssd ?
Assistant
Here's a combined rclone mount command that includes the best options from part 1 and part 2 to stream 4K videos in Plex with a maximum bit rate of 100 Mbps:
--allow-other: Allows other users on the system to access the mounted file system.
--buffer-size 1G: Sets the buffer size to 1 GB, which is the amount of data that rclone will buffer in memory before sending it to the Plex server.
--dir-cache-time 1000h: Sets the amount of time that directory and file metadata will be cached to 1000 hours, reducing the number of API calls to Google Drive.
--drive-chunk-size 64M: Sets the chunk size to 64 MB, which is the size of the file chunks that rclone will download from Google Drive.
--log-level INFO: Sets the logging level to INFO, which outputs detailed information about rclone's actions.
--poll-interval 15s: Sets the polling interval to 15 seconds for checking for changes on Google Drive.
--timeout 1h: Sets the timeout for API requests to Google Drive to 1 hour.
--umask 002: Sets the default permissions for files and directories to 775.
--vfs-cache-mode full: Uses the VFS cache in full mode, which caches all data.
--vfs-cache-max-age 12h: Sets the maximum age of the VFS cache to 12 hours.
--vfs-cache-max-size 150G: Sets the maximum size of the VFS cache to 150 GB.
--vfs-read-chunk-size 128M: Sets the read chunk size to 128 MB.
--vfs-read-chunk-size-limit 2G: Sets the read chunk size limit to 2 GB.
--cache-dir /opt/rclone/cache/gmedia: Specifies a directory to use for caching data.
--log-file /opt/rclone/logs/rclone-mount.log: Logs rclone output to /opt/rclone/logs/rclone-mount.log.
As for whether to mount the Google Drive on an HDD or SSD, it depends on your specific setup and needs. An SSD will generally provide faster read/write speeds, which can be beneficial when streaming large files, but may not be necessary depending on the size of the files you are streaming and the other hardware components in your system. If you have enough space on your SSD, it may be beneficial to mount the Google Drive on the SSD for faster performance. However, if you have limited space on your SSD or your files are relatively small, an HDD may suffice. Ultimately, it depends on your specific needs and available hardware.
User
in above rclone mount command modify this "--vfs-cache-max-size 150G " to "--vfs-cache-max-size 100G "
Assistant
Sure, you can modify the --vfs-cache-max-size option to set the maximum size of the VFS cache to 100 GB instead of 150 GB. Here's the modified rclone mount command:
This will limit the size of the VFS cache to 100 GB, which should still be enough to cache a significant amount of data for faster access.
User
how to use userscript in unraid to rclone mount google drive
Assistant
To use a userscript in Unraid to mount Google Drive using rclone, follow these steps:
Connect to your Unraid server using SSH or the Unraid web terminal.
Create a new userscript by navigating to the "Tools" tab in the Unraid web interface and clicking "User Scripts".
Click "Add New Script" and give your script a name, such as "Mount Google Drive".
In the "Script" field, enter the rclone mount command with the options you want to use. For example, you could use the following command to mount your Google Drive:
Note that the & at the end of the command runs the mount process in the background, so that the userscript can continue to execute.
Click "Save" to save your userscript.
Set the userscript to run on startup by going to the "Settings" tab in the Unraid web interface, selecting "User Scripts" from the sidebar, and dragging your userscript to the "At First User Script" section.
Reboot your Unraid server to apply the changes and mount your Google Drive using rclone.
After completing these steps, your Google Drive should be mounted on your Unraid server and you can access it like any other directory on your system.
--vfs-cache-max-size 100G: This option sets the maximum size of the VFS cache to 100 GB. You can adjust this value based on the amount of RAM available on your system.
--vfs-read-chunk-size 128M: This option sets the read chunk size to 128 MB. This is the size of the chunks that rclone will read from the VFS cache. A larger chunk size can improve performance, but it can also increase memory usage.
--vfs-read-chunk-size-limit 2G: This option sets the read chunk size limit to 2 GB. This is the maximum size of a read chunk. Any read request larger than this limit will be split into multiple chunks. You can adjust this value based on your needs.
gdrive:: This is the remote name that you configured when setting up rclone with Google Drive.