101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 29


Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

Show Answer
Correct Answer: E

To install GRUB 2 into the master boot record, the correct command is grub-install /dev/sdc. This command is used to install the GRUB bootloader to the specified device, and it functions for both GRUB and GRUB 2, ensuring compatibility regardless of the specific version being used.

Discussion

9 comments
Sign in to comment
McLabaOption: E
Apr 14, 2021

A. NO the right command is:# grub2-install /dev/sda B. NO it's for create bootable device C. NO does not exist D. NO does not exist E. YES it's the right command also on Grub2 system

JilN
May 25, 2021

It's good to remember that unlike GRUB Legacy, you don't need to install GRUB2. all you do is rebuild the main installation file. This is done by running either grub-mkconfig or grub2-mkconfig.

demarkoOption: A
Dec 19, 2020

It should be option A, but they missed the dash (-) in between grub2-install grub-install will work only for grub, not for grub2 https://unix.stackexchange.com/questions/183053/grub-install-command-not-found

HieuNguyen887
Apr 9, 2021

So, maybe the Answer something wrong

aMiPLOption: E
Mar 31, 2021

grub-install is correct on debian (man grub-install) grub-install (GRUB) 2.02+dfsg1-20+deb10u4

mrironOption: E
Dec 19, 2020

#grup2-install is a right answer, but "grup2 install" is not correct, there is no "-" sign between

fproofOption: A
Apr 8, 2021

it seems to be a typo error in answer A is "grub2-install" and not "grub2 install" right answer A!!!

Doudou92iOption: A
Dec 18, 2020

why not rep A ??

XVO668Option: E
May 10, 2023

To install GRUB2, the correct command is grub-install /dev/sdc. The command grub2 install /dev/sdc is not the correct syntax. The grub-install command is used to install the GRUB bootloader to the Master Boot Record (MBR) of the specified device, in this case, /dev/sdc. (says GPT)

NinymoOption: E
Mar 24, 2024

Answer: E