Skip to content

Instantly share code, notes, and snippets.

@kevlawz
Last active April 17, 2020 19:29
Show Gist options
  • Save kevlawz/f01057d938bb92778543d507b33cfc60 to your computer and use it in GitHub Desktop.
Save kevlawz/f01057d938bb92778543d507b33cfc60 to your computer and use it in GitHub Desktop.
FIX: Windows change EFI UUID or a Linux system partition is deleted (e.g. Swap)

EFI UUID Change Scenario

Problem:

Windows formatted the EFI partition and thus its UUID changed...

Solution:

Add the UUID of the new partition to the one in your /etc/fstab

  • Enter maintenance mode or have a terminal
  • Run sudo blkid
  • Write down the UUID of the EFI partition (there should be a partition where it says type=efi)
  • Run sudo nano /etc/fstab
  • Change the UUID of the old EFI partition to the one you wrote down

Deleted or Changed Partition

Problem:

SWAP or other mounting partition was deleted / changed

Solution:

Same as above, just change or delete the appropriate fstab line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment