Courseiva
System ArchitecturehardMultiple ChoiceObjective-mapped

LPIC-1 System Architecture Practice Question

A server with UEFI firmware and GPT partitioning has a corrupted bootloader. Which command can be used to reinstall GRUB in UEFI mode?

⚠ Common exam trap

Candidates often assume `grub-install /dev/sda` works universally, but without the `--target=x86_64-efi` flag it defaults to BIOS/legacy mode, which fails on UEFI systems with GPT partitioning.

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 /dev/sda

`grub-install --target=x86_64-efi /dev/sda` explicitly installs the GRUB EFI bootloader for a 64-bit UEFI system. On a GPT-partitioned disk with UEFI firmware, the bootloader must be installed to the EFI System Partition (ESP) using the appropriate target, and this command ensures the correct EFI binary is placed there.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • grub-install --target=x86_64-efi /dev/sda

    Why this is correct

    Correct for UEFI systems.

  • grub-mkconfig -o /boot/grub/grub.cfg

    Why it's wrong here

    Regenerates config but does not install the bootloader.

  • grub2-install /dev/sda

    Why it's wrong here

    Assumes BIOS boot; not UEFI.

  • grub-install /dev/sda

    Why it's wrong here

    This installs GRUB to the MBR, not suitable for UEFI.

About these practice questions

One of 527 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.