The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • A Visitor’s Guide to Fresno (CA), United States

  • A Visitors Guide to New Orleans (LA), United States

  • A Visitors Guide to Sacramento (CA), United States

  • A Visitors Guide to Lyon, France

  • JisuLife Ultra2 Portable Fan: A Powerful Multi-Function Cooling Solution

  • A Visitors Guide to Viña del Mar, Chile

  • A Visitors Guide to Århus, Denmark

  • A Visitors Guide to Bakersfield (CA), United States

  • A Visitors Guide to Aurora (CO), United States

  • A Visitor’s Guide to Toledo (OH), United States

How To
Home›How To›8 Ways to Recover Deleted Files from Pen Drive in Linux

8 Ways to Recover Deleted Files from Pen Drive in Linux

By Matthew Lynch
February 29, 2024
0
Spread the love

Introduction:

Accidentally deleting files from a pen drive is a common occurrence for many computer users. However, recovering those deleted files can be quite challenging, especially in a Linux environment. Fortunately, there are several ways to recover deleted files on Linux systems. In this article, we will explore eight different methods to help you retrieve your lost files.

1. TestDisk

TestDisk is a powerful open-source tool designed to recover lost partitions and undelete files on different file systems, including FAT, NTFS, and ext2/ext3/ext4. Simply install TestDisk using your package manager and run it on the pen drive using the command line. You can follow TestDisk’s step-by-step instructions to undelete the desired files.

2. Photorec

Photorec is another excellent open-source recovery tool that works side by side with TestDisk. It specializes in file recovery from various storage devices and supports a wide range of file formats. Install Photorec using your package manager and run it from the terminal, following its comprehensive instructions to recover your deleted files.

3. Extundelete

Extundelete is specifically designed for ext2, ext3, and ext4 file systems used by most Linux distributions. It can quickly recover deleted files from an unmounted partition of your pen drive. To use this tool, install it using your package manager and run it with administrator privileges from the terminal.

4. Foremost

Foremost is another useful file recovery tool for Linux that works by analyzing any storage media’s raw data to find and recover the deleted files. Install Foremost with your package manager and run it on your pen drive via command line, specifying the types of files you wish to recover.

5. Scalpel

Scalpel is an advanced file carving tool that allows you to recover deleted data by scanning the raw blocks of a pen drive. It works with numerous file formats and can be customized to suit your recovery requirements. Install Scalpel via your package manager and configure its text-based configuration file to specify the file types you want to recover.

6. Undelete

Undelete is a simple command-line tool that utilizes your file system’s journaling feature to recover deleted files on ext3 and ext4 file systems. Install Undelete using your package manager, unmount the affected pen drive, and run Undelete via terminal, specifying the target directory for recovered files.

7. ddrescue

ddrescue is a data recovery tool that can copy data from one file or block device to another. While it doesn’t recover deleted files directly, it can create an image of your pen drive, which you can use with other recovery tools to find lost files. Install ddrescue with your package manager, create an image of your pen drive, and use other recovery tools to retrieve deleted files from the image.

8. Manual recovery using a hex editor

If all else fails, you can use a hex editor such as GHex or Hex Fiend to analyze the raw data on your pen drive manually. This method is quite advanced and time-consuming but can be useful in certain cases where other tools may not work. Open your pen drive using a hex editor, search for the deleted files’ signatures, and extract them manually.

Conclusion:

Recovering deleted files from a pen drive in Linux is not always an easy task, but there are several tools available that can help you get your lost data back. Try out these eight methods outlined above and choose the best option based on your specific needs and expertise level. Always remember to back up important data regularly to minimize the risk of losing files in the future.

Previous Article

How to Judge a Debate: 12 Steps

Next Article

The Best Crime Novels of 2024

Matthew Lynch

Related articles More from author

  • How To

    How to Draw a Cityscape: 4 Steps

    November 3, 2023
    By Matthew Lynch
  • How To

    14 Simple Ways to Know if Your Girlfriend Is Pregnant

    March 24, 2024
    By Matthew Lynch
  • How To

    How to Clean Mildew from Grout: 11 Steps

    April 8, 2024
    By Matthew Lynch
  • How To

    How to Write a Life Story Essay

    April 9, 2024
    By Matthew Lynch
  • How To

    9 Ways to Brush Teeth Without Toothpaste

    October 22, 2023
    By Matthew Lynch
  • How To

    4 Ways to Carry a Cat

    October 19, 2023
    By Matthew Lynch

Search

Login & Registration

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2025 Matthew Lynch. All rights reserved.