Formatar e ativar um disco que não é de inicialização em uma VM do Windows
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Windows
Se você anexou um disco novo e em branco à VM, antes de poder usá-lo, formate-o e ative-o. Se você anexou um disco que já contém dados, ative-o antes de usá-lo.
Antes de começar
Configure a autenticação, caso ainda não tenha feito isso.
A autenticação é
o processo de verificação da sua identidade para acesso a serviços e APIs do Google Cloud .
Para executar códigos ou amostras de um ambiente de desenvolvimento local, autentique-se no
Compute Engine selecionando uma das seguintes opções:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Google Cloud console to access Google Cloud services and
APIs, you don't need to set up authentication.
gcloud
Instale a CLI do Google Cloud.
Após a instalação,
inicialize a Google Cloud CLI executando o seguinte comando:
Clique com o botão direito do mouse no botão "Iniciar" do Windows e selecione Gerenciamento de Disco.
O Gerenciamento de disco solicita que você selecione um esquema de particionamento para o novo disco.
Selecione GPT e clique em OK.
Depois que o disco for inicializado, clique com o botão direito do mouse no espaço de disco não alocado e selecione Novo Volume Simples.
Siga as instruções no Assistente Novo Volume Simples para configurar o novo volume. É possível usar qualquer formato de partição que preferir, mas, neste exemplo, selecione NTFS. Além disso, marque Executar uma formatação rápida para acelerar esse processo. Se quiser, defina o tamanho do cluster no campo Tamanho da unidade de alocação. O tamanho do cluster limita o tamanho máximo da partição.
Lembre-se disso se você tentar redimensionar o disco permanente zonal e a partição mais tarde.
Depois de concluir a tarefa guiada pelo assistente e a formatação do volume, verifique a coluna Status na lista de discos anexados para confirmar se o novo disco tem um status Healthy.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\u003cp\u003eNew blank disks attached to a Windows VM must be formatted and mounted before use, while disks with existing data only need to be mounted.\u003c/p\u003e\n"],["\u003cp\u003eAuthentication is required to access Google Cloud services and APIs, with options for Console, gcloud CLI, and REST API access.\u003c/p\u003e\n"],["\u003cp\u003eTo connect to the VM, navigate to the VM instances page and use the RDP button.\u003c/p\u003e\n"],["\u003cp\u003eFormatting 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 \u003ccode\u003eNTFS\u003c/code\u003e format.\u003c/p\u003e\n"],["\u003cp\u003eAfter formatting, ensure the disk status in Disk Management is \u003ccode\u003eHealthy\u003c/code\u003e to confirm it is ready for use.\u003c/p\u003e\n"]]],[],null,["Windows\n\n*** ** * ** ***\n\nIf you attached a new, blank disk to your VM, before you can use it you must\nformat and mount the disk. If you attached a disk that already contains data,\nthen you must mount the disk before you can use it.\n\nBefore you begin\n\n- If you haven't already, set up [authentication](/compute/docs/authentication). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:\n\n Select the tab for how you plan to use the samples on this page: \n\n Console\n\n\n When you use the Google Cloud console to access Google Cloud services and\n APIs, you don't need to set up authentication.\n\n gcloud\n 1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n 2. [Set a default region and zone](/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client).\n\n REST\n\n\n To use the REST API samples on this page in a local development environment, you use the\n credentials you provide to the gcloud CLI.\n 1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n ```bash\n gcloud init\n ```\n 2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n For more information, see\n [Authenticate for using REST](/docs/authentication/rest)\n in the Google Cloud authentication documentation.\n\nConnect to the VM\n\n1. Go to the **VM instances** page.\n\n [Go to the VM instances page](https://console.cloud.google.com/compute/instances)\n2. Click the **RDP** button next to the VM that has the new blank disk attached.\n The browser opens an RDP connection to the instance.\n\nFormat and mount a non-boot disk on a Windows VM\n\nUse the [Windows Disk Management utility](https://learn.microsoft.com/windows-server/storage/disk-management/initialize-new-disks)\nto format and mount the new disk on a Windows VM.\n\n1. Right-click the Windows Start button and select **Disk Management**.\n\n2. Disk Management prompts you to select a partitioning scheme for the new disk.\n Select **GPT** and click **OK**.\n\n3. After the disk initializes, right-click the unallocated disk space\n and select **New Simple Volume**.\n\n4. Follow the instructions in the **New Simple Volume Wizard** to configure\n the new volume. You can use any partition format that you like, but for\n this example select `NTFS`. Also, check **Perform a quick format**\n to speed up the formatting process. Optionally, set the cluster size\n in the **Allocation unit size** field. The cluster size\n [limits the maximum size of the partition](https://learn.microsoft.com/windows-server/storage/file-server/ntfs-overview).\n Keep this in mind if you try to resize the zonal persistent disk and this\n partition later.\n\n5. After you complete the wizard and the volume is formatted, check\n the `Status` column on the list of attached disks to ensure that the\n new disk has a `Healthy` status.\n\nYou can now write files to the disk.\n\nWhat's next\n\n- Learn how to [resize your persistent disks](/compute/docs/disks/resize-persistent-disk).\n- Learn how to regularly [back up your disks using snapshots](/compute/docs/disks/create-snapshots) to prevent unintended data loss."]]