Formatea y activa un disco que no sea de arranque en una VM de Windows
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Windows
Si adjuntaste un disco nuevo en blanco a tu VM, antes de poder usarlo, debes formatear y activar el disco. Si conectaste un disco que ya contiene datos, debes activar el disco antes de poder usarlo.
Antes de comenzar
Si aún no lo hiciste, configura la autenticación.
La autenticación verifica tu identidad para acceder a los Google Cloud servicios y las APIs. Para ejecutar código o muestras desde un entorno de desarrollo local, puedes autenticarte en Compute Engine seleccionando una de las siguientes opciones:
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
Instala Google Cloud CLI.
Después de la instalación,
inicializa Google Cloud CLI ejecutando el siguiente comando:
Haz clic derecho en el botón Inicio de Windows y selecciona Administración de discos (Disk Management).
La Administración de disco te solicita que selecciones un esquema de partición para el disco nuevo.
Selecciona GPT y haz clic en Aceptar (OK).
Una vez que el disco se inicialice, haz clic derecho en el espacio del disco sin asignar y selecciona Volumen simple nuevo.
Sigue las instrucciones del Asistente para volumen simple nuevo a fin de configurarlo. Puedes usar cualquier formato de partición que quieras, pero para este ejemplo, elige NTFS. Además, debes marcar Dar formato rápido para acelerar el proceso de formateo. De manera opcional, configura el tamaño del clúster en el campo Tamaño de unidad de asignación. El tamaño del clúster limita el tamaño máximo de la partición.
Ten esto en cuenta si intentas cambiar el tamaño del disco persistente zonal y esta partición más tarde.
Una vez completado el asistente y formateado el volumen, verifica la columna Status en la lista de discos adjuntos para asegurarte de que el disco nuevo tenga el estado Healthy.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (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,["# Format and mount a non-boot disk on a Windows VM\n\nWindows\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\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\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-----------------\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------------------------------------------------\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\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."]]