How to Recover Deleted Data from a USB Flash Drive on Mac

Avatar photo
Written by
2161

recover usb drive on mac

Without a doubt, USB drives are incredibly convenient devices for data storage or transferring files between computers. But just like any other storage device, they’re not flawless. There’s always a tiny chance that something may go wrong, and you’ll lose a valuable file.

So what should you do if a file that you’ve uploaded to the USB drive mysteriously disappeared? How to recover data from a flash drive on Mac? Read on to find the answers.

Is it Possible to Recover Lost Files from USB Drive on Mac?

In most cases, yes. Thanks to modern data recovery solutions, you’ll be able to recover most, if not all, deleted files from your USB drive in a few simple settings. This applies to data loss scenarios like minor corruption, an interrupted move operation, or an accidentally formatted pen drive.

But, it’s imperative to act quickly and avoid writing new files to the drive before recovering your data.

If the USB drive is physically damaged or severely corrupted, DIY data recovery is usually not possible. In these cases, stop using the drive immediately, and contact a professional data recovery service to get back your data.

How to Recover Files From USB on Mac

The first thing that you should do is stop using the USB drive. Just keep it disconnected from your computer until you are ready to start the flash drive data recovery on Mac.

It’s impossible to stress enough the importance of doing this since it’ll prevent the possibility of data overwriting and, therefore, will help with recovering your files.

Method 1:Use Data Recovery Software

Now let’s start the USB data recovery on Mac. The most reliable and effective method of restoring USB on Mac is by using a data recovery tool.

Disk Drill is a great example of such an application since it’s simple to navigate and is pretty versatile. Moreover, it supports all types of USB devices and can recover almost any file (images, videos, documents, archives, and more).

Here’s how to recover a USB drive on Mac using Disk Drill:

  1. Download and install Disk Drill if you haven’t already. Click the file and follow the onscreen instructions to finish the installation.
  2. Connect your USB drive to your Mac and launch Disk Drill. From the list of storage devices, choose the connected flash drive.
  3. Click the Search for lost data button located on the bottom-right of the screen to start scanning your device.disk drill Mac devices list
  4. Click Review found items to preview the files while the application is scanning your drive or wait for it to finish the scan.how to review files on disk drill Mac
  5. Once you’ve found the needed files, click the box near that file to choose it. If you want to recover all of the files, click the box at the top of the files list. When ready, click Recover.recover button disk drill Mac
  6. A pop-up window will appear asking you to choose a folder where you want to keep the recovered file. Click the needed location and click Next.saving recovered files disk drill Mac

Method 2:Recover Recently Deleted Files from Trash

When you delete a file from your USB drive, it doesn’t disappear for good right away — it gets moved into the Trash folder first. So if not much time has passed since you’ve manually deleted a file from your flash drive, the chances are it can still be found in Trash on your Mac and easily recovered.

Important: If you’ve already emptied Trash after deleting the file from your flash drive, then this method won’t work in your situation. The only solution will be to use a Mac USB recovery tool to restore the file.

Here’s how to recover files from a USB on Mac via Trash (if you’ve just recently deleted them):

  1. Launch Trash on your Mac. It is usually located on the right side of the Dock.how to locate trash on dock Mac
  2. Look through the files located there.
  3. Once you find the lost file from your flash drive, drag and drop it into a different folder or back into the USB drive.moving file from trash to USB drive on Mac

Method 3:Unhide Files on the USB Drive

In order to avert unintended changes and deletions, macOS can hide certain folders on the USB drive. Typically, these folders contain app settings, deleted files, and other data. It’s possible that the files you’re looking to recover have simply been hidden by macOS.

Here’s how to unhide these files:

  1. Connect the USB drive to your Mac.
  2. Navigate to the USB drive in Finder.
  3. Press Command + Shift + . (dot) to unhide hidden files. You can use the same shortcut to hide the files again.
  4. You can look in the .Trashes folder to view any files that were deleted from the USB drive.The Trashes folder in a USB Drive.

