https://github.com/ic7400a/lenovo-debian-bootfix
Windows batch script for Lenovo laptops that re-adds a Debian boot entry when BIOS updates remove it.
https://github.com/ic7400a/lenovo-debian-bootfix
bios boot debian linux
Last synced: 10 months ago
JSON representation
Windows batch script for Lenovo laptops that re-adds a Debian boot entry when BIOS updates remove it.
- Host: GitHub
- URL: https://github.com/ic7400a/lenovo-debian-bootfix
- Owner: IC7400A
- License: gpl-3.0
- Created: 2025-08-10T15:04:28.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T15:13:51.000Z (11 months ago)
- Last Synced: 2025-08-10T17:18:06.074Z (11 months ago)
- Topics: bios, boot, debian, linux
- Language: Batchfile
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lenovo Debian BootFix
A simple Windows batch script to quickly restore boot access to Debian after a Lenovo BIOS update removes or overwrites the Linux boot entry.
## Why this exists
Many Lenovo laptops remove custom EFI boot entries when the BIOS is updated. This often leaves Debian (and other Linux distros) unbootable until GRUB or another boot manager is restored.
This script adds a **temporary UEFI boot entry** pointing to your Debian installation so you can boot immediately without a full reinstall or rescue media.
---
## Features
- Works entirely from Windows — no live USB required.
- No permanent changes to firmware (entry is temporary until reboot).
- Lightweight and portable (single `.bat` file).
---
## Requirements
- **Windows with Administrator privileges**
- Built-in Windows tools: `bcdedit` and `bcdboot`
- Knowledge of your Debian EFI partition location (usually `/boot/efi`)
---
## Usage (Windows)
1. Download `debian-bios.bat` from the [releases](./releases) section or clone this repo.
2. Open **Command Prompt as Administrator**
- Press `Win` → type **cmd** → right-click → **Run as administrator**.
3. Navigate to the folder containing `debian-bios.bat`.
4. Run:
```cmd
debian-bios.bat