This is an old but useful method I been using for years now. It's to help my USB drive or external HDD to stay secure from infections if I wish to attach it to other infected PC or maybe have some files transferred to a 3rd party PC and might not know if the PC be infected or not. This will help you copy your files to another device without the worry of writeup by a malware and get your own PC infected after. Stay safe - stay secure!
You will only be able to copy the files off the drive and not write/paste anything into that drive until you remove the write-up protection. Earlier we could do it using going to properties and saving the disk as read-only but now that can be changed easily by malware so we go the old ways to do it using CMD thus read-only cannot be modified unless its done using Promt.
Stay safe and stay secure! Have a good day and do not forget to like this post! ✌😆
You will only be able to copy the files off the drive and not write/paste anything into that drive until you remove the write-up protection. Earlier we could do it using going to properties and saving the disk as read-only but now that can be changed easily by malware so we go the old ways to do it using CMD thus read-only cannot be modified unless its done using Promt.
- Connect your USB Drive or External Drive to your PC and transfer any file/doc you wish into that drive from your original PC.
- Then open cmd (as administrator) and type the following commands:
diskpart > list disk > select disk 1 > attributes disk set readonly (See the picture below to understand)
Hit enter and you are done. In my case, it will show only 2 disks which is disk 0 and disk 1. Select your USB/external disk which in my case is 1.
![[Image: Screenshot-225.png]](https://i.ibb.co/SXdCsG0K/Screenshot-225.png)
- Once done, you just need to exit the cmd and have to eject your drive and connect it back to any 3rd party PC you wish to connect into.
![[Image: Screenshot-226.png]](https://i.ibb.co/WvtQgg4d/Screenshot-226.png)
- As you can see in the picture below, after i open my drive files, and, tried to delete one of them and it appears the disk is write protected.
Thus making the files in your drive very well protected and even write protected by any malware.
![[Image: Screenshot-230.png]](https://i.ibb.co/SXQbd0M5/Screenshot-230.png)
- Now to revert this to its original state, plug it back in, and open cmd and type in the following commands in the format,
diskpart > select disk 1 > attributes disk clear readonly
![[Image: Screenshot-232.png]](https://i.ibb.co/XfVJTX9w/Screenshot-232.png)
and press enter. After closing the CMD repeat the process which is to eject your drive and connect it back.
- Once you connect it back, you'll see the drive is already back at it's default state and is ready to be re-written again.
Stay safe and stay secure! Have a good day and do not forget to like this post! ✌😆


![[Image: support-red.png]](https://hackforums.net/images/hfnews/support-red.png)

