Google Cloud Storage mount on windows

Posted on

A server stack is the collection of software that forms the operational infrastructure on a given machine. In a computing context, a stack is an ordered pile. A server stack is one type of solution stack — an ordered selection of software that makes it possible to complete a particular task. Like in this post about Google Cloud Storage mount on windows was one problem in server stack that need for a solution. Below are some tips in manage your windows server when you find problem about windows, mount, google-cloud-storage, , .

I use Google Cloud Storage successfully in Linux for backups. I first mount the storage and then easily copy the files.

Now I want to do the same in windows, but I can’t find a way to mount Google Cloud Storage as device.

There are many 3rd party tools (i.e. [1][2]) that will allow you to mount a bucket and see it as a drive in Windows. Nevertheless, FUSE is only available for Linux. As per the previous comment, if you are only using GCS to store your backups, you can upload them from the disk using gsutil or Cloud Tools for PowerShell.

You can use Rclone. Rclone is an open-source command-line program to manage files on cloud storage. It use WinFsp to mount remote drive to Windows.

  1. Install Rclone and WinFsp. Remember to add Rclone location to your PATH.

  2. Follow the steps here to set up your remote GCP bucket. If your GCP bucket use Uniform bucket-level access, remember to set the --gcs-bucket-policy-only option to true when configuring Rclone remote drive.

  3. Mount the remote GCP bucket as a local disk

    rclone mount remote:path/to/files X: 
    

    where X: is an unused drive letter. You can find more details here.

A workaround for that would be to mount it using FUSE into a Linux instance and share it via network Samba/NFS. This would allow you to mount it as a unit in your Windows Machine, even share the bucket with different instances in the network. With this way you could restrict the accesses from Samba, adding an extra layer. Perhaps it’s not optimal but it offers more possibilities.

Leave a Reply

Your email address will not be published. Required fields are marked *