Connect File Shares on On-premise machine

In this step, you will mount the File Share as a drive on the On-premise machine and try using it.

Mount File Shares on On-premise machine

  1. Access the Storage Gateway service management console.
  • Click File Shares.
  • Click the name of the File Share we created.

Mount File Share

  1. In the information section of the File Share you created, the command you can refer to for mounting the File Share will be displayed.
net use [WindowsDriveLetter]: \\172.31.34.142\s3-instancestoragegw-2023 /user:sgw-3EF01857\smbguest

Mount File Share

  1. On your Windows machine on the On-premise side, use Command Prompt to run the command.
net use [WindowsDriveLetter]: \\<Public IPv4 instance>\s3-instancestoragegw-2023 /user:<Gateway-ID>\smbguest

We will replace [WindowsDriveLetter] with an unused drive letter on the Windows machine on the On-premise side.
We will also replace the IP address with the Public IP address of the EC2 Instance we created.
We will replace the Gateway ID after “user:”

Mount File Share

  1. Enter the Guest password you set up in the Guest access section in the previous part, Press Enter.

Mount File Share

  1. Check in Windows File Explorer and you will see a new Z drive appear.

Mount File Share

  1. Create a file on this drive and check again on the S3 bucket, you will see the file will be synchronized with the S3 bucket.

Mount File Share

  • Access the S3 created earlier, the file is synchronized.

Mount File Share