Linux disk rescue should begin with a source identity and a preservation goal, not with a file system repair command. A live environment can help you access an unbootable computer, while GNU ddrescue can preserve readable areas of a problematic device into a separate output. Those are different roles. Neither tool makes a mechanically damaged drive safe, and neither bypasses encryption without the required legitimate credentials.
This guide follows an image-file workflow with a persistent mapfile, then separates analysis of the copy from further reads of the original. The commands use placeholders that must be replaced only after checking the actual devices. If the source clicks, disappears or changes capacity, stop and consider a professional recovery assessment. An image-first plan is useful only when the hardware condition makes continued software access appropriate.
Establish What You Are Rescuing
Boot Failure Is Not Proof of File Loss
A computer can fail to boot while its data partition remains readable. Conversely, a working desktop can contain a secondary disk with serious read failures. Record the observed problem before choosing a rescue tool. If the data is readily accessible and the device is stable, a normal verified copy may be sufficient. If reads fail, repeatedly mounting and browsing the source can consume time without creating an independent preservation copy.
Keep the operating system repair goal separate from the data goal. Reinstalling a bootloader or repairing a file system changes the source and may not retrieve the missing work. Secure the important data first where possible. The SystemRescue access-and-backup guide explains a live-environment route for an unbootable Windows computer; it is relevant to accessing files independently of the installed system, not proof that every underlying device is healthy.
Identify Layers Above the Physical Disk
An ordinary partition, an encrypted container, an LVM logical volume and a multi-device array are not interchangeable inputs. Record the layout and required relationships before removing disks or selecting a source. A whole-device image preserves more context than a single partition image, but it also needs more destination capacity. Choose deliberately. This article does not supply a universal assembly or unlock procedure for every layered storage configuration. For a WSL distribution, preserve the TAR export or complete VHDX context instead of assuming that one visible folder is the whole system.
If encryption is involved, preserve the relevant metadata and use legitimate credentials through an appropriate documented tool. Imaging ciphertext can preserve evidence, but it does not decrypt it. A file recovery application cannot replace a lost encryption key. Likewise, selecting one member of an array as though it were a complete standalone file system can produce misleading results. Keep complex configurations for a properly planned assessment.
Inventory Devices by More Than Their Names
Linux device names can change after reconnection or reboot. Record model, serial reference, size, transport and mounted partitions. The following is an inspection example, not a command that chooses the source automatically. If a field is unavailable through an adapter, record the limitation and confirm identity using other reliable details before writing any output. Never assume that the first listed disk is the damaged one.
lsblk -o NAME,PATH,SIZE,MODEL,SERIAL,TRAN,FSTYPE,MOUNTPOINTSLabel the physical source and destination separately. Compare their capacities with the labels and your notes. If you use a stable device path from the system’s identifier links, still confirm what it points to during the current session. A persistent-looking name is helpful context, not a substitute for checking the actual object. The consequence of confusing input and output can be overwriting the only source you intended to preserve.
Prepare Destination Storage and the Session Record
A Raw Image Can Be Larger Than the Visible Files
A whole-device image represents the selected address range, including areas not occupied by current files. Plan destination capacity using the source size, not just Explorer’s or the file manager’s used-space total. Leave room for the mapfile, logs, working copies and recovered files. A destination file system must support the resulting file size. Do not discover a file-size limit after hours of source reads.
Use healthy independent storage and confirm that the output directory is actually mounted on that device. A directory under a missing mount can silently refer to the live environment’s root storage instead. Inspect the mount and available capacity before starting. Create an innocuous test file only on the verified destination if needed, and remove it there. Do not use the source as a temporary staging location.
The Mapfile Belongs with This Exact Rescue
A ddrescue mapfile records the progress and states of ranges for the associated input and output. Preserve it with the image and command history. It is not the recovered data itself and cannot recreate an image that was deleted. It also should not be reused blindly with another source merely because the disk models or sizes match. Source identity is part of the session, not an optional label.
Choose a clear session directory and filenames before starting. For example, use a date and private source reference rather than generic names that may already exist from an older job. Check that the proposed image path is new unless you intentionally resume the same operation. An existing unrelated output combined with the wrong mapfile can make progress information misleading and compromise the interpretation of the result.
Avoid Incidental Source Writes
Keep source file systems unmounted while imaging, and inspect whether the live desktop mounted anything automatically. Do not run a repair utility or let an application save recovery logs onto the source. A software read-only setting can reduce accidental writes, but it is not the same as a hardware write blocker or a guarantee against every action. Use a preservation setup appropriate to the importance and evidentiary requirements of the data.
If the source belongs to the currently running installed system, consider a suitable live environment so that ordinary system activity does not keep changing it. Prepare that environment on a different healthy computer and verify its origin. Creating boot media can overwrite the selected target, so keep that preparation separate from the affected disk. The rescue session should not begin with an accidental overwrite of the source.
Free Method 1: Create a First-Pass Image with a Persistent Mapfile
- Confirm the source identity, make sure its file systems are not mounted, and verify the healthy destination mount and free capacity.
- Choose a new image path and a matching mapfile path for this exact source; record the command before execution.
- Start a documented first pass that prioritizes copying readable areas, and monitor the device for physical or access instability.
- Preserve the resulting image, mapfile and session notes before deciding whether any further source reads are justified.
An Illustrative Command, Not a Universal Device Choice
The example below uses a placeholder source and a regular image file on a healthy destination. The directory must already be the verified mounted destination. Do not paste the placeholder unchanged or substitute a disk name based on guesswork. The GNU ddrescue manual explains the program’s algorithm, options and mapfile use. Review the installed version’s documentation before adapting the example to the actual source.
sudo ddrescue -n /dev/IDENTIFIED_SOURCE /mnt/HEALTHY_DEST/source.img /mnt/HEALTHY_DEST/source.mapThe output here is a regular file, not a destination block device. That choice avoids providing a generic command that overwrites another disk. It does not eliminate the need to verify the filesystem holding the file or the source path. Do not add force, fill, truncate or other options copied from an unrelated example. Each changes assumptions that may matter to preserving the original or interpreting the output.
Monitor Progress without Chasing a Perfect Percentage
Watch for repeated resets, changing capacity, abnormal sounds or a severe deterioration in access. Stop when the hardware condition calls for it. A program can be designed for read errors and still be unable to make a failing mechanism safe. Do not turn the goal into completing every last byte at any cost. The value of the data and the source’s condition should guide whether additional attempts belong in a specialist environment.
A partial image can contain valuable readable information. Preserve it and the mapfile rather than discarding the result because the first pass was incomplete. At the same time, do not describe a large rescued-byte percentage as complete file recovery. A small unreadable region can contain crucial metadata or part of the most important file. The later content analysis must determine which work is actually usable.
Resume Only the Same Identified Session
Before resuming, confirm that the input is the same device and the output and mapfile are the correct matching pair. Recheck names after a reboot or cable change. Keep copies of the progress record as appropriate. A mapfile makes deliberate continuation possible; it does not automatically protect against the operator selecting a different source or a different output file during the next session.
Retry strategy depends on the condition and objective. Do not prescribe unlimited retries for every disk. If access is worsening or the data is irreplaceable, stop and seek an assessment using the preserved result and notes. If further reads are appropriate, use a documented plan and record the exact options. The decision should explain what additional information or data the next pass is expected to obtain.
Freeze a Working Copy before Analysis
Keep the Rescue Output as a Preservation Reference
Once the source-reading phase is paused, disconnect the original when appropriate and preserve the image and mapfile. Perform analysis on a separate copy where capacity allows. A checksum can help identify whether an image file later changed, but it does not prove that the original rescue read every sector correctly. Keep the mapfile because it contains different information about the acquisition’s readable and unreadable ranges.
The article about a structured Clonezilla disk-image workflow is useful for distinguishing a raw rescue image from a structured backup image. A raw file, compressed backup container and VM disk format require different handling. Do not rename extensions to force a tool to accept them. Keep the source format and acquisition history attached to the copy so another person can select a compatible reader without repeating the rescue phase.
Inspect the Layout before Mounting
A whole-disk image can contain a partition table; a partition image starts at a different layer. Determine which you created before attempting to mount it. A mount failure does not necessarily mean the acquisition is useless. You may have selected the whole disk where a partition device is required, or the file system may be damaged, encrypted or unsupported. Record the error and inspect the layout rather than immediately repairing the image.
For a raw whole-disk image, a read-only loop mapping can expose partitions for inspection. The util-linux loop-device manual explains read-only setup and partition scanning. Confirm the assigned loop device and the corresponding backing file. Do not assume it will always be loop0, and do not detach every loop device on a running system as a shortcut when other applications may be using unrelated images.
Free Method 2: Extract Readable Files from the Copy
- Work with an analysis copy of the correct image and expose its layout through a documented read-only mapping.
- Identify the required partition and file system rather than mounting the whole-disk container as though it were a directory.
- Use a file-system-appropriate read-only route and copy needed files to a separate healthy destination.
- Verify the extracted content, record failures and unmount and detach only the mappings created for this session.
A Read-Only Loop Setup Example
The example below applies to a raw image file and asks for a read-only mapping with partition scanning. Replace the path with the verified analysis copy. Record the loop device returned by the command and inspect it before selecting a partition. The source image should not be another process’s active output. Keep the preservation image separate from any later writable repair experiment.
sudo losetup --find --show --read-only --partscan /mnt/HEALTHY_DEST/analysis.imgRead-only mapping is one layer of protection. The mount procedure must also match the file system. Some journaled file systems can perform recovery actions during an ordinary mount, and read-only intent should be expressed through the appropriate supported options. Do not apply a command written for ext4 to XFS, NTFS or an encrypted container merely because the partition name looks similar.
An ext4-Specific Mount Requires ext4 Assumptions
For an identified ext4 partition on the read-only analysis loop, options that avoid journal loading can be relevant. The Linux kernel ext4 documentation documents the behavior and limitations. Skipping journal recovery may expose an inconsistent view, so inability to see the latest state is not proof that the files never existed. Preserve the copy and seek a compatible analysis method rather than enabling writes on the original to see what happens.
This guide deliberately does not provide a universal repair command after a failed mount. A file system check can modify structures, and its suitability depends on the actual format and damage. If repair is justified, make another disposable working copy and document the changes. Keep the original image and mapfile so that a failed repair experiment does not destroy the only preserved representation of the source.
Copy with Metadata Awareness
When extracting files, consider the destination file system’s support for names, permissions, links and other metadata. A simple cross-platform destination can hold ordinary documents while losing Linux-specific attributes or relationships. If those details matter, use an appropriate archive or destination format and verify it. A successful copy dialog does not prove that an executable tree or application dataset retains every property it needs.
Prioritize the files and directories that meet the rescue goal. Keep a manifest of failed paths and content checks. If the image contains unreadable acquisition regions, a file may be present but incomplete. Open important documents and inspect required components rather than relying on directory listings alone. Separate verified, partial and still-missing results so that later recovery work can target a clear remaining gap.
When the File System Will Not List the Needed Files
Analyze the Copy with a Compatible Tool
A compatible file recovery tool may inspect a damaged image or supported mapped source without requiring a normal mount. Confirm its supported formats and operations. The CGSecurity rescue-image guidance discusses the preservation-to-analysis relationship. Do not assume every tool can open every image format, assemble every storage layer or recover deleted files from every Linux file system. Product boundaries matter as much as the acquisition procedure.
Signature-based recovery can sometimes retrieve recognizable content without the original directory tree, but it may lose names, paths and relationships. That can be a useful partial outcome for standalone photos and a poor fit for a complex application dataset. Define the required result before scanning. A directory of fragments is not equivalent to a restored home folder, database or working development project.
Keep Encryption and Deletion Separate
An intact encrypted container without a key remains encrypted after imaging. A mounted file system that lacks a deleted file presents a different problem. Identify the layer at which the required content is unavailable. Do not claim that a deeper scan removes encryption, and do not overwrite encryption metadata during partition experiments. Preserve the legitimate unlock information and the original storage relationships with the rescue notes.
If the needed data exists in an independent backup or application export, evaluate that copy before more source reads. A restored known version can meet the immediate need while preserving the original for later analysis. Record any version gap honestly. A backup from last month and an image containing partial current data may both be useful, but they answer different parts of the recovery request.
A Bounded Drecov Branch for a Windows-Readable Export
PandaOffice Drecov is not presented here as a verified Linux-native application or a universal ext4, LVM or raw-image reader. A separate supported branch exists when a healthy Windows-readable disk held an ordinary exported copy and that copy was independently deleted. Investigating that disk can help retrieve the export while the Linux source and its preserved image remain unchanged. Identify this source explicitly instead of implying that a Windows workflow repairs the Linux original.
For an independently deleted Windows-readable export, file recovery may be relevant to the exported documents. The lost-partition recovery branch requires its own supported source conditions. Neither establishes Linux-native, ext4, LVM or arbitrary-image support. Keep the original Linux device and its rescue image unchanged while evaluating this separate copy.
Select the Independent Export Disk
Open PandaOffice Drecov in a supported environment and match the healthy export disk to its recorded capacity and folder history. Keep the original Linux device disconnected where practical. Install and save outputs away from the affected export location. If the selected source is instead the original ext4 volume or an unsupported container, stop: this workflow’s stated precondition has not been met.

Scan and Compare the Deleted Export
Scan the supported source and filter for the expected document, archive or media type. Compare supported previews with the rescue inventory. An export can omit Linux metadata or represent an older revision, so record what it actually contains. Do not describe a recovered portable document as a complete restoration of the original application environment. Select useful candidates based on content rather than on a familiar filename alone.

Recover to Another Physical Destination
Save the selected outputs to separate healthy storage and open them in suitable applications. Compare required pages, records or media segments and keep incomplete results distinct. A successful export recovery does not verify the Linux image or justify further reads of a failing source. Retain the separate acquisition record and mapfile so any remaining Linux-side work can continue with the correct context.

Resolve Two Ambiguous Rescue Results
The Image Is Large but the Directory Will Not Open
Check whether the image represents a whole disk, a partition or another layer before treating a mount failure as acquisition failure. Inspect the partition map on the analysis copy and identify any encryption or volume-management requirements. Do not format the image to make it mountable. That would create a new file system over the preserved data rather than reveal the old directory.
Compare the unreadable ranges in the mapfile with the analysis limitations where appropriate. A large rescued-byte total can coexist with damage to crucial metadata. A compatible recovery tool may still retrieve useful files, but its output must be checked. Keep the acquisition result and file-recovery result separate so that a successful image creation is not reported as a complete restoration of the original user environment.
A File Copy Succeeded but the Application Rejects It
Preserve the copied candidate unchanged and inspect a duplicate. The problem may involve missing components, unsupported application versions or damaged content. Check those possibilities against the expected project structure. Do not return to the original disk for repeated reads until you know what the analysis copy already contains and which specific missing data another source session would seek.
If application repair is justified, work on a disposable copy and record what changed. A repaired file may omit objects or records even when it opens. Compare meaningful content with available references and describe remaining gaps. The rescue goal is usable information with a known scope, not simply suppressing an error message at the next layer.
Hand Off the Rescue without Losing Its Context
Preserve the Acquisition and Analysis History
Keep the source identity, exact commands, tool versions, image path, mapfile and layout observations together. Record any source writes or repair experiments performed before the image was created. Do not hide an early mistake or an interrupted pass. That history can explain why the current image lacks a region or why a file system view differs from the last known working layout.
If another person continues the work, tell them which image is the preservation reference and which is a disposable analysis copy. State whether the source remains available and what physical warning signs occurred. Provide encryption credentials only through an appropriate private process. The handoff should make it possible to analyze the copy without accidentally resuming against a different disk or overwriting the existing output.
Close with Verified Content, Not Just an Image Size
An image file of the expected size does not by itself prove successful recovery. Compare the required files and note the effect of unreadable ranges, missing metadata or unsupported structures. Keep a list of what is still unresolved. Once useful files are secure, make an independent backup and test a restore. Do not return a failing original to ordinary use simply because the rescue obtained a large amount of data.
The strongest Linux disk rescue workflow preserves context as carefully as bytes. Correct device identity, a matching mapfile and a read-only analysis route make the result reviewable. Application-level checks then show which work is actually usable. Keeping those stages separate allows a partial rescue to be valuable without presenting it as a complete repair of the original disk or every storage layer it contained.








