Linux Boot Repair (Debian/Ubuntu)

Linux Boot Repair Guide (Debian/Ubuntu) Introduction Boot issues in Debian or Ubuntu can prevent your system from starting, often due to a corrupted GRUB bootloader, misconfigured partitions, or kernel problems. This guide provides step-by-step instructions to repair the boot process for both UEFI and Legacy (BIOS/MBR) systems using a live USB/CD. It covers GRUB reinstallation, partition setup, and troubleshooting common issues. Prerequisites A Debian or Ubuntu live USB/CD (preferably the same version as your system). Access to a live session by booting from the live media and selecting “Try Ubuntu/Debian.” Basic familiarity with the terminal. Administrative (root) privileges in the live environment. Critical Warning: Verify Partitions Before Formatting ⚠️Warning Extreme Caution: Before formatting any partition, use lsblk or fdisk -l to verify that you are selecting the correct disk and partition (e.g., EFI System Partition or root partition). Formatting the wrong partition can erase your data or critical files. Always double-check the disk and partition layout to avoid data loss. Linux Boot Repair ℹ️Info Tested for real (2026-11-14): the commands below were run on virtual machines broken on purpose - Ubuntu 26.04 on UEFI with its EFI System Partition emptied, Ubuntu 24.04 on BIOS with the boot code wiped from the MBR - from the Ubuntu live media, and both systems started again. In the VMs the disk was /dev/vda; on a PC it is usually /dev/sda, or /dev/nvme0n1 with partitions nvme0n1p1, nvme0n1p2. First: UEFI or BIOS? From the live session: ...

September 27, 2025 · 7 min · 1383 words · Manzolo

Chroot Guide for Debian/Ubuntu

Chroot Guide for Debian/Ubuntu Introduction A chroot (change root) environment allows you to switch the root directory of a Linux session to a different filesystem, enabling you to work within a broken or inaccessible Debian/Ubuntu system as if it were the active system. This is particularly useful for repairing boot issues, recovering files, updating configurations, or resetting passwords. This guide provides step-by-step instructions to set up a chroot environment from a Debian/Ubuntu live USB/CD. ...

September 27, 2025 · 5 min · 1002 words · Manzolo

Rescuing a Failing Disk with ddrescue

Rescuing a Failing Disk with ddrescue ℹ️Info Use case: a disk that reads slowly, throws I/O errors, disappears from the bus or refuses to boot. Get the data off it before attempting any repair - and never repair the patient. 🧭 You repair the image, not the disk chkdsk /f, fsck and sfc /scannow all write. On a drive that is losing sectors, every one of them can turn a recoverable situation into a permanent loss. ...

September 18, 2026 · 17 min · 3429 words · Manzolo