<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Masroor Shahani</title>
    <description>The latest articles on DEV Community by Masroor Shahani (@maxroorr).</description>
    <link>https://dev.to/maxroorr</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4264479%2F0ea94d04-a696-443f-8576-9f8acd2fd2c7.jpg</url>
      <title>DEV Community: Masroor Shahani</title>
      <link>https://dev.to/maxroorr</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxroorr"/>
    <language>en</language>
    <item>
      <title>How to Recover Files From a USB Drive You Formatted by Mistake</title>
      <dc:creator>Masroor Shahani</dc:creator>
      <pubDate>Wed, 25 Nov 2026 10:15:06 +0000</pubDate>
      <link>https://dev.to/maxroorr/how-to-recover-files-from-a-usb-drive-you-formatted-by-mistake-7gk</link>
      <guid>https://dev.to/maxroorr/how-to-recover-files-from-a-usb-drive-you-formatted-by-mistake-7gk</guid>
      <description>&lt;p&gt;Formatting a USB drive or SD card by mistake feels like losing everything at once: wedding photos, work files, years of documents. The good news is that in most cases your files are still there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why formatted files can usually be recovered
&lt;/h2&gt;

&lt;p&gt;A quick format does not wipe your data. It writes a fresh, empty file table (the index that tells Windows where each file lives) and marks the space as free. The actual file contents stay on the drive until something new is written over them.&lt;/p&gt;

&lt;p&gt;That leads to the most important rule:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stop using the drive right away.&lt;/strong&gt; Do not copy new files to it, do not run disk repair tools on it, and do not format it again. Every new write can overwrite something you want back.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two ways recovery works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Reading the old file table.&lt;/strong&gt; Many file systems (FAT32, exFAT, NTFS) leave traces of the old records behind. If those survive, files can come back with their original names and folder structure.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scanning every sector (file carving).&lt;/strong&gt; If the records are gone, a tool can read the raw drive and look for known file signatures, like the start of a JPEG, PNG, MP4, PDF or DOCX file. This finds files even when names and folders are lost.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step by step with SALVAGE
&lt;/h2&gt;

&lt;p&gt;I built &lt;a href="https://maxroorr.github.io/nexora-salvage/" rel="noopener noreferrer"&gt;SALVAGE&lt;/a&gt;, a free Windows app that does both of the above.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download and install it on your PC (not on the drive you want to recover).&lt;/li&gt;
&lt;li&gt;Pick the drive you formatted.&lt;/li&gt;
&lt;li&gt;Start with &lt;strong&gt;Quick Scan&lt;/strong&gt;. It reads the old file system records and restores files with their original names and folders. Quick Scan is free with no data limit.&lt;/li&gt;
&lt;li&gt;If files are still missing, run &lt;strong&gt;Deep Scan&lt;/strong&gt;, which reads every sector and finds 30+ file types. It skips damaged areas so a failing drive does not freeze the scan.&lt;/li&gt;
&lt;li&gt;Save the recovered files to a different drive, never back to the one you are recovering.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;SALVAGE opens the drive in read-only mode, so nothing is ever written to it. A live Drive Map shows which parts of the disk hold data, which are blank and which are damaged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tips that improve your chances
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The sooner you scan, the more you get back.&lt;/li&gt;
&lt;li&gt;A quick format is very recoverable. A full format on modern Windows writes zeros, and that data is usually gone.&lt;/li&gt;
&lt;li&gt;If the drive makes clicking noises or disappears from Windows, make a disk image first and recover from the image.&lt;/li&gt;
&lt;li&gt;Keep recovered files on your PC or cloud, and back them up somewhere else too.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Website and download: &lt;a href="https://maxroorr.github.io/nexora-salvage/" rel="noopener noreferrer"&gt;https://maxroorr.github.io/nexora-salvage/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Release notes: &lt;a href="https://github.com/maxroorr/nexora-salvage/releases" rel="noopener noreferrer"&gt;https://github.com/maxroorr/nexora-salvage/releases&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you try it, I would love to hear how your recovery went in the comments.&lt;/p&gt;

&lt;blockquote&gt;
&lt;/blockquote&gt;

</description>
      <category>windows</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
