The link below is for a ZIP file that contains two batch files to either enable or how to disable USB write protection on a Windows 10 computer. These batch files also work on Windows 7 machines.
This solution is ultra-easy and very quick: one click to run the registry edit file and one click to confirm the task. That’s it.
Typically, a person will want to lock down the USB ports of a computer to ensure a virus doesn’t spread through a USB device, such as a flash drive. This batch file provides a fast and simple way to both lock down your USB ports and easily unlock them again.
Important: Do not have a USB flash drive connected to the system when you run either batch file.
For those seeking more technical details, here is the specific registry edit being applied. Changing the DWORD value to 00000001 sets the device policy for the computer to be write-protected. Changing that value back to 00000000 restores normal read/write access.
Note: This USB write protection method is specific to the PC on which it is applied. It is not device-specific and will not follow the USB drive to other machines.
If you require USB write protection that is permanent on the device itself and universal across all computers, contact
Nexcopy.com and ask about their
Lock License USB drives.
This hardware-level solution is embedded in the USB controller, ensuring the drive is always write-protected, preventing any possibility of a virus being written to the USB stick. This is the best universal solution for USB write protection.
Screenshots of the Batch File Process
Batch files included in the ZIP:
Windows confirmation prompt after running the batch file:
Problem Issue: Windows Will Not Assign Drive Letter To USB Flash Drive
This is happening on Win8 and Windows 10.
When I remove a USB drive and reconnect it, Windows will not assign a drive letter. Clearly this is a problem as every other computer I use assigns a drive letter.
There are three solutions. All of which will work:
You can go into Disk Management and select the device to assign a drive letter. This is a manual process and not ideal for each time you plug in a flash drive.
There’s a good chance the driver or registry entry for that device is rogue or corrupt. Use this USBScrub tool to remove the registry entry. Chances are this will fix the problem. USBScrub link
Use ‘diskpart’ and enable the automount feature.
Open Command Prompt as Administrator (search for Command Prompt in the Start Menu, right click, Run as Administrator)
Type ‘diskpart’ and hit Enter.
Once in the ‘diskpart’ command prompt, type ‘automount enable’ and hit Enter.
Type ‘exit’ and click Enter.
For solution number one from above, Disk Management is really the GUI version for diskpart, but with scaled-down functions compared to what diskpart can really do.
Diskpart has 37 commands that you can use to perform very cool tasks. The 38th command is
In a battle that is so ancient most no longer consider it an issue, Microsoft has gone away with the safe removal for USB flash drives. The original suggestion by Microsoft was to eliminate data lose if a user removed the drive before properly ejecting it.
Nine out of ten times you wouldn’t lose data, unless a large file was being transferred, but it’s nice to see Microsoft adjust to user habits.
The update which includes this change is Windows 10 v v1809. If you are not sure the Windows version you have, simply right click the Windows icon in the bottom left of your screen and select “System“
From the resultant page, you can view the version of your OS.
If you have found this post, chances are you are trying to Delete System Volume Information Folder Off Flash Drives.
UPDATE:
Thank you to a reader sending in additional information, we now have a solution that is universal to all PCs. You will never get the “There’s a problem with this drive. Scan the drive now to fix it” message. To get this universal fix, scroll to the bottom of this message and look for “Updated Solution.”
I will venture to say, there are probably five reasons why you are trying to remove this directory (probably more):
You have a SmartTV or stereo in your car and the device is showing this folder, and often times, is the default start location to resume play, so you want to remove it.
A binary verification utility is failing and it shows this folder as the source of inconsistency.
The “Disk needs to be scanned and repaired” message keeps popping up when you remove a drive without using the Eject function from Windows. You are now going crazy and want to stop that message forever.
A virus software utility is indicating this folder has a potential problem (smart hackers could stick their code in here).
You are performing some kind of USB duplication process and this folder continues to be a problem, therefore you want to remove it.
Go ahead and skim down this article if you want to get right to the instructions. For now, I’m going to take some time to explain what this folder is. Knowledge is power, and maybe the reason for why it’s there will deter you from wanting to delete it.
For any disk or storage device connected to Windows will have the “System Volume Information” folder. This is a hidden system file, so if you don’t see it, that is the reason why. You can see this file when you turn on “See Hidden Files” in your view properties settings.
The System Volume Information folder contains two files. The two files are meant for setting restore points and indexing for what is on the drive. Windows is trying to help you if and when you need to search the device for data.
The two files are the IndexerVolumeGuid and WPSettings.dat file. The indexer file assigns a unique identifier (GUID, Global Unique ID) to the drive. The indexing service examines the files so when you connect the drive to the computer in the future, Windows checks the identifier and knows which search database to associate with the drive.
WPSettings.dat file is used for Windows Phone’s Storage settings. If you are dealing with a hard drive, this could be a good thing; if dealing with a flash drive, you don’t need it. I haven’t met a person yet who backed up their phone data to a USB stick.
If you are still on the fence about whether you should remove this folder or not, think about this: If you are dealing with a hard drive with an operating system, don’t delete it. If you are dealing with mass storage drives, like a USB flash drive, you can remove it with little fear something bad will happen.
So how do you remove this folder?
How do you keep from this folder coming back?
The solution is a two-step process. The first step will be disabling the indexing and thus, ask Windows not to put the folder on the drive.
The second step is telling Windows not to start this indexing again once the computer has been restarted.
Keep in mind, if Windows doesn’t see the System Volume Information folder, it will try to write it every time the device is connected, to any Windows computer. This last sentence is an important point.
Let’s begin.
If you have the System Volume Information folder on your device, let us remove it right now. Connect the USB to your computer. Double click the drive letter of the USB and in the Explorer window type CMD. Click Enter.
This will get you to the command prompt to address that specific device.
Now that we are in the command prompt for that drive (note the drive letter in the command window is the same drive letter as your USB in the computer). Let us use syntax to remove the folder. Since the folder cannot be deleted using your keyboard, the command line is the only way.
Type: rmdir “system volume information” /s /q
Now click Enter. That’s it, you are done, files removed!
Moving along, let us set up your computer so the System Volume Information never appears again on your devices.
Press the Windows key + R at the same time (this is to Run a Windows service).
In the field type “gpedit.msc” this is for Group Policy Edit for Microsoft. We are going to edit a Group Policy which affects your entire computer, regardless of the user logged in. Click OK.
Navigate to: Computer Configuration > Administrative Templates > Windows Components > Search
On the right side of your screen, under Search, look for:
Do not allow locations on removable drives to be added to libraries. Once you see this sentence, double click the sentence, so you may edit that Group Policy.
Select the radial button “Enabled” and click Apply and then click OK.
Step-one is now complete, you have turned off indexing to removable drives. The next step is to ensure this indexing doesn’t start back up again the next time you boot up the PC.
Press the Windows key + R at the same time (this is to Run a Windows service).
In the field type “services.msc” this is for Windows Start Up services when the PC is turned on. We are going to edit a service policy. Click OK.
Scroll down until you see Windows Search. Double click that selection.
On the first tab, General, you will see “Startup Type:“
When importing or exporting USB flash drives in the United States you will want to use this Harmonization Code to help with customs paperwork.
The Harmonization Code is tariff nomenclature for internationally trade which defines names and numbers assigned to traded products. The HS Code System came into effect in 1988 and has since been developed and maintained by the World Customs Organization (WCO), based in Brussels, Belgium. There are over 200 countries which participate in this program.
The HS Code for a USB flash drive is: 8523.51.0000
In the event your freight forwarder or delivery service tells you that an ECCN is needed to ship USB flash drives and is required to complete the Automated Export System (AES) or other documentation then please give them the above information and it should all work out.
ECCN stands for Export Control Classification Number. An ECCN is an alpha-numeric classification used in the Commerce Control List to identify items for export control purposes.
Using Windows 10, you can partition a USB flash drive into multiple partitions. The process is not difficult; you simply follow some easy steps. This tutorial will partition the drive so that your device is assigned multiple drive letters when connected to the computer.
This partition process is not done at the USB controller level, or said another way, done at the hardware level. This USB partition process, for lack of better terms, is done at the software level. What does this mean for you? It means the partitions can be wiped off the drive and the full capacity of the USB flash drive can be restored.
When a USB stick is partitioned at the controller level, or at the hardware level, there is no way to reverse the partition. The multi-partition drive is permanent. At the end of this tutorial is the solution for a hardware-based partition solution.
So let’s get started.
How to partition a USB flash drive in Windows 10:
Connect the USB flash drive to your Windows 10 machine. Be sure there is nothing valuable on the USB as this process will remove all content from the drive.
Right Click the Windows icon and select Disk Management.
The Disk Management window will appear with all the connected devices. Select your USB flash drive by clicking one time. By selecting your flash drive, it will allow Windows to apply the partition to that device.
You will see your flash drive as Disk X. The device is represented by diagonal gray lines. Right Click your device in the diagonal gray line area on your screen and select Delete Volume.
Windows will display an error message stating all the contents of the device will be removed. Confirm Yes.
You will now have an unallocated partition for the flash drive. This means a file system is not assigned to the drive. Having no file system on your USB means you cannot save data to the drive. We need to create a file system for this partition, i.e., FAT, FAT32, NTFS, or exFAT.
At the same time, we assign a file system to this partition, we will also slice up the USB flash drive to create multiple partitions.
Right Click the unallocated space on your screen, represented by the diagonal gray lines. Select New Simple Volume from the options presented.
A Microsoft wizard utility will start. Click Next from the first introductory screen. Windows will display the total amount of memory available to the device. This is where you will enter the size of your first partition. In this example, I am using a 2GB flash drive (1,896MBs) and will make a first partition of 500MBs.
The rest of the wizard utility is auto-populated and straightforward. For example, the wizard will ask if you want a specific drive letter assigned to the partition once the process is done.
The wizard utility will ask you what file system you want for this new partition. If you are not sure, just leave the auto-populated selection from Windows.
TIP: If you want the dual partition USB drive to also work in Mac computers, be sure to format the drive as FAT, FAT32, or exFAT. Do not use NTFS, as Mac computers will only read the content but cannot write to the device. In fact, read this article on why to never format USBs as NTFS.
Be sure to set a volume name to the device so the partition (new drive letter) will be easy to recognize.
Click Finish for Windows to make this first partition. Looking in Disk Management once the wizard has closed, you will now see the device with one partition and a balance of the drive as unallocated.
Rinse and Repeat. Do the same steps as above for this smaller unallocated memory space.
After the second pass using the partition wizard for Windows, you will have a dual partition USB drive with two drive letters. Each USB flash drive letter will work and appear like a normal, single flash drive. You can data load each partition as normal. You can even flash one partition to make it bootable if you are into making bootable USB sticks.
Although the above tutorial makes things easy to partition a USB flash drive into multiple drive letters, this method is not permanent. Using the same steps, you may clear out all the partitions and its content. For some users or companies, having an unsecured dual partition drive is not ideal for their business practice or application. There is an alternative. There is a method to partition a USB at the hardware level.
In order to partition a USB drive at the hardware level, or controller level, you will need some specific controller chips and the vendor commands to set up the partitions. These tools are not readily available as there are hundreds of chip makers and thousands of USB suppliers. However, Nexcopy has a solution for business-to-business applications for creating dual partitions at the controller level.
In addition, Nexcopy has the ability to make these partitions write-protected, or read-only. If this hardware solution is what you need, please contact them.
Whether you’re formatting an internal drive, external drive, or USB flash drive, Windows makes it possible to choose between NTFS and exFAT formats. In this guide, we’ll go over the simple steps to formatting a USB drive and which format is best for certain situations.
exFAT is a file system optimized specifically for flash drives. Introduced in 2006, it’s designed to be a lightweight file system like FAT32 without the extra features of NTFS and without the FAT32 limitations. exFAT has very large file size and partition size limits so files larger than 4GB a piece can be stored on a flash drive formatted with exFAT. It makes very few unnecessary writes, and stores files throughout the drive in order to maximize the lifespan and speed up transfers.
It’s a good question; format a USB flash drive as exFAT or NTFS? There are several reasons not to format as NTFS and we’ll explain.
Most of the Time you are Okay
Most of the time, formatting a flash drive is a very simple decision. There are only two situations where you should carefully consider what format to use. Here are the details:
Note: This article is focused on Windows and Mac operating systems.
The file formats available for a USB flash drive are:
FAT (also called FAT16)
FAT32
exFAT
NTFS
HFS (Mac only)
Flash drive manufacturers typically format a drive as either FAT or FAT32. Any device of 2GB or smaller will be formatted as FAT, and any USB over 2GB will be formatted as FAT32.
These two formats are the best file systems for removable drives like USB flash drives because they support quick disconnect functionality. Chances are very slim that you will destroy the device or files if you unplug the USB without using the Eject function (in Windows) or the Un-mount function (in Mac).
The one huge limitation with FAT and FAT32 is the single file size limit. If a single file is larger than 2GB, you need FAT32. If you have a single file bigger than 4GB, you must use NTFS or exFAT. Typically, these large files are video files or restore image files (for restoring a computer operating system from a single image file).
Sometimes you will connect a USB to the PC and get an error message saying the drive has a GPT Protective Partition and you cannot format the drive. Here is the fix to resolve the issue:
First, what is a GPT USB stick? The GUID Partition Table (GPT) is the successor to the Master Boot Record. The MBR was created by IBM back in the early 90s. The problem with MBR is the limitation to partition table sizes which is 2 Terabytes.
Since there are no 2T USB flash drives (at the time of this post), there is no need to use GPT as your partition table.
Removing the GPT Protected Partition can be accomplished through the Windows Diskpart program.
Determine the Disk Number for the USB GPT-protected drive. To do this, perform the following:
Right-click on (My) Computer.
Choose Manage.
Select Disk Management (listed under Storage).
Look for the drive that is identified as GPT and note the Disk number (such as Disk 1).
Format USB GPT Protected Partition
Now, open a Command Window. From the command prompt, type diskpart and press Enter.
The diskpart prompt will open.
From the diskpart prompt, type list disk and press Enter. A list of disks will appear in a text format. You will return to the diskpart prompt.
From the diskpart prompt, type select disk disknumber (in this example from the screen shot above, you would type select disk 1)and press Enter. A message appears saying that the disk is selected. You will return to the diskpart prompt.
From the diskpart prompt, type clean and press Enter. At this point the drive’s partition and signature a removed. You will return to the diskpart prompt.
From the diskpart prompt, type exit and press Enter. Type exit once more to close the Command Window.
There are two ways on “How to make a USB read only.” One method will make the USB read-only in anything it is connected to, so you could say this is a universal way of making a flash drive write protected.
The other way is a PC-specific solution where some registry edits are required to any computer the USB flash drive is connected to.
When we say 100% permanent, this means the USB stick is read only (write protected) on all devices, whether it be computers like a Mac, Windows PC, Linux box, or non-processor based products like a car stereo. This permanent solution also means the status of the drive cannot be changed. The other method flags a USB device to be read only in relationship to the PC it is connected to so that whenever that USB stick is connected to that computer, it makes the USB read only and blocks all write commands to the device.
Most times an IT manager or content owner wants the USB stick to be read only so the files cannot be deleted or formatted off the drive. Another reason for making a USB read only is for the original files to remain the same and block the ability for files to be changed or manipulated. Finally, it’s smart to have USBs read only so that viruses don’t jump onto the drive and possibly spread to other computers.
Let us start with the less permanent way because it’s easier to do and doesn’t require any specific hardware.
You will need a Windows7 machine or higher. The Windows7 machine will have DiskPart utility which allows us to perform all sorts of cool things to flash drives, like setting write protection.
Connect the USB to your Windows computer.
To begin, go to your Windows Start and in the Search Field type cmd
This will run your Command Prompt.
Next, you will want to get to the C root of the Command Prompt and if you are signed in as a user you can simply type cd\ – this will get you back to the root of the C drive.
Type DISKPART
Type LIST DISK
Now you will need to find the USB stick connected to your PC. Most likely it’s DISK 1
This is a great video that explains how flash memory works. Granted, the video is very technical but does work through the concept of reading and writing data to flash. So if you have the 17 minutes to use, I suggest giving this a watch. The video does cover SLC, MLC and TLC memory and how each of these technologies read and write with the different layers of a floating gate device like NAND.
Source: YouTube.
Continue Reading
CRC Verse Checksum Verification for USB flash drives
This article does the math and gives examples on which verification method is best.
This post is to give the general user an idea of what verification method is better for writing data to a flash drive. There are reference links at the bottom of this post which dive much deeper into the two methods of verification if this simple overview is not enough.
The short answer is Cyclical Redundancy Check (CRC) is the best method for checking data written to a USB flash drive.
Many believe a checksum is the best method to verify data written to a flash drive (most popular is MD5). I believe this is favored because it is easier to understand how the verification works, and also easier to implement. However, there are flaws in checksum verification and therefore it is not suitable for verification of data written to a flash drive.
What is the difference between Checksum and CRC verification? The checksum method uses addition in its math calculations to check whether all data was written correctly. CRC uses long division in its math calculations to check whether all data was written correctly. It is worth noting I am talking about binary long division, not the school-yard long division you so fondly remember.
Checksum methods will calculate the total bits in a packet of data and include that total checksum amount when the data is sent over communication lines. The receiver will then look at the packet, read the checksum value and then perform the same calculation to make sure everything adds up. The problem is a high probability that somewhere between the sender and receiver the bits of data are changed, corrupted or swapped yet still turn a correct checksum value after calculation on the receiving end.