Stay organized with collections Save and categorize content based on your preferences.
Windows
If you attached a new, blank disk to your VM, before you can use it you must format and mount the disk. If you attached a disk that already contains data, then you must mount the disk before you can use it.
Before you beginSelect the tab for how you plan to use the samples on this page:
ConsoleWhen you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.
gcloudInstall the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
Note: If you installed the gcloud CLI previously, make sure you have the latest version by runninggcloud components update
.To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.
Install the Google Cloud CLI. After installation, initialize the Google Cloud CLI by running the following command:
gcloud init
If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.
For more information, see Authenticate for using REST in the Google Cloud authentication documentation.
Go to the VM instances page.
Click the RDP button next to the VM that has the new blank disk attached. The browser opens an RDP connection to the instance.
Use the Windows Disk Management utility to format and mount the new disk on a Windows VM.
Right-click the Windows Start button and select Disk Management.
Disk Management prompts you to select a partitioning scheme for the new disk. Select GPT and click OK.
After the disk initializes, right-click the unallocated disk space and select New Simple Volume.
Follow the instructions in the New Simple Volume Wizard to configure the new volume. You can use any partition format that you like, but for this example select NTFS
. Also, check Perform a quick format to speed up the formatting process. Optionally, set the cluster size in the Allocation unit size field. The cluster size limits the maximum size of the partition. Keep this in mind if you try to resize the zonal persistent disk and this partition later.
After you complete the wizard and the volume is formatted, check the Status
column on the list of attached disks to ensure that the new disk has a Healthy
status.
You can now write files to the disk.
What's nextExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["New blank disks attached to a Windows VM must be formatted and mounted before use, while disks with existing data only need to be mounted."],["Authentication is required to access Google Cloud services and APIs, with options for Console, gcloud CLI, and REST API access."],["To connect to the VM, navigate to the VM instances page and use the RDP button."],["Formatting and mounting a new disk on a Windows VM is done using the Windows Disk Management utility, typically involving selecting GPT partitioning and creating a new simple volume with an `NTFS` format."],["After formatting, ensure the disk status in Disk Management is `Healthy` to confirm it is ready for use."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4