How to Fix a Corrupted USB Drive

If data disappeared from your flash drive without your interference, it’s possible that the USB drive is corrupted. In such a case, before you start using it again, it is best to fix the issue.

Solution 1: Run First Aid

Disk Utility has a feature called First Aid that can fix errors of any storage device on Mac. So if your USB drive isn’t working properly, you should try to fix it with First Aid. If this doesn’t help, then the last option that you have left is to format the device.

Here’s how to fix a corrupted flash drive on your Mac via Disk Utility:

  1. Head to Launchpad and click Disk Utility to open it.
  2. Look through the list of devices on the sidebar. Click your USB drive to select it.
  3. Click First Aid at the top.first aid button Mac
  4. Click Run to confirm.
  5. Wait for the First Aid process to finish. Click Done.first aid process finished Mac USB Drive

You can also run First Aid using macOS’ Terminal. Here’s how:

  1. Search for Terminal in Spotlight Search (Command + Space), and open the Terminal app.
  2. Type diskutil list and press Enter. This command lists all the drives connected to your Mac. Look for your USB drive in the list.
  3. Type diskutil repairDisk /YOUR USB DRIVE and press Enter. Replace “YOUR USB DRIVE,” with the disk number of your USB drive. In my case, the command was diskutil repairDisk /dev/disk4.diskutil repairDisk
  4. First Aid will scan and repair any errors on the USB drive.

Note: The free Disk Drill for Mac version doesn’t allow you to recover the files from a USB drive but only to preview them. So if the scan has revealed the needed file and you want to proceed with the recovery, you should get the pro version.

Solution 2: Format the USB Drive

You should also use Disk Utility to format your flash drive on Mac. Make sure that there are no files located on the device before formatting it since after the process is finished, all of the data will get erased from the USB drive.

Here’s how to format a USB flash drive on your Mac via Disk Utility:

  1. Head to Launchpad and click Disk Utility to open it.
  2. Click your USB drive from the list of devices on the left side of your screen.
    Click the Erase button at the top.how to format USB Drive on Mac via disk utility
  3. Type in a name for your flash drive in the Name field. If you plan to continue using the drive with your Mac, choose the Mac OS Extended (Journaled) format or any other suitable format.erase USB Drive via disk utility Mac
  4. Click Erase.
  5. Once the USB Drive is formatted, click Done and eject your device.

Now you’ll get a fresh start with your flash drive. You can start uploading files to it and using the USB drive as desired.

Solution 3: Fix Corrupted USB Drive Using TestDisk

TestDisk is an excellent partition repair tool that can recover corrupt and lost partitions from your USB drive. In most cases, TestDisk recovers partitions with the existing data intact.

The program’s lack of a GUI makes using it cumbersome for novice users. You can only navigate the program using a keyboard—use the Arrow keys to highlight an option, and press Enter to select it.

Here’s a step-by-step guide on how to fix a corrupt USB drive using TestDisk for Mac:

  1. Download TestDisk and extract the archive.
  2. Launch TestDisk from the extracted folder.
  3. Choose whether you wish to create a log file or not. A log file will store the events of the partition recovery process. It does not impact the actual repair/recovery process whatsoever.create log
  4. Select your USB drive from the list and press Enter.Select your USB drive
  5. Select the partition table type. TestDisk auto-detects this, so simply press Enter on this screen, unless you’re sure your USB drive has a different partition table.Select the partition table type
  6. Select Analyse and press Enter. Press Enter on the confirmation screen as well.Select Analyse
  7. Select Quick Search and press Enter. TestDisk will list all the partitions it discovers.Quick Search
  8. Each partition will have a prefix next to it—D(eleted), *(Bootable), P(rimary), L(ogical). A partition listed as Deleted will remain deleted if you don’t change the prefix. To change the prefix, highlight the selected partition, and use the arrow keys to cycle through the prefixes. To recover a partition, ensure it has the P prefix before it. Once you’ve changed the prefix, press Enter.
  9. Highlight a partition and press P to list its files. Press Q to go back to the previous screen. If the required partition isn’t listed, select the Deeper Search option—this will take a long time.Select a partition
  10. Once you’ve confirmed the required partitions and files are there, select Write, and press Enter.select Write
  11. Press Y on the confirmation prompt.
  12. confirm writing partition tableTestDisk will repair the USB drive.

