Question 58 of 527
LPIC-1 System Architecture Practice Question
A server configured with UEFI firmware and GPT partitioning fails to boot after a GRUB package update. The administrator suspects the bootloader is not correctly installed. Which command should be used to reinstall GRUB to the EFI system partition?
⚠ Common exam trap
Watch out — candidates often confuse `grub-install /dev/sda` (which works for BIOS/MBR systems) with the UEFI-specific command, or they mistakenly think regenerating the config file with `grub-mkconfig` reinstalls the bootloader.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
grub-install --target=x86_64-efi --efi-directory=/boot/efi
On a UEFI-based system with GPT partitioning, GRUB must be installed as an EFI application to the EFI System Partition (ESP). The `--target=x86_64-efi` flag specifies the EFI firmware target, and `--efi-directory=/boot/efi` points to the mount point of the ESP, ensuring the bootloader files (e.g., `grubx64.efi`) are placed in the correct EFI directory (e.g., `/boot/efi/EFI/GRUB/`).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
grub2-install /dev/sda1
Why it's wrong here
Incorrect; grub2-install is not a standard command; also installing to a partition instead of the disk is wrong.
- ✗
grub-mkconfig -o /boot/grub/grub.cfg
Why it's wrong here
This regenerates the GRUB configuration file, not reinstalling the bootloader to the EFI partition.
- ✗
grub-install /dev/sda
Why it's wrong here
This installs GRUB to the MBR for BIOS systems, not suitable for UEFI.
- ✓
grub-install --target=x86_64-efi --efi-directory=/boot/efi
Why this is correct
Correctly installs GRUB for UEFI, targeting the EFI system partition mounted at /boot/efi.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jul 4, 2026
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.