> For the complete documentation index, see [llms.txt](https://docs.acecloud.ai/knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acecloud.ai/knowledge-base/compute/how-do-i-attach-detach-a-volume-to-an-instance.md).

# How do I attach/detach a volume to an instance?

### a. How do I attach a volume to an instance?

Follow the steps below to learn how to attach a volume:

**Step 1:** [Login](https://customer.acecloudhosting.com/index.php?m=ace_product_register_addon\&action=login) to your account.

**Step 2:** Navigate to **Compute** and then click on **Instances**.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FfMv1AwEox5sOzKTYDsUX%2Fimage.png?alt=media&amp;token=30764f2a-8d0c-46ce-a2f9-07f5db34eecc" alt=""><figcaption></figcaption></figure>

**Step 3:** Click on the **drop-down** against the instance for which you want to attach a volume.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2F3JGPmhaeQVT9KYzNpuRW%2Fimage.png?alt=media&amp;token=f716f654-927e-4544-a8b3-843e4b48c186" alt=""><figcaption></figcaption></figure>

**Step 4:** Choose **Attach Volume** from the drop-down menu.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FPF9K3qbDZXKytViyJruU%2Fimage.png?alt=media&amp;token=7d1f2ecb-bfb6-444a-9d1c-cfa9a47f5978" alt=""><figcaption></figcaption></figure>

**Step 5:** Choose a volume from the drop-down and hit **Submit**.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FNN12nIwyYjuqtWpzAK3I%2Fimage.png?alt=media&amp;token=24ba7557-ef5c-4500-b301-aea16ce24c45" alt=""><figcaption></figcaption></figure>

***Note:** Select the checkbox if you want to delete the volume when the instance is terminated.*

### b. How do I detach a volume from an instance?

Follow the steps below to learn how to detach a volume:

**Step 1:** Click on **Select** against the instance for which you want to detach a volume.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FMEhJ2iAjIX3cGtQhVTBW%2Fimage.png?alt=media&amp;token=a2e2e2d9-729b-4ebb-8d07-2cb32b002a8c" alt=""><figcaption></figcaption></figure>

**Step 2:** Choose **Detach Volume** from the drop-down menu.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2Ff8Tg2OUvI8bJ90J77eM7%2Fimage.png?alt=media&amp;token=ca9ef8d8-07a5-4d69-b40e-2f4f136b4290" alt=""><figcaption></figcaption></figure>

**Step 3:** Choose a volume from the drop-down that you want to remove and hit **Submit**.

<figure><img src="https://2309219721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAttkclnlvS7mshXw1NRn%2Fuploads%2FgANiSa4FWCP4TBYnM2V6%2Fimage.png?alt=media&amp;token=a3e3d8d6-f0b9-4dd5-99dc-815d7079f3dc" alt=""><figcaption></figcaption></figure>
