
To clear the read-only attribute (making the disk writable), use the command attributes disk clear readonly.You can list the attributes of the disk with the command attributes disk.In this example, we want to work with disk 1, so the command is select disk 1. Select your USB flash drive with the select disk command.In this example, we know that Disk 1 is our USB flash drive because its size is 14 GB. Use the disk size to determine which one is your USB flash drive. At the DISKPART> prompt, type list disk and press Enter.If you receive a User Account Control prompt asking for permission to continue, click Yes.



The write protection switch is useful for keeping the contents of your drive safe from malware when you need to view them on a public computer. Some USB flash drives have a write protection switch on the side or bottom.
