SHARE
Facebook X Pinterest WhatsApp

LinuxMonth: Undeleting files under Linux with mc

Written By
thumbnail
Web Webster
Web Webster
Apr 13, 2000

[ Thanks to Anonymous for this link. ]

“While I’m sincerely hoping that you never see hundreds of
needed files evaporating at high speed, I’d like you to be ready
when that day comes.
You’ll probably want to do this as root;
we’ll be mounting and unmounting partitions and working with raw
drive partitions. This may be especially necessary if, like in the
following example, you’ll be unmounting a partition like
/home.”

  • “Get a copy of Midnight Commander on your system.

    While it’s certainly not the only program that could have the
    undelete ability, it’s the program with which I’m most familiar.
    These days, MC contains the undelete code by default. If your
    distribution doesn’t have it, get a copy from
    http://www.gnome.org/mc/ and install it.

    The best time to do this is before you delete the files – you
    want to make as few changes as possible to a filesystem from which
    you hope to recover files.”

  • “Unmount the partition with the erased file(s).

    You should not attempt to undelete files from a mounted partition –
    you risk corrupting the drive.”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

5 Best Free and Open Source Text Expander Tools
webmaster
Jun 13, 2025
Grafito: Systemd Journal Log Viewer with a Beautiful Web UI
Bobby Borisov
Jun 12, 2025
FreeBSD Wants to Know a Few Things
brideoflinux
May 11, 2025
NVK enabled for Maxwell, Pascal, and Volta GPUs
Kara Bembridge
May 1, 2025
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.