Notice: Undefined index: jqZoomEnabled in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72

Notice: Trying to get property of non-object in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 72
href="/modules//smartblog/images/325.jpg" data-fancybox-group="other-views" class="fancybox shown" title="
Notice: Undefined index: imageTitle in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 76

Notice: Trying to get property of non-object in /home/mo/prod/old.dpk/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 76
">

How to Set a Hard Disk or Read-Only Partition in Windows 10

  191587 Thursday, September 13, 2018


1. Introduction

2. Steps to follow

3. To read also


Introduction:

How to enable write protection for a disk drive or define your partition as read-only? How can I prevent formatting a hard drive? In this tutorial, we will show you how to set a particular disk or partition as read-only in Windows 10/8/ 7, without using third-party software.   Click HERE to purchase your Windows 10 license key.

Steps to follow

How to set a hard disk or read-only partition in Windows 10
Define a partition as read-only

1. Open the command prompt as an administrator, and then run the diskpart command.

1-Define a Hard Disk or a Read-Only Partition in Windows 10

2. Type list volume and press Enter. Then type select volume #, where # is the ID of the disk partition that you will lock read-only.

to set a hard disk or read-only partition in Windows 10

3. To make the volume selected read-only, type attributes volume set read-only and press Enter.

4. Now you will not be able to delete or modify the files on this partition. When you try to format this volume, you get the error "The disk is write-protected".

If you want to clear the read-only attribute for your volume later, simply repeat steps 1 through 2 above, and then run this command: attributes volume clear readonly


Define a read-only disk

If you want to set the entire disk to read-only, do the following:

1. Open the command prompt as an administrator, and then run the diskpart command.

2. Type list disk and press Enter. Then, type select disk #, where # is the disk number you want to read-only.

3. To set the disk to read-only, type disk set read-only attributes and press Enter.



4. Your disk is now write-protected and all of its partitions become read-only.
When you want to clear the read-only attribute of your disk, just repeat steps 1 through 2 above, and then run this command: attributes disk clear read-only.


To read also

Improve your Internet Connection Speed with TCP Optimizer

How to Delete your Gmail Account?