I stored quite a lot of experimental data and files on my USB. Today, I plugged this USB into a computer in the university computer lab, but all the files were gone. I think I had a virus that was making all my files inaccessible. My colleagues say files can be unhidden through Command Prompt. How can I recover hidden files in USB using CMD? Please help!
The USB, a widely used portable storage device, allows for a plug-and-play interface between a computer and peripherals. However, despite its convenience, USB devices can be vulnerable to virus attacks when plugged into a computer, making it essential to know how to make a USB show hidden files and find lost files on the device.
Before diving into how to unhide files using CMD, let's briefly explore the common causes that lead to USB data being hidden. These can include accidentally deleting files, using a USB drive with a file system that's not compatible with your computer, or even viruses and malware that can hide or delete files without your knowledge.
▪ Files are hidden by system. The system will hide the files that come with the USB file system to protect them from being damaged or deleted by the user.
▪ Files are hidden due to virus attacks. It's possible that some or all of the file attributes have been modified to be hidden due to a virus or other malicious program when the USB is plugged into the computer.
▪ Human error. You may accidentally hide your USB files or the USB data is deleted or formatted due to an operation error, resulting in lost data.
▪ USB hardware failure. The files on the USB drive are not being recognized due to a damaged USB port or a faulty USB drive memory chip.
The attrib command in Windows allows you to display and modify the attributes of files and directories, including read-only, archive, hidden, and system. This can be useful in situations like when a file stored on a USB drive disappears due to a virus infection, and you need to change its attributes to show the hidden directory. The attrib command is available in the Command Prompt of all Windows operating systems.
The attrib command is used to change file attributes. The syntax is: `attrib [-h [-r [-s] [/s [/d] drive-letter: [path] file]`. The parameters used in this command are: `-h` to hide the file, `-r` to read-only, `-s` to system, `/s` to set the attribute for the specified files, `/d` to delete the attribute for the specified files.
Attrib command parameter meanings:
To recover hidden files from a USB drive using the Command Prompt, first, open the Command Prompt as an administrator. Then, navigate to the USB drive by typing `cd /d < drive>:`.
Step 1. To get your USB recognized by a Windows computer, plug it into the PC and check if it's detected. If not, you can refer to the page on recovering data from an unrecognized USB flash drive for troubleshooting steps.
Step 2. To access the Power User Menu, press the WIN key and the X key together. Next, click on Windows Powershell (Admin) and confirm with Yes on the User Account Control pop-up screen.
Step 3. To hide, read-only, and system attributes from all files and subfolders on a USB drive, input the attrib command and replace the "drive letter" with your USB drive letter, such as attrib -h -r -s /s /d G:\*.*. Then, press Enter.
Step 4. After the command is finished, you can open the USB to see if all hidden files are visible now.
To display hidden files on a USB drive without using the Command Prompt, you can use the File Explorer settings. To do this, open File Explorer, navigate to the USB drive, and click on the "View" tab in the top menu bar. From the "View" tab, select the "Show" dropdown menu and choose "Hidden items" to make all hidden files visible on the USB drive.
You can directly unhide folders hidden by viruses from Windows File Explorer.
Step 1. Plug in your USB to computer and open the This PC or My Computer app on Windows.
Step 2. Click View on the top and check the Hidden items option to view hidden files.
To recover hidden files in a USB drive via Control Panel, follow these steps. First, click on Start and then select Control Panel. Next, click on System and Security, then click on File Explorer Options.
Step 1. Right-click the Start button, then select Control Panel.
Step 2. Head to Appearance and Personalization and choose File Explorer Options.
Step 3. To view hidden files, folders, and drives on Windows, tap the "View" tab, then check the box next to "Show hidden files, folders, and drives." Optionally, you can also uncheck the box next to "Hide protected operating system files" if desired.
If all methods to retrieve hidden files on a USB drive fail, it's possible that the files were maliciously deleted by a virus. In this case, you can try recovering the lost data from a backup or use data recovery software to recover the USB files.
Deep Data Recovery is a professional tool that offers powerful data recovery features, allowing users to easily and completely recover lost files from USB drives due to virus attacks, accidental deletion, or formatting.
This tool can recover various types of files from different storage devices, including USB drives, internal and external hard drives, and SSDs, as well as SD cards, and can also aid in recovering data from partition loss and system crashes.
Specific USB data recovery steps are as follows:
Step 1. Connect the USB drive you need to recover data to your computer, then download and run Deep Data Recovery software.
Step 2. Hover the mouse over the drive saved deleted files before, and click Scan to scan.
Step 3. The wizard will quickly scan the USB drive and list the found data in real-time.
Step 4. View and select required files. And then, click Recover.
If you've lost files on your USB drive, don't worry - there are several ways to recover them. You can use the Command Prompt to search for and restore deleted files, or use File Explorer to scan the drive for hidden files. Alternatively, you can try using the Control Panel to access the USB drive's properties and see if you can recover any lost files.
Remembering to back up your data is crucial, even though USB data recovery is relatively easy. To make the process simpler, consider using a user-friendly and free backup tool like Qiling Disk Master to create copies of your important data with ease.