# Mount the S3 bucket on the Windows

## Prerequisite

* Create s3 bucket  (<https://docs-epc.gitbook.io/ncs-documents/storage/object-storage-s3/create-an-object-storage-bucket> )&#x20;
* Create an Object Storage Sub-User (<https://docs-epc.gitbook.io/ncs-documents/storage/object-storage-s3/create-an-object-storage-sub-user> )

## Instructions

### 1. Install Rclone

* Download the Rclone from the official website (<https://downloads.rclone.org/rclone-current-windows-amd64.zip>).&#x20;
* Extract the downloaded zip file. (Ex. C:\Program Files\rclone\\)&#x20;
* open Command Prompt (CMD) and change the directory to ( C:\Program Files\rclone\rclone-v1.69.2-windows-amd64 )  then type command  rclone&#x20;

<figure><img src="/files/uD1AQWRKuqU9oExSO4K9" alt=""><figcaption></figcaption></figure>

### 2. Configure Rclone with S3

Now that we have installed rclone, we will continue with the configuration by typing config command  rclone config  &#x20;

* select n for a new remote configuration.&#x20;

<figure><img src="/files/FRqqUPugv8adPxMHEY5o" alt=""><figcaption></figcaption></figure>

* give a name to the connection (e.g. S3)&#x20;

<figure><img src="/files/bH1gbD48wnEJ7mqpYfHt" alt=""><figcaption></figcaption></figure>

* select 4 for “Amazon S3 Compliant Storage Provider&#x20;

<figure><img src="/files/dbjbbIJoBoMiPShbqNJX" alt=""><figcaption></figcaption></figure>

* select 1 for the S3 provider.&#x20;

<figure><img src="/files/pyPmaEfvLzZm8Mr8v8NL" alt=""><figcaption></figcaption></figure>

* select 2 to use AWS credentials from the Instance Profile we defined earlier.&#x20;

<figure><img src="/files/awFaB0E08A26KbkKStRt" alt=""><figcaption></figcaption></figure>

* Use the access\_key\_id and secret\_access\_key of your Sub-User

<figure><img src="/files/i2b3f5BfXbkfQgvjiHZS" alt=""><figcaption></figcaption></figure>

* select 12 (ap-southeast-1)  AWS region in which the S3 bucket has been created.&#x20;

<figure><img src="/files/q1kkMZcLEQVcFC5jgQaV" alt=""><figcaption></figcaption></figure>

* Specify a name for the connection: s3-bkk.nipa.cloud&#x20;

<figure><img src="/files/1wL9l9SNXDlZRVMno6TG" alt=""><figcaption></figcaption></figure>

* Leave the remaining fields blank, then press Enter to continue.&#x20;

<figure><img src="/files/rMtuYqDmdaOzKohUaJSq" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/KuYqIw57cOmgDc0q5u1l" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/ONkJVbH1M7m80FKz2olL" alt=""><figcaption></figcaption></figure>

* finally, skip the advanced configuration by typing n. We get a summary of the configuration. If everything is fine we can type y. Otherwise n to restart the configuration process.&#x20;

<figure><img src="/files/TxHhUHcAKlsa7sR3zsjs" alt=""><figcaption></figcaption></figure>

### 3. Mount the S3 Bucket as a Windows Drive

In order to make rclone work we need [winfsp](http://www.secfs.net/winfsp/rel/), an open source Windows File System Proxy which makes it easy to write user space filesystems for Windows. It provides a FUSE emulation layer which rclone uses in combination with cgofuse.&#x20;

To get rid of this error, we need to download and install [winfsp-1.7.20172.msi](https://github.com/billziss-gh/winfsp/releases/download/v1.7/winfsp-1.7.20172.msi).&#x20;

&#x20;

Mount the S3 Bucket as a Windows Drive by command:&#x20;

```
 rclone mount <configuration_name>:<bucket_name>  X:  --vfs-cache-mode full ---links 
```

ตัวอย่าง

<figure><img src="/files/gpnXk1SvgqKhQZHhzOyI" alt=""><figcaption></figcaption></figure>

### 4. Verify Mount

Open File Explorer, We can now see a new disk mounted on the instance.&#x20;

&#x20;Let’s drop a file at the root of the disk to see if everything is working.&#x20;

<figure><img src="/files/1CB5tbogz8VfqBCu6S0g" alt=""><figcaption></figcaption></figure>

Referrence <https://blog.spikeseed.cloud/mount-s3-as-a-disk/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/storage/object-storage-s3/mount-the-s3-bucket-on-the-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
