{"id":415,"date":"2014-08-02T19:12:39","date_gmt":"2014-08-02T19:12:39","guid":{"rendered":"http:\/\/blog.hovatek.com\/?p=415"},"modified":"2022-08-15T22:19:24","modified_gmt":"2022-08-15T22:19:24","slug":"how-to-set-and-remove-write-protection-from-a-storage-media-sd-card-hard-disk-flash-drive-etc","status":"publish","type":"post","link":"https:\/\/www.hovatek.com\/blog\/how-to-set-and-remove-write-protection-from-a-storage-media-sd-card-hard-disk-flash-drive-etc\/","title":{"rendered":"How to set and remove write protection from a storage media (SD card, Hard disk, Flash drive etc)"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-416\" src=\"https:\/\/www.hovatek.com\/blog\/bpyeki\/uploads\/2014\/07\/Lock-Wooden-USB-Pen-Drive.jpg\" alt=\"How to remove write protection from a storage media (SD card, Hard disk, Flash drive etc)\" \/><\/p>\n<p>In our previous articles about USB storage devices, we focused mainly on recovering corrupted files (see <a href=\"https:\/\/www.hovatek.com\/blog\/how-to-recover-corrupted-files-lost-files-from-corrupt-or-accidentally-formatted-usb-devices\/\">https:\/\/www.hovatek.com\/blog\/how-to-recover-corrupted-files-lost-files-from-corrupt-or-accidentally-formatted-usb-devices\/<\/a>\u00a0)\u00a0and fixing corrupted USB storage devices (see\u00a0<a href=\"https:\/\/www.hovatek.com\/blog\/how-to-fix-repair-corrupt-memory-card-sd-card-or-usb-drive\/\">https:\/\/www.hovatek.com\/blog\/how-to-fix-repair-corrupt-memory-card-sd-card-or-usb-drive\/<\/a>\u00a0) . This time around, we&#8217;ll look at a rather interesting security feature for USB storage devices called Write Protection.<\/p>\n<p><span class=\"important\"> What is Write Protection of storage media?<\/span><\/p>\n<p>Write protection is a security measure implemented on storage devices mostly aimed at preventing data alteration, corruption or deletion. Storage devices work using Input\/Output or Read\/Write processes. When a storage device becomes write protected, it can only be read from, not written to.<\/p>\n<p><span class=\"important\"> What are the benefits of write protection?<\/span><\/p>\n<p>Write protection protects the files on the storage media from corruption, alteration or deletion without adequate permissions; however, this could sometime backfire if the process goes rogue.<\/p>\n<p><span class=\"important\"> How do I setup write protection on storage media?<\/span><\/p>\n<ul>\n<li>Connect the affected storage device to PC<\/li>\n<li>Open\u00a0My Computer<\/li>\n<li>Click\u00a0Local Disk (mostly C:) where Windows is installed<\/li>\n<li>Open the Windows folder<\/li>\n<li>Launch\u00a0regedit.exe<\/li>\n<li>A faster method is to press the Windows button or Start menu then search for regedit.exe<\/li>\n<li>Navigate to: HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\StorageDevicePolicies<\/li>\n<li>If you can&#8217;t locate StorageDevicePolicies then you will need to create this folder<\/li>\n<li>Right-click on Control and click on New &gt; Key.<\/li>\n<li>Name this StorageDevicePolicies<\/li>\n<li>Right-click on the new folder you created called StorageDevicePolicies and click New &gt; DWORD Value.<\/li>\n<li>Name this WriteProtect<\/li>\n<li>Double-click on Write Protect<\/li>\n<li>Change the Value Data to 0<\/li>\n<li>Click OK<\/li>\n<li>Close the Registry Editor and insert the memory stick into your computer<\/li>\n<\/ul>\n<p><span class=\"important\"> Are there any disadvantages of setting write protection on storage media?<\/span><\/p>\n<p>I wouldn&#8217;t really say there&#8217;s a disadvantage if the storage device is intentionally write protected because\u00a0removing it should be just as easy. The write protection process could however go haywire , especially when initiated by unwanted factors. In such cases, you&#8217;ll be unable to add or \u00a0delete files from the storage device.<\/p>\n<p><span class=\"important\">I don&#8217;t remember setting write protection on my storage device, where did it come from?<\/span><\/p>\n<p>Accidental write protection could be as a result of:<\/p>\n<ul>\n<li>Interruption of Read\/Write processes: Pulling out the storage device during use or not making use of the eject \/ safely remove function could result in this<\/li>\n<li>Virus \/ Malware: The PC \/ storage device might have been infected\u00a0by Virus \/ Malware<\/li>\n<li>Hardware damage: The storage device might have developed a faulty hardware<\/li>\n<li>No more storage space: If the external storage device is filled up, it might enter write protection mode<\/li>\n<li>File(s) are set to read only: Its possible that some files on the storage device are set to read only<\/li>\n<\/ul>\n<p><span class=\"important\"> How do I remove write protection on storage media ?<\/span><\/p>\n<p>Some Techniques you could apply are:<\/p>\n<p>1. <\/p>\n<h3>Disable the Write Protection switch<\/h3>\n<p>: If you&#8217;re making use of a lockable Memory card reader or Flash drive then check the sides, you should see a movable switch (write protector). Try changing the position then insert the card reader into the PC again. Ensure it doesn&#8217;t shift while inserting into the PC&#8217;s card reader \/ USB slot. Try changing the memory card reader too.<\/p>\n<p><span style=\"color: #222222;\">2.\u00a0<\/p>\n<h3>Edit Registry to delete \u00a0the\u00a0StorageDevicePolicies\u00a0sub-key<\/h3>\n<p> :\u00a0<\/span>The Windows Registry is a database that stores settings and options for Microsoft Windows operating systems. It contains information and settings for hardware, operating system software, most non-operating system software, and per-user settings. The registry also provides a window into the operation of the kernel, exposing runtime information such as performance counters and currently active hardware.<\/p>\n<p>To open Registry Editor:<\/p>\n<ul>\n<li>Connect the affected storage device to PC<\/li>\n<li>Open\u00a0My Computer<\/li>\n<li>\u00a0Click\u00a0Local Disk (mostly C:) where Windows is installed<\/li>\n<li>Open the Windows folder<\/li>\n<li>Launch\u00a0regedit.exe<\/li>\n<li>A faster method is to press the Windows button or Start menu then search for regedit.exe<\/li>\n<li>\u00a0Navigate to HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control<\/li>\n<li>\u00a0If\u00a0sub-key StorageDevicePolicies exists then\u00a0delete this sub-key<\/li>\n<\/ul>\n<p>3. <\/p>\n<h3>Grant adequate permissions<\/h3>\n<p>: To grant permission;<\/p>\n<ul>\n<li>Run regedit<\/li>\n<li>Click on Edit at the top<\/li>\n<li>Select Permissions<\/li>\n<li>Highlight the user account you&#8217;re currently logged into from the list<\/li>\n<li>Make sure read and full control are checked for permissions for\u00a0the highlighted user account<\/li>\n<li>Click Apply then Ok<\/li>\n<li>Disconnect the USB storage device then reconnect it<\/li>\n<li>Write protection should now be removed<\/li>\n<\/ul>\n<p>4. <\/p>\n<h3>Adjust the Memory chip contacts<\/h3>\n<p>: If the memory chip is experiencing a mechanical issue, loosen up the storage device and locate the memory chip. move aside any component shorting against it then reconnect the storage device to PC.<\/p>\n<p>5. <\/p>\n<h3>Reset the Controller of the storage device<\/h3>\n<p>: Format the USB storage device using\u00a0<a href=\"https:\/\/hovatek.com\/redirect.php?link=http:\/\/download.cnet.com\/HP-USB-Disk-Storage-Format-Tool\/3001-2094_4-10974082.html?hasJs=n&amp;hlndr=1\">HP USB Disk Storage Format Tool<\/a>\u00a0to reset the controller of the storage device<\/p>\n<p>6. <\/p>\n<h3>Install a powerful Antivirus:\u00a0<\/h3>\n<p>Ensure to install a powerful Antivirus like Norton Internet Security, update it then scan the storage device and PC.<\/p>\n<p>7. <\/p>\n<h3>Format under Disk Management<\/h3>\n<p>: To do this;<\/p>\n<ul>\n<li>Right-click on My Computer<\/li>\n<li>Click Manage<\/li>\n<li>Click on Disk Management<\/li>\n<li>Right-click on the storage device<\/li>\n<li>Select Format<\/li>\n<li>A new pop-up will appear, showing the available formatting options<\/li>\n<li>From the drop-down menu, select FAT32<\/li>\n<li>Check the Quick Format option<\/li>\n<li>Click OK to finish<\/li>\n<\/ul>\n<p>8. <\/p>\n<h3>Disable read only mode on files<\/h3>\n<p>: Open every folder and check the files at random to be sure they&#8217;re not set to read only (you could try deleting one file at a time). To remove read only mode on a file;<\/p>\n<ul>\n<li>Right-click on the file that you\u2019re trying to write to<\/li>\n<li>Click on Properties<\/li>\n<li>You\u2019ll see some options at the bottom of this window and one of them is Read-only<\/li>\n<li>Make sure this box is unchecked and then click on the Apply button<\/li>\n<li>You should now be able to write to this file.<\/li>\n<\/ul>\n<p>9. <\/p>\n<h3>Use Diskpart<\/h3>\n<p>:\u00a0Diskpart is a disk-partitioning tool that is built into Windows and is accessible through the Command Line Utility. To use it<\/p>\n<ul>\n<li>Press Windows button or Start menu<\/li>\n<li>Search for cmd<\/li>\n<li>Right-click and run as Administrator<\/li>\n<li>In command prompt, type <em>list disk <\/em><\/li>\n<li>Press Enter<\/li>\n<li>You should see a list of available disks<\/li>\n<li>Take note of the disk number of the write protected storage device (you can tell from the size)<\/li>\n<li>Assuming your disk number is 1 type\u00a0<em>select disk 1<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Type <em>attributes disk clear readonly<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Type\u00a0<em>clean<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Type\u00a0<em>create partition primary<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Type\u00a0<em>format fs=fat32<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Type <em>exit<\/em><\/li>\n<li>Press Enter<\/li>\n<li>Write protection should now be removed<\/li>\n<\/ul>\n<p>Hovatek&#8230;.just a button away!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous articles about USB storage devices, we focused mainly on recovering corrupted files (see https:\/\/www.hovatek.com\/blog\/how-to-recover-corrupted-files-lost-files-from-corrupt-or-accidentally-formatted-usb-devices\/\u00a0)\u00a0and fixing corrupted USB storage devices (see\u00a0https:\/\/www.hovatek.com\/blog\/how-to-fix-repair-corrupt-memory-card-sd-card-or-usb-drive\/\u00a0) . This time around, we&#8217;ll look at a rather interesting security feature for USB storage devices called Write Protection. What is Write Protection of storage media? Write protection is a security measure [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":416,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[818],"tags":[80,126],"class_list":["post-415","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-laptop-desktop","tag-tutorials"],"_links":{"self":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts\/415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/comments?post=415"}],"version-history":[{"count":0,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/posts\/415\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/media?parent=415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/categories?post=415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hovatek.com\/blog\/wp-json\/wp\/v2\/tags?post=415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}