Skip to content

Boot Partition UUID Script

matveynator edited this page Nov 8, 2024 · 1 revision

Why Use It?

Keeps /boot consistent and reliable, even with hardware changes.

How It Works

  1. Run as root.
  2. If /boot already uses a UUID, no changes are needed.
  3. If not, select the /boot device when prompted.
  4. The script updates /etc/fstab and creates a backup.

Quick Setup

Run this command to download and execute the script:

curl 'https://raw.githubusercontent.com/matveynator/sysadminscripts/refs/heads/main/boot-from-uuid-fix' > /usr/local/bin/boot-from-uuid-fix; chmod +x /usr/local/bin/boot-from-uuid-fix; /usr/local/bin/boot-from-uuid-fix

Done! Your /boot is now resilient to changes.

Clone this wiki locally