{"id":6757,"date":"2026-10-07T13:20:54","date_gmt":"2026-10-07T13:20:54","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=6757"},"modified":"2026-10-08T15:31:42","modified_gmt":"2026-10-08T15:31:42","slug":"removing-disks-from-instances","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/","title":{"rendered":"Removing Disks from Instances"},"content":{"rendered":"\r\n<h1>Removing a Data Disk From a VM, Safely<\/h1>\r\n<p class=\"wp-block-paragraph\">Sometimes an extra disk needs to leave a VM, so that another VM in the same zone can use it, or because the VM no longer needs it. The safe version of this task has three parts, stop using the disk inside the VM, tell the operating system to forget it, and only then detach it in Compute Engine. Skipping the first two can leave a VM that stalls at boot, or applications that lose files mid write.<\/p>\r\n<p>It is also worth being clear about what detaching is not. It does not erase the data, and it does not delete the disk. The disk stays in your project with its contents intact, ready to attach somewhere else, and you keep paying for it until you delete it deliberately.<\/p>\r\n<p>This walks through unmounting a data disk, removing its fstab entry, and detaching it in the console, then covers the boot disk difference and what to do with the disk afterward.<\/p>\r\n<h2>Data Disks Compared With Boot Disks<\/h2>\r\n<ul>\r\n<li><b><\/b><strong><b>A data disk, <\/b><\/strong>is an extra disk you attached for storage. You unmount it inside the VM first, and the VM can stay running.<\/li>\r\n<li><b><\/b><strong><b>A boot disk, <\/b><\/strong>holds the operating system. Google&#8217;s guide for boot disks says you can only detach one from a stopped VM, and that you do not need to unmount it. It is used for repairing a VM or swapping its operating system disk.<\/li>\r\n<\/ul>\r\n<p>This page covers data disks.<\/p>\r\n<p>Prerequisites:<\/p>\r\n<ul>\r\n<li>A Google Cloud account with billing enabled. The Enabling Billing guide in this series covers that.<\/li>\r\n<li>A Linux VM with an extra disk attached and mounted. The Adding Disks in GCP Instances guide in this series covers that.<\/li>\r\n<li>Permission to detach disks from the VM.<\/li>\r\n<\/ul>\r\n<h2>Step by Step Process of Removing a Data Disk From a VM<\/h2>\r\n<h3>Step One: Open the VM&#8217;s SSH Session<\/h3>\r\n<p>Open the console, then the menu, then Compute Engine, then open VM instances from the Menu &gt; Compute Engine &gt; VM instances.<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Open the SSH of instance from which you want to remove the extra disk.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-7674\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg\" alt=\"\" width=\"518\" height=\"204\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg 678w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22-300x119.jpg 300w\" sizes=\"auto, (max-width: 518px) 100vw, 518px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Two: List the Disks<\/h3>\r\n<p class=\"wp-block-paragraph\">lsblk<\/p>\r\n<p>This lists the block devices, the disks, and shows where each is mounted. Find the disk you want to remove, and note its device name and its mount folder.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"840\" height=\"386\" class=\"wp-image-7679\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/10-13.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/10-13.jpg 840w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/10-13-300x138.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/10-13-768x353.jpg 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Three: Unmount the Disk<\/h3>\r\n<p class=\"wp-block-paragraph\">Stop any program that is using the disk first. Then unmount it, using the mount folder shown by lsblk, which is the safest thing to name:<\/p>\r\n<p>sudo umount \/mnt\/disks\/MOUNT_DIR<\/p>\r\n<p>If the command says the target is busy, something is still using the disk. Find it, for example with the lsof command, close it, and try again.<\/p>\r\n<p>Then make a backup of the fstab file and open it:<\/p>\r\n<p>sudo cp \/etc\/fstab \/etc\/fstab.backup<br \/>sudo vi \/etc\/fstab<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"107\" class=\"wp-image-6758\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-2.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-2.jpg 636w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/22-2-300x50.jpg 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Four: Remove the Disk&#8217;s Entry From fstab<\/h3>\r\n<p class=\"wp-block-paragraph\">Delete the whole line for this disk, the one that names its mount folder. In vi, press escape, then type a colon, then wq, then press Enter to save and quit. Google&#8217;s guide says to remove the entry before you detach a disk, even if the entry uses the nofail option, so the VM is not left looking for a disk that is gone.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6759\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/23-1024x439.jpg\" alt=\"\" width=\"862\" height=\"369\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/23-1024x439.jpg 1024w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/23-300x129.jpg 300w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/23-768x330.jpg 768w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/23.jpg 1144w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Five: Confirm the Disk is Unmounted<\/h3>\r\n<p class=\"wp-block-paragraph\">Run the listing command again and check that the disk no longer shows a mount folder:<\/p>\r\n<p>lsblk<\/p>\r\n<p>The original page used this spot for a screenshot of the fdisk command, which deletes a partition. Do not run that command. It is not needed to detach a disk, it makes the disk&#8217;s data unreachable, and it is exactly what you do not want if another VM is going to use the disk. I recommend replacing this screenshot with one of the lsblk output above, showing no mount folder.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6760\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/24.jpg\" alt=\"\" width=\"676\" height=\"506\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/24.jpg 758w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/24-300x225.jpg 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Six: Open VM Instances in the Console<\/h3>\r\n<p class=\"wp-block-paragraph\">Back in the console, open Compute Engine, then VM instances.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-6761\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/25.jpg\" alt=\"\" width=\"494\" height=\"423\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/25.jpg 617w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/25-300x257.jpg 300w\" sizes=\"auto, (max-width: 494px) 100vw, 494px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Seven: Open the VM<\/h3>\r\n<p class=\"wp-block-paragraph\">Click the instance that has the disk attached.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"524\" height=\"191\" class=\"wp-image-6762\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/26.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/26.jpg 524w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/26-300x109.jpg 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Eight: Click Edit<\/h3>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"712\" height=\"580\" class=\"wp-image-6763\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/27.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/27.jpg 712w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/27-300x244.jpg 300w\" sizes=\"auto, (max-width: 712px) 100vw, 712px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Nine: Remove the Disk From Additional Disks<\/h3>\r\n<p class=\"wp-block-paragraph\">In the Additional disks section, find the disk you unmounted and click the button next to it that removes it. The original page calls this delete. It removes the disk from this VM, which is detaching, and the disk itself is not deleted.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"600\" class=\"wp-image-6764\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/28.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/28.jpg 664w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/28-300x271.jpg 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\r\n\r\n\r\n\r\n<h3>Step Ten: Click Done and Save<\/h3>\r\n<p class=\"wp-block-paragraph\">Click Done, then Save. The disk is now detached from the instance.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"649\" height=\"331\" class=\"wp-image-6765\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/29.jpg\" alt=\"\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/29.jpg 649w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/29-300x153.jpg 300w\" sizes=\"auto, (max-width: 649px) 100vw, 649px\" \/><\/figure>\r\n\r\n\r\n\r\n<h2>Detaching From the Command Line<\/h2>\r\n<p class=\"wp-block-paragraph\">The gcloud command for detaching a disk from a VM looks like this. I have not tested it, so check the names carefully:<\/p>\r\n<p>gcloud compute instances detach-disk VM_NAME &#8211;disk=DISK_NAME &#8211;zone=ZONE<\/p>\r\n<h2>After You Detach: Keep, Reattach, or Delete<\/h2>\r\n<ul>\r\n<li><b><\/b><strong><b>To use it on another VM, <\/b><\/strong>attach it there. The disk must be in the same zone as that VM, and you mount it without formatting. The Adding an Existing Disk Into a New VM guide in this series covers that.<\/li>\r\n<li><b><\/b><strong><b>To keep it, <\/b><\/strong>leave it. It stays in your project and keeps costing money for as long as it exists.<\/li>\r\n<li><b><\/b><strong><b>To delete it, <\/b><\/strong>do that separately from the Disks page in Compute Engine. A disk can only be deleted when no VM is using it. Deleting is permanent, so take a snapshot first if there is any chance you will need the data.<\/li>\r\n<\/ul>\r\n<h2>Common Mistakes to Avoid<\/h2>\r\n<ul>\r\n<li>Running fdisk to delete a partition before detaching. It is not needed and makes the data unreachable.<\/li>\r\n<li>Leaving the fstab entry in place. The VM will keep looking for a disk that is no longer there.<\/li>\r\n<li>Detaching a disk while an application is still writing to it.<\/li>\r\n<li>Assuming detaching deletes the disk. It does not, and the disk still costs money.<\/li>\r\n<li>Following these steps for a boot disk. Boot disks need a stopped VM and no unmounting.<\/li>\r\n<\/ul>\r\n<p>That covers removing a data disk from a VM safely, and what to do with it afterward. To go further, explore <a href=\"https:\/\/prwatech.in\/gcp-training-institutes-in-pune\/\">Prwatech&#8217;s Google Cloud training\u00a0program<\/a>, which includes placement assistance.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Removing a Data Disk From a VM, Safely Sometimes an extra disk needs to leave a VM, so that another VM in the same zone can use it, or because the VM no longer needs it. The safe version of this task has three parts, stop using the disk inside the VM, tell the operating [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,1629],"tags":[605,699,706,617,683,684,611,623,626],"class_list":["post-6757","post","type-post","status-publish","format-standard","hentry","category-google-cloud-platform","category-instance","tag-gcp","tag-gcp-certification","tag-gcp-disk","tag-google-cloud","tag-google-cloud-certification","tag-google-cloud-console","tag-google-cloud-platform","tag-instance","tag-removing-disks"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Detach Data Disk From a GCP VM Without Losing Data | PrwaTech<\/title>\n<meta name=\"description\" content=\"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Detach Data Disk From a GCP VM Without Losing Data | PrwaTech\" \/>\n<meta property=\"og:description\" content=\"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-07T13:20:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-08T15:31:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"678\" \/>\n\t<meta property=\"og:image:height\" content=\"268\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/\",\"url\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/\",\"name\":\"Detach Data Disk From a GCP VM Without Losing Data | PrwaTech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg\",\"datePublished\":\"2026-10-07T13:20:54+00:00\",\"dateModified\":\"2026-10-08T15:31:42+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg\",\"width\":678,\"height\":268},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Removing Disks from Instances\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Detach Data Disk From a GCP VM Without Losing Data | PrwaTech","description":"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/","og_locale":"en_US","og_type":"article","og_title":"Detach Data Disk From a GCP VM Without Losing Data | PrwaTech","og_description":"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process","og_url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-10-07T13:20:54+00:00","article_modified_time":"2026-10-08T15:31:42+00:00","og_image":[{"width":678,"height":268,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg","type":"image\/jpeg"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/","url":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/","name":"Detach Data Disk From a GCP VM Without Losing Data | PrwaTech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg","datePublished":"2026-10-07T13:20:54+00:00","dateModified":"2026-10-08T15:31:42+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Safely detach an extra data disk from a Compute Engine VM, skip the risky fdisk step in the old guide, and learn how boot disks differ. Step by step process","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2021\/03\/9-22.jpg","width":678,"height":268},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/google-cloud-platform\/instance\/removing-disks-from-instances\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Removing Disks from Instances"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=6757"}],"version-history":[{"count":12,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6757\/revisions"}],"predecessor-version":[{"id":11913,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/6757\/revisions\/11913"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=6757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=6757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=6757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}