Rat's

Windows/Mac系统下挂载Google Drive网盘为本地硬盘使用
说明:今天在邮件里发现曾经申请过一个edu邮箱,而且还可以用,就搞了个无限空间的Google Drive网盘挂载到...
扫描右侧二维码阅读全文
25
2018/01

Windows/Mac系统下挂载Google Drive网盘为本地硬盘使用

说明:今天在邮件里发现曾经申请过一个edu邮箱,而且还可以用,就搞了个无限空间的Google Drive网盘挂载到VPS或者电脑上玩玩,这里就分享下Windows/MAC系统使用Google Drive File Stream工具挂载Google Drive网盘的方法,VPS服务器挂载方法请参考:在Debian/Ubuntu上使用rclone挂载Google Drive网盘

截图

请输入图片描述

客户端

提示:从官方下载客户端需要挂梯子。

1、Windows客户端
适用于Windows 7及更高版本,不支持Windows Server版本。
下载地址:官方下载本地下载

2、MAC客户端
适用于El Capitan10.11)及以上、High Sierra10.13)。
下载地址:官方下载本地下载

使用

Windows系统直接打开客户端登录账号就可以用了。

MacOS 10.13High Sierra)上使用Drive File Stream方法:
1、打开Drive File Stream
2、在左上角,转到System Preferences > Security & Privacy
3、在“开发人员的系统软件"Google, Inc." was blocked from loading,"单击Allow

Vultr注册就送$50,可开日本/新加坡等机房,【点击注册】。
最后修改:2018 年 01 月 25 日 10 : 33 PM

发表评论

26 条评论

  1. freeskylong

    你好,请问windows系统可以用rclone挂载google drive吗?

    我试了好几次都失败了,问题如下:

    $ rclone version
    rclone v1.48.0

    os/arch: windows/amd64go version: go1.12.3

    $ rclone config
    No remotes found - make a new one
    n) New remote
    s) Set configuration password
    q) Quit config
    n/s/q> n
    name> gdrive
    Type of storage to configure.
    Enter a string value. Press Enter for the default ("").
    Choose a number from below, or type in your own value
    1 / A stackable unification remote, which can appear to merge the contents of several remotes
    "union"
    2 / Alias for an existing remote
    "alias"
    3 / Amazon Drive
    "amazon cloud drive"
    4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, etc)
    "s3"
    5 / Backblaze B2
    "b2"
    6 / Box
    "box"
    7 / Cache a remote
    "cache"
    8 / Dropbox
    "dropbox"
    9 / Encrypt/Decrypt a remote
    "crypt"
    10 / FTP Connection
    "ftp"
    11 / Google Cloud Storage (this is not Google Drive)
    "google cloud storage"
    12 / Google Drive
    "drive"
    13 / Hubic
    "hubic"
    14 / JottaCloud
    "jottacloud"
    15 / Koofr
    "koofr"
    16 / Local Disk
    "local"
    17 / Mega
    "mega"
    18 / Microsoft Azure Blob Storage
    "azureblob"
    19 / Microsoft OneDrive
    "onedrive"
    20 / OpenDrive
    "opendrive"
    21 / Openstack Swift (Rackspace Cloud Files, Memset Memstore, OVH)
    "swift"
    22 / Pcloud
    "pcloud"
    23 / QingCloud Object Storage
    "qingstor"
    24 / SSH/SFTP Connection
    "sftp"
    25 / Webdav
    "webdav"
    26 / Yandex Disk
    "yandex"
    27 / http Connection
    "http"
    Storage> 12
    See help for drive backend at: https://rclone.org/drive/

    Google Application Client Id
    Setting your own is recommended.
    See https://rclone.org/drive/#making-your-own-client-id for how to create your own.
    If you leave this blank, it will use an internal key which is low performance.
    Enter a string value. Press Enter for the default ("").
    client_id>
    Google Application Client Secret
    Setting your own is recommended.
    Enter a string value. Press Enter for the default ("").
    client_secret>
    Scope that rclone should use when requesting access from drive.
    Enter a string value. Press Enter for the default ("").
    Choose a number from below, or type in your own value
    1 / Full access all files, excluding Application Data Folder.
    "drive"
    2 / Read-only access to file metadata and file contents.
    "drive.readonly"
    / Access to files created by rclone only.
    3 | These are visible in the drive website.
    | File authorization is revoked when the user deauthorizes the app.
    "drive.file"
    / Allows read and write access to the Application Data folder.
    4 | This is not visible in the drive website.
    "drive.appfolder"
    / Allows read-only access to file metadata but
    5 | does not allow any access to read or download file content.
    "drive.metadata.readonly"
    scope> 1
    ID of the root folder
    Leave blank normally.
    Fill in to access "Computers" folders. (see docs).
    Enter a string value. Press Enter for the default ("").
    root_folder_id>
    Service Account Credentials JSON file path
    Leave blank normally.
    Needed only if you want use SA instead of interactive login.
    Enter a string value. Press Enter for the default ("").
    service_account_file>
    Edit advanced config? (y/n)
    y) Yes
    n) No
    y/n> n
    Remote config
    Use auto config?

    Say Y if not sureSay N if you are working on a remote or headless machine
    y) Yes

    n) No
    y/n> n
    If your browser doesn't open automatically go to the following link: https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=202264815644.apps.googleusercontent.com&redirect_uri=urn%3Aietf%3Awg%3Aoauth%3A2.0%3Aoob&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=4dafcace2a9d31385c85c06100b2bcd8
    Log in and authorize rclone for access
    Enter verification code> 4/pAFu5SDmM1U4lql2OIqbOJ60IF6h2gyDq_bsiWG6bDlSWIvI1dG9GYg

    2019/08/20 13:55:53 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: read tcp 192.168.199.134:1916->216.58.200.234:443: wsarecv: An existing connection was forcibly closed by the remote host.

    下面是选自动配置
    Use auto config?

    Say Y if not sureSay N if you are working on a remote or headless machine
    y) Yes

    n) No
    y/n> y
    If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth
    Log in and authorize rclone for access
    Waiting for code...
    Got code
    2019/08/20 13:42:57 Failed to configure token: failed to get token: Post https://oauth2.googleapis.com/token: read tcp 192.168.199.134:1772->172.217.160.106:443: wsarecv: An existing connection was forcibly closed by the remote host.

    1. Rat's
      @freeskylong

      应该可以,不过你本地可以访问谷歌吗,可以的话就可以挂

      1. freeskylong
        @Rat's

        可以访问的,我挂着梯子,就是每次都到返回验证码这步,不管手动还是自动都能收到验证码,然后每次都报错,rclone官网挂载google drive的教程也看了步骤都没问题,没发现有和我遇到同样问题的,呃。。。晚上回去换个电脑试试吧,不会是系统问题吧。

        1. Rat's
          @freeskylong

          不对,你这个是谷歌,是不需要远程的,你配置的时候填的好像不太对,Say Y if not sureSay N if you are working on a remote or headless machine填N看看,一般能填N就N。

  2. Tony

    请问上传下载文件需要挂梯子吗?

    1. Rat's
      @Tony

      需要

  3. chromefor国内浏览器下载中心

    这个东西好,有时间一定试试

    1. Rat's
      @chromefor国内浏览器下载中心

      还行,不过挺方便的。

      1. chromefor国内浏览器下载中心
        @Rat's

        文件转移速度怎么样。与本地网速一样么

        1. Rat's
          @chromefor国内浏览器下载中心

          肯定是要差一点的,具体看网络情况。

  4. 木易酱

    这个挂载上之后,显示总空间是1EB,但是可用空间只有79.5G,如果移动文件超过79.5G就提示空间不足,如何破?

    1. Rat's
      @木易酱

      感觉这个容量与你C盘大小有关,毕竟上传的时候需要缓存,你可以参考这个文章:https://www.moerats.com/archives/498/。

      1. 木易酱
        @Rat's

        是的,确实是和DriveFS所在的磁盘的大小相当,我把DriveFS按照你这个帖子移动到E盘,E盘还有1.9T空间,然后这个挂载之后显示剩余1.85T。但是随着文件的上传,缓存越来越大,E盘空间也越来越小,也导致这个挂载盘空间不断减小。我能删除DriveFS里面的缓存之后继续传文件吗?

        1. Rat's
          @木易酱

          可以,缓存可以清空。

          1. 木易酱
            @Rat's

            那意思是,容量用完之后,我清空缓存,然后容量又回来了,然后又可以向挂载盘里面传文件了?

            1. Rat's
              @木易酱

              可以。

  5. osaki

    厉害啊,可是我国内的教育邮箱不能申请到google的教育版套装··········
    能问一下你的教育邮箱哪里申请的吗?我可以拿个5T的one drive跟你换

    1. Rat's
      @osaki

      我在美国西南大学注册的,听说很容易通过,你试试,地址:http://www.swccd.edu/。

  6. 花蘑菇

    拥有edu邮箱怎么申请无限空间的google drive啊,楼主有教程么

    1. Rat's
      @花蘑菇

      我都是直接通过学校门户界面进入的谷歌网盘。

      1. 花蘑菇
        @Rat's

        如果这样的话,离校网盘会被收回么

        1. Rat's
          @花蘑菇

          应该不会吧,具体不清楚。

  7. 小烂毛

    挂载好了上传下载文件需要爬Q嘛?

    1. Rat's
      @小烂毛

      Windows系统需要。

  8. todsr

    为什么会有可用10GB 我拉进去文件 发现我的C盘空间没了 可以不在本地吗? 或者换个盘存

    1. Rat's
      @todsr

      解决方法:https://www.moerats.com/archives/498/。