Skip to content
/ VLRH Public

πŸ› οΈ Automated Linux recovery toolkit using Ventoy. Multi-boot USB creator with resumable downloads, smart system repair, and comprehensive recovery tools for Ubuntu and Debian systems.

License

Notifications You must be signed in to change notification settings

zudsniper/VLRH

Repository files navigation

πŸ› οΈ Ventoy Linux Recovery Helper

A comprehensive, automated toolkit for creating multi-boot USB recovery drives using Ventoy. Perfect for system administrators, Linux enthusiasts, and anyone who needs reliable system recovery tools.

License Platform Ventoy

🚨 Quick Recovery (Standalone Mode)

Need to recover a damaged Linux system RIGHT NOW? You don't need to set up the full Ventoy USB!

Fastest Method (Recommended):

  1. Boot from any Ubuntu/Debian Live USB
  2. Open a terminal and clone this repository:
    git clone https://github.com/yourusername/ventoy_linux_recovery_helper.git
    cd VLRH
  3. Run the quick recovery wrapper:
    sudo ./quick-recovery.sh

This will:

  • Install any missing dependencies (like cryptsetup for encrypted systems)
  • Run a diagnostic test to show your system layout
  • Launch the recovery process

Manual Method:

If you prefer to run the recovery directly:

sudo ./auto-recovery.sh

Features:

  • βœ… Encrypted System Support - Automatically detects and unlocks LUKS encrypted partitions
  • βœ… Smart Partition Detection - Distinguishes between root, boot, and EFI partitions
  • βœ… Filesystem Repair - Runs fsck on unmounted partitions
  • βœ… Package Management - Fixes broken packages and dependencies
  • βœ… Boot Repair - Rebuilds initramfs and updates GRUB
  • βœ… System Analysis - Shows failed services and recent errors
  • βœ… Manual Override - Option to manually select partitions if auto-detect fails

πŸš€ Features

  • πŸ”„ Resumable Downloads - Never re-download ISOs
  • 🎯 Smart Recovery - Automated system repair with one command
  • πŸ“± File Sharing - LocalSend integration for wireless transfers
  • πŸ–₯️ Multi-OS Support - Ubuntu LTS/Current + Debian Stable/Testing
  • ⚑ One-Click Setup - Fully automated Ventoy installation
  • πŸ”§ Comprehensive Tools - Filesystem repair, GRUB fix, package management

πŸ“¦ What's Included

Operating Systems

  • Ubuntu 24.04.2 LTS (Noble Numbat) - 5 year support until 2029
  • Ubuntu 24.10 (Oracular Oriole) - Current release
  • Ubuntu 25.04 (Plucky Puffin) - Latest release
  • Debian 12.11 (Bookworm) - Current stable
  • Debian 13 (Trixie) - Testing/next release

Recovery Tools

  • auto-recovery.sh - Automated system repair (filesystem, GRUB, packages)
  • install-localsend.sh - Cross-platform file sharing
  • master-recovery.sh - Interactive recovery menu
  • Smart partition detection and mounting

πŸ”§ Full Ventoy USB Setup

1. Clone and Setup

git clone https://github.com/zudsniper/VLRH.git
cd ventoy_linux_recovery_helper

# Download ISOs (resumable)
./download-isos.sh

# Install to USB drive (will detect your drive)
sudo ./setup-ventoy.sh

2. Using for Recovery

  1. Boot from your Ventoy USB
  2. Select any Linux ISO from the menu
  3. In the live environment:
sudo mount /dev/sda1 /mnt
cd /mnt/recovery_scripts
sudo ./master-recovery.sh

πŸ’Ύ System Requirements

  • USB Drive: 32GB+ (64GB recommended)
  • Target Systems: x86_64 (AMD64) architecture
  • Network: Required for downloads and some recovery operations
  • Host OS: Linux with bash, wget, curl

πŸ“Š Storage Usage

Component Size Purpose
Ubuntu 24.04.2 LTS ~6.0GB Primary recovery OS
Ubuntu 24.10 ~5.3GB Current release
Ubuntu 25.04 ~5.9GB Latest features
Debian 12.11 ~3.3GB Stable alternative
Debian 13 (testing) ~810MB Next-gen tools
Recovery scripts ~1MB Automation tools
Total ~21.3GB Fits on 32GB+ USB

πŸ› οΈ Advanced Usage

Resume Interrupted Downloads

./download-isos.sh        # Automatically resumes from where it stopped
# OR
./resume-downloads.sh     # Quick alias

Manual System Recovery

# Mount broken system
sudo mkdir -p /mnt/recovery
sudo mount /dev/[root-partition] /mnt/recovery
sudo mount --bind /dev /mnt/recovery/dev
sudo mount --bind /proc /mnt/recovery/proc
sudo mount --bind /sys /mnt/recovery/sys

# Enter system
sudo chroot /mnt/recovery

# Fix issues
update-grub
update-initramfs -u
apt --fix-broken install

Emergency One-Liner

sudo mount /dev/sda1 /mnt && cd /mnt/recovery_scripts && sudo ./auto-recovery.sh

πŸ†˜ Common Recovery Scenarios

Problem Solution
Won't boot / GRUB error Auto-recovery fixes GRUB automatically
Package conflicts dpkg --configure -a + apt --fix-broken install
Kernel panic Rebuild initramfs and update GRUB
File system corruption Automated fsck repair
Need files from broken system Mount + LocalSend for wireless transfer

πŸ”„ Updating Your Toolkit

cd ventoy_linux_recovery_helper
git pull                    # Get latest scripts
./download-isos.sh         # Download new ISOs
sudo ./setup-ventoy.sh     # Reinstall to USB

πŸ“ Project Structure

ventoy_linux_recovery_helper/
β”œβ”€β”€ download-isos.sh          # Resumable ISO downloader
β”œβ”€β”€ setup-ventoy.sh           # Complete Ventoy installation
β”œβ”€β”€ auto-recovery.sh          # Automated system repair
β”œβ”€β”€ install-localsend.sh      # File sharing setup
β”œβ”€β”€ resume-downloads.sh       # Quick resume alias
β”œβ”€β”€ README.md                 # This file
β”œβ”€β”€ LICENSE                   # MIT License
└── .gitignore               # Git ignore rules

🀝 Contributing

Contributions welcome! Please read our contributing guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Areas for Contribution

  • Additional Linux distributions
  • More recovery automation
  • Hardware-specific fixes
  • Documentation improvements
  • Testing on different systems

πŸ“‹ Roadmap

  • Add more Linux distributions (Fedora, openSUSE, etc.)
  • Windows PE recovery tools integration
  • Automated hardware diagnostics
  • Cloud backup integration
  • Web-based recovery interface
  • Support for ARM64 systems

⚠️ Disclaimer

This toolkit will completely erase your target USB drive. Always backup important data before running the setup script. Use at your own risk - while extensively tested, system recovery operations can potentially cause data loss if used incorrectly.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

πŸ“ž Support


Made with ❀️ for the Linux community

Star ⭐ this repo if it helped you recover a system!

About

πŸ› οΈ Automated Linux recovery toolkit using Ventoy. Multi-boot USB creator with resumable downloads, smart system repair, and comprehensive recovery tools for Ubuntu and Debian systems.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages