Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Emergency procedures

For when something has gone wrong, and you need the steps rather than the tools.

What happenedGo toWrites to the disk?
The computer no longer startsThe computer does not bootyes, the boot loader
Strange noises, read errors, files vanishingThe disk is dyingno, only to the copy
A partition disappearedI deleted a partitionyes, the partition table
A locked Windows diskI need the files from a BitLocker diskno
Bigger disk, or a new computerI want to move to another diskyes, the new disk
The computer changes handsI am giving this computer awayyes, everything

Before anything else

  1. Stop using the disk. Every write can destroy what you hope to recover. Do not run fsck, and do not reinstall, before you have read the procedure.

  2. Do you have a copy of what matters? If not, and the data is worth more than the machine, copy the disk first.

  3. Identify the disk by model and serial, not by letter: sdX can change between boots.

    lsblk -d -o NAME,SIZE,MODEL,SERIAL,TRAN
    
  4. Save your work outside the live system. Files in the running system, such as images, are in memory and vanish at reboot.

d77orphaned does not touch a disk until you tell it to. These procedures do tell it to, and each one says where.

When to stop

Stop and get professional help if the data is irreplaceable and the disk clicks, grinds, or is not detected. Each attempt can make a physical failure worse, and a data recovery lab has better chances with a disk nobody has kept running.

How far these were tested

Each page says what was tested. “In a virtual machine” means on disposable disks, with simulated faults: real failures are messier.