Solution 4: Check for Software Updates

Running the latest version of macOS ensures you have the most recent USB drive drivers installed on your Mac. If you’re having trouble accessing your USB drive, it’s worth checking for the latest software update on your Mac and installing it. This may not technically “fix” the USB drive, but it will rule out the possibility of the problem being caused by outdated software.

Here’s how to check for software updates on macOS:

  1. Click on the Apple logo in the top-left corner of your screen.
  2. Choose System Settings, or System Preferences, depending on your macOS version.
  3. Click on General > Software Update. check for software updates on macOS
  4. MacOS will automatically check for updates on this screen.MacOS check for updates

Why Files Disappear From USB Drives

Let’s go through the main reasons why data can get lost on a USB drive:

  • The flash drive is damaged: If the USB fails to mount, your Mac doesn’t recognize it, or it produces weird sounds, there is a chance that the drive is damaged, and therefore, anything can happen to it, including the disappearance of files.
  • The USB got formatted by mistake: This action will erase all of the data from your drive. But if you stop using the drive right away, there will still be a chance for specialized software to recover data from a flash drive on Mac.
  • You ejected the drive while the files were still being copied to it: If you interrupted the process of copying files from your Mac to the USB drive, then, of course, you won’t be able to find them there.
  • The USB device is corrupted: There are a few actions that can lead to this, especially if you use the USB drive between computers with different operating systems (Windows and macOS, for instance).
  • You accidentally deleted the files: Just one wrong click of the mouse, and you can delete an important file. Fortunately, if you realize what you’ve don’t right away, you’ll be able to restore that file from Trash. Otherwise, the only way to do it is to use a data recovery application.
  • The USB drive has been infected with malware: Computer viruses can lock, and often wipe out all existing data from the USB drive. It’s possible that malware caused unexplained data loss on your USB drive. Scan your USB drive using a capable antivirus program to fix this

Conclusion

Recovering data from a USB drive is possible using third-party data recovery tools. However, make sure that the pen drive is not physically damaged and is visible in macOS’ Disk Utility. If not, you’re better off contacting a professional data recovery service.

If the data loss was unexplained, it could be because the USB drive is corrupted. Doing one of the following things should fix it—run First Aid on the drive, use TestDisk to recover corrupt partitions, ensure your Mac is updated, and format the flash drive.

FAQ:

To recover data from a USB drive on macOS, use a data recovery program:
  1. Download Disk Drill and install it.
  2. Open Disk Drill, select the USB drive, and click Search for lost data.
  3. Click on Review found items.
  4. Select the files you wish to restore, and click on Recover.
  5. Pick a recovery destination for the files and click Next.
To recover deleted files from a flash drive, without using software, follow these steps:
  1. Open Trash from the Dock.
  2. Look for the deleted files, right-click on them, and choose Put Back.
  3. Alternatively, you can open the USB drive in Finder, unhide the .Trashes folder and see if the files are there.
You can find any files that went missing from the flash drive in the macOS Trash folder, or the .Trashes folder within the USB drive itself. If the files aren’t there, it’s best to use a data recovery program to get them back.
This is likely because of a file system error, or some other type of logical corruption. You can attempt to fix this by using the First Aid feature in the Mac Disk Utility.
Avatar photo
Romana Levko is a professional content writer with a strong interest in tech-related topics. Her main focus is on data recovery, Apple products, and cybersecurity. She spends her free time tinkering with her Mac and burning through her favorite music albums.
Approved by
12 years experience in software development, database administration and hardware repair.