How to Recover Data in Linux After Formatting a Hard Disk or USB Stick

How to Recover Data in Linux After Formatting a Hard Disk or USB Stick


⭐⭐⭐⭐⭐In this powerful Linux tutorial, you’ll discover how to recover data in Linux after formatting a hard disk or USB stick using the most effective tools and methods available. Whether you accidentally formatted your drive or lost data during a system cleanup, this guide shows you exactly how to get your files back—even if they seem gone forever. Watch as we walk you through data recovery step-by-step using tools like TestDisk, PhotoRec, and extundelete. With real-life examples and before/after file recovery comparisons, you’ll learn how Linux users can rescue their data like pros. No advanced knowledge is required—just follow along and recover your precious files today!

✔️ Hetman Partition Recovery – https://hetmanrecovery.com/hetman_partition_recovery_download.htm
👉 Linux: How to recover files after emptying Trash or using Shift + Del - https://hetmanrecovery.com/recovery_news/linux-how-to-recover-files-after-emptying-the-recycle-bin-or-shift-del.htm
❗️❗️❗️ SUPPORT UKRAINIAN ARMY, donate to the “Come Back Alive” fund ❗️❗️❗️ -https://savelife.in.en/donate/

📚 Content:
00:00 - Intro
00:49 - How to format a disk in Linux
02:32 - The function of disk wiping or overwriting in Linux
03:00 - Data recovery in Linux after formatting

🐧 How to Install, Configure and Use a Linux Subsystem 🐧 - https://www.youtube.com/playlist?list=PLWfvrWYvsWiLzk9Y50N7bIXdGtjqVCLj7

Other videos: #LinuxDataRecovery #RecoverDeletedFiles #FormatRecoveryLinux #USBDataRecoveryLinux #HowToLinux #LinuxHelp #LinuxTutorial #RestoreFilesLinux #HardDriveRecoveryLinux #DataRecoveryGuide

👉 Support the project: Become a sponsor of this channel - https://www.youtube.com/channel/UCu-D9QnPsAPn7AtxL4HXLUg/join
Patreon - https://www.patreon.com/hetmansoftwaredatarecovery
Closed Caption:

Hello everybody. Watch this video to
find out how to recover data lost after
formatting a hard disk, USB stick or
memory card in Linux. When any storage
device is formatted, a part of the
information about the location of data
on the disc is erased. However, in most
cases, data recovery after formatting is
still possible. Your chances for success
depend on the file system type, type of
data, and the number of files. Another
factor is what information and how much
of it was written to the disk after it
was formatted.
Be warned, you shouldn't write anything
or do other things to your freshly
formatted discs since it will greatly
reduce your chances for recovery.
In this video, I will illustrate my
actions with example of Mint, but
everything is relevant for other
versions of Linux as well. Abuntu,
CentOS, Fedora, Debian, and so on. How
to format a disk in Linux.
So, let's begin. Suppose we have a disk
containing some data.
Go to the disks tool to see that the
disck is healthy and has the file system
ext4 xfs or better fs. In fact, it
doesn't matter what file system is used
for a disc. The sequence of actions
described in this video will work for
all Linux file systems and soon you will
understand why. Let's format the disck
in any way you find convenient. With a
terminal, you can identify the required
disc by its size or name or by its file
system.
with specialized software tools, for
example, Garted or KDE Partition Manager
or with a graphic interface of your
system or with the disks tool. If you
don't erase the disk, USB stick or
memory card, then your data can be
recovered with the same effectiveness
regardless of which method you decided
to use.
Click on the disk settings menu
and choose format partition.
Pay attention to the erase overrite
feature when formatting your disck. If
you don't enable this option, only the
file allocation table will be
overwritten. The files themselves will
be intact. The operating system will
just label them as deleted. After such
method, recovering information from the
disk won't be difficult. But if you
enable the erase feature, it will
override all this data while formatting
the storage device. In this case, there
is no guarantee that data recovery can
be successful.
So here is how we recover Linux data
after formatting. Choose the format type
and file system.
Click format to start the process.
As you can see, the disc has been
formatted while its files and folders
are removed. What shall we do now?
Run Hatman Partition Recovery. The app
will ask you for the root user password.
Type it.
Select the disk. You can identify the
required disck by its size or name or by
its file system.
Choose full analysis. Fast scan is not
suitable to recover data after
formatting a hard disk, USB stick or
memory card.
Specify the file system of the disk. As
you can see, the recovery tool can deal
with almost any file system. That is why
I said that the file system of the
formatted disc does not matter. Data in
different file systems is actually
recovered in the same way. You can see
the file system of your disck in the
tool itself or in the disk utility.
However, the recovery tool tends to
properly identify the file system of the
discs it works with.
When the scan is over, click finish. Now
you can see the recovery tool has
created two folders. In one of them, you
can find the same number of folders that
have been lost as a result of
formatting. Inside the folders there are
files.
In the other folder, contentaware
analysis, there are files that have been
found by analyzing the contents of
files. They are sorted by type. In both
folders, you can preview the files. If
you're looking for a specific file of a
specific format, then it's more
convenient to find it in contentaware
analysis folder. If you need to recover
contents of a certain folder, then go to
the folder named lost and found. If a
partition is formatted in a different
file system or even deleted, the
recovery tool will also display the
partition with the previously existing
file system. In this case, select a
particular disck with a file system from
which data should be recovered. To have
the files back, select them and hit the
recovery button. Otherwise, drag them to
the recovery list. If you can't see this
list, go to view, toolbars, recover list
to open it.
Then choose a method to save them. Next,
select the folder where to save them.
recovery.
As you can see, the files have been
recovered. I have shown this example
with a hard disk of my computer.
However, using this method, you can
recover data after formatting a USB
stick or memory card, an external hard
disk or another storage device,
regardless of the interface used to
connect them to a computer, be it a card
reader, USB port, or type-C port.
Talking of data recovery from SSDs, this
process has its own pecularities, but
it's a topic for another video. And that
is all for now. Hit the like button and
subscribe to our channel. Leave comments
below to ask questions if you have any.
Thank you for watching and good luck.
[Music]
[Music]

Video Length: 07:06
Uploaded By: Hetman Software: RAID / VM / Server Data Recovery
Published: 6/25/2025
View Count: 6,439

Related Software Products
Hetman Partition Recovery
Hetman Partition Recovery

Published By:
Hetman Software

Description:
Hetman Partition Recovery: Get Files Back From Formatted, RAW and Lost Partitions Hetman Partition Recovery is a $67.95 one-time data recovery program for Windows, macOS and Linux that scans hard drives, SSDs, USB sticks and memory cards after deletion, formatting, partition loss or file system damage, and lets you preview what it found for free before you pay. It suits home users with a drive that suddenly shows as RAW or asks to be formatted...


Related Videos
Recovering Deleted Files with Hetman Partition Recovery
Recovering Deleted Files with Hetman Partition Recovery

Video Length: 02:23
Uploaded By: Michael Miroshnichenko (7/1/2012)
View Count: 105,894

How to Recover Data After Formatting a Hard Disk, USB Drive or a Memory Card
How to Recover Data After Formatting a Hard Disk, USB Drive or a Memory Card

Video Length: 06:04
Uploaded By: Hetman Software: RAID / VM / Server Data Recovery (10/4/2022)
View Count: 61,119

Hetman Partition Recovery Walkthrough
Hetman Partition Recovery Walkthrough

Video Length: 02:23
Uploaded By: Softonic Videos (11/19/2014)
View Count: 15,188

Recovering System NTFS Partition with Hetman NTFS Recovery
Recovering System NTFS Partition with Hetman NTFS Recovery

Video Length: 02:24
Uploaded By: Michael Miroshnichenko (10/22/2014)
View Count: 8,493

Recovering Data from SD, MicroSD, MiniSD Memory Cards with Hetman FAT Recovery
Recovering Data from SD, MicroSD, MiniSD Memory Cards with Hetman FAT Recovery

Video Length: 02:22
Uploaded By: Michael Miroshnichenko (10/29/2014)
View Count: 3,014

BitLocker Recovery: Deleted Files, Lost Partitions, and Damaged Drives
BitLocker Recovery: Deleted Files, Lost Partitions, and Damaged Drives

Video Length: 11:34
Uploaded By: Hetman Software: RAID / VM / Server Data Recovery (8/6/2026)
View Count: 469

Copyright © 2026, Ivertech. All rights reserved.