{"id":10889,"date":"2018-01-11T03:50:46","date_gmt":"2018-01-11T03:50:46","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=10889"},"modified":"2018-01-11T03:54:19","modified_gmt":"2018-01-11T03:54:19","slug":"set-a-disk-or-volume-read-only-in-windows","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/set-a-disk-or-volume-read-only-in-windows\/","title":{"rendered":"How to Set a Disk or Volume Read-Only in Windows 10 \/ 8 \/ 7"},"content":{"rendered":"<p>How to enable write protection for a disk drive or set your volume read-only? How can I prevent a hard drive from being formatted? In this tutorial we&#8217;ll show you how to set a particular disk or volume read-only in Windows 10 \/ 8 \/ 7, without using any third-party software.<\/p>\n<p><strong>Part 1: Set a Volume Read-Only<\/strong><\/p>\n<ol>\n<li><a href=\"https:\/\/www.top-password.com\/blog\/open-command-prompt-in-windows-10\/\" rel=\"noopener\" target=\"_blank\">Open the Command Prompt as administrator<\/a>, and then run the <strong>diskpart<\/strong> command.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/diskpart.png\" alt=\"\" width=\"567\" height=\"216\" class=\"alignnone size-full wp-image-10890\" \/>\n<\/li>\n<li>Type <strong>list volume<\/strong> and press Enter. Next type <strong>select volume #<\/strong>, where # is the number of the volume you&#8217;re going to lock it as read-only.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/select-volume.png\" alt=\"\" width=\"600\" height=\"255\" class=\"alignnone size-full wp-image-10891\" \/>\n<\/li>\n<li>To make your selected volume read-only, type <strong>attributes volume set readonly<\/strong> and press Enter.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/set-volume-read-only.png\" alt=\"\" width=\"544\" height=\"162\" class=\"alignnone size-full wp-image-10892\" \/>\n<\/li>\n<li>Now, you&#8217;ll be unable to delete or modify the files on that volume. When you try to format that volume, you&#8217;ll get the error &#8220;<em>The disk is write protected<\/em>&#8220;.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/the-disk-is-write-protected.png\" alt=\"\" width=\"400\" height=\"143\" class=\"alignnone size-full wp-image-10893\" \/>\n<\/li>\n<\/ol>\n<p>If you want to clear ready-only attribute for your volume later, just repeat steps 1 through 2 above and then run this command:<\/p>\n<p><code>attributes volume clear readonly<\/code><\/p>\n<p><strong>Part 2: Set a Disk Read-Only<\/strong><\/p>\n<p>If you want to set the entire disk read-only, follow these steps:<\/p>\n<ol>\n<li>Open the Command Prompt as administrator, and then run the <strong>diskpart<\/strong> command.<\/li>\n<li>Type <strong>list disk<\/strong> and press Enter. Next type <strong>select disk #<\/strong>, where # is the number of the disk you want to make read-only.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/list-disk.png\" alt=\"\" width=\"500\" height=\"293\" class=\"alignnone size-full wp-image-10894\" \/>\n<\/li>\n<li>To set your chosen disk read-only, type <strong>attributes disk set readonly<\/strong> and press Enter.\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2018\/01\/set-disk-read-only.png\" alt=\"\" width=\"500\" height=\"188\" class=\"alignnone size-full wp-image-10895\" \/>\n<\/li>\n<li>Now your disk is write-protected and all its partitions turn into read-only.<\/li>\n<\/ol>\n<p>When you want to clear ready-only attribute for your disk, just repeat steps 1 through 2 above and then run this command:<\/p>\n<p><code>attributes disk clear readonly<\/code><\/p>\n<p>That&#8217;s it!<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to enable write protection for a disk drive or set your volume read-only? How can I prevent a hard drive from being formatted? In this tutorial we&#8217;ll show you how to set a particular disk or volume read-only in Windows 10 \/ 8 \/ 7, without using any third-party software. Part 1: Set a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,1894,3,39],"tags":[3661,3663,3662],"class_list":["post-10889","post","type-post","status-publish","format-standard","hentry","category-tips-tricks","category-windows-10","category-windows-7","category-windows-8","tag-hard-drive-read-only-windows-10","tag-set-windows-volume-read-only","tag-the-disk-is-write-protected-windows-10"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/10889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=10889"}],"version-history":[{"count":6,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/10889\/revisions"}],"predecessor-version":[{"id":10901,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/10889\/revisions\/10901"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=10889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=10889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=10889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}