Portable storage devices, such as external hard drives, SD cards, and USB drives, are very resourceful to transfer files from one computer to another, especially photos and videos. But if there are problems with the storage drive or the USB port, you will come across the “The Directory Name is Invalid” Error on your Windows 10 computer.
There are multiple ways in which you can fix the errors and access data from the drive. Continue reading the write-up to learn about the different ways to fix the error
What is a Directory?
In simple terms, A directory is a location for storing files on your computer. It can be a folder within your computer or any external storage device, where you might have stored your files.
What is the “The Directory Name is Invalid” Error?
The directory name is invalid is an error code that usually blocks you from accessing your external storage device. The error code message usually occurs because you've plugged your external devices into the dead USB port.
Can I fix “The Directory Name is Invalid Error”?
Yes, you can fix the “The directory name is invalid error”. Which states “Windows cannot open a folder invalid”. Usually, when you come across this error, it means either there is a problem with the input drivers on your computer or the SD card is corrupted.
However, you can also overcome this error by updating the driver or by fixing the corruption in the SD card/ USB. Follow the troubleshooting steps one after the other to fix invalid directory errors on Windows 10 computers.
Since we just spoke about corrupted SD cards. One thing that everyone has to keep in mind is that they are very fragile to handle. The chance of losing your favorite photos, videos, and precious files is very high when you try to access the data. Therefore, we recommend you first recover the data even before starting the repair process. All you need is a trusted tool such as Remo Data Recovery software to retrieve files without losing the data.
How to Recover Data from a Hard Drive with Invalid Error?
Remo Hard Drive Data Recovery Software is an advanced tool that is powered by deep scan algorithms that scan every sector of the Invalid drive to retrieve data. The tool successfully recovers data from any portable devices such as external hard drives, flash drives, and memory cards which is showing the “The Directory Name is Invalid” error. Download and try the software for free now.
Recover Data from Storage Devices with Directory Name is Invalid error
Download and install the Remo Hard Drive Recovery Software and follow the below steps.
Step 1: From the main screen choose the external drive to be recovered and hit the Scan button to start the drive scanning process. If you didn’t find your drive, click on Can’t find the drive? Option from the next screen select the physical drive and hit the Scan button.
Step 2: The tool starts scanning the drive, make use of the Dynamic Recovery View option to have a look at the files the tool has recovered.
Step 3: Post scanning, the tool will display a complete list of recovered files.
Step 4: Double-click on the recovered files to Preview them.
Step 5: Click on the Filter option to sort files based on file type.
Step 6: Finally, select the files that you want to retrieve and click on the Recover button, provide a location to save the recovered files, and click on the OK button.
That’s it. The tool will start the data saving process, once done you will find all selected files safely restored in the folder of your choice.
How to Fix “The Directory Name is Invalid Error”?
Once you have successfully recovered the data from the corrupt devices. Here are various ways using which you can resolve an invalid drive error, which says “the directory name isn’t valid”.
Method 1: Connect the Drive to Another Port
Additional USB ports will be available on every computer to connect and accept extra peripherals devices. If the message "The Directory Name is Invalid" appears after connecting the flash drive or memory card, disconnect the device and reattach it to a different port.
On rare occasions, the storage disk may function properly on a different port. It is one of the most straightforward methods for overcoming the problem and gaining access to data.
Method 2: Try Connecting the Drive to a Different Computer
If you've tried connecting the drive to other ports and are still having the same problem, Connect the SD card to a different computer to have access to it. This will also indicate whether the issue is related to the storage drive or the connected port.
If you were able to access the disc on another computer, it suggests the prior machine or its ports were malfunctioning.
Method 3: Update the Disk Driver on the Computer
From the previous step, if you find out that the problem is with the USB port, you would have to update the disk driver. Updating the drive will help you resolve the “ the directory name is invalid” error. Here is what you need to do
- Open the Start menu and type Device Manager in the search box
- Now, expand the Disk drives option
- Next, right-click on the drive and select the Update driver option. This will ensure that the driver gets updated.
After updating the driver, try connecting the SD card back onto the computer. This time you will be able to access the drive and its data.
Method 4: Run CHKDSK Command to Fix Corruption in SD card
If the drive is not recognized or shows the same error on a different computer, turns out that the storage drive is corrupted. In which case you would have to fix the corruption to be able to access data.
You can fix the drive using an inbuilt utility i.e the CHKDSK command. Here is how you can find and fix corruption on an external storage drive.
Step 1: Press the Windows+R keys simultaneously to open the Run window.
Step 2: Next, type cmd in the search box and press Enter.
Step 3: Next, type in the following code chkdsk e: /r /f in the command line. (replace ‘e’ with the drive letter, as represented on your computer for the storage )
Step 4: Now, press Enter to initiate the repair process.
Step 5: The CHKDSK will scan for any corruption on the SD card and fix the logical disk errors.
Step 6: Once the corruption is fixed, you can successfully open the drive and access the data.
You also need to note that this CHKDSK command will not work all the time. Sometimes your SD card can get corrupted even more, after running the CHKDSK command. If you are stuck in this situation, you might have to recover data from SD card using a data recovery tool.
Conclusion
While repairing the Invalid Directory make sure you pay close attention to all of the directions. Before attempting the troubleshooting steps, it is necessary and highly suggested to recover the data from the SD card or other devices. In order to prevent data loss. If you have any further questions or concerns about the solution, please leave them in the comments area below.