Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 101-500 topic 1 question 64 discussion

Actual exam question from LPI's 101-500
Question #: 64
Topic #: 1
[All 101-500 Questions]

Which of the following commands installs the GRUB boot files into the currently active file systems and the boot loader into the first partition of the first disk?

  • A. grub-install /dev/sda
  • B. grub-install /dev/sda1
  • C. grub-install current /dev/sda0
  • D. grub-install /dev/sda0
  • E. grub-install current /dev/sda1
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Zeist
Highly Voted 3 years, 9 months ago
I believe that the correct answer is B
upvoted 14 times
ant_man
2 years, 6 months ago
B. grub-install /dev/sda1 Install Grub files in directory /boot/grub of current partition. Install boot loader in first partition of first hard disk.
upvoted 2 times
...
Jonatas
3 years, 7 months ago
The question says "currently active file systems", if installed on / dev / sda1 it will need to be added manually to the drive's boot loader after installation. Correct answer is A
upvoted 13 times
kamilovic
3 years, 5 months ago
full agree - its A
upvoted 3 times
...
CuriousLinuxCat
2 years, 9 months ago
Agreed.
upvoted 1 times
...
...
...
Xameneoh
Highly Voted 2 years, 9 months ago
@rjlg2centos8 Check this explanation: https://wiki.centos.org/HowTos/GrubInstallation#Installing_Grub_using_grub-install . The correct answer is B.
upvoted 10 times
SScott
2 years, 4 months ago
That is correct B is the answer. https://debian-handbook.info/browse/sv-SE/stable/sect.config-bootloader.html#:~:text=Each%20partition%20is%20represented%20by%20its%20number%20on%20the%20disk%20on%20which%20it%20resides%3A%20for%20instance%2C%20/dev/sda1%20is%20the%20first%20partition%20on%20the%20first%20disk https://wiki.archlinux.org/title/GRUB#:~:text=Make%20sure%20to,the%20boot%20loader grub-install current is invalid, A is wrong since the partition is not specified
upvoted 1 times
...
...
blahalt
Most Recent 1 week, 2 days ago
Selected Answer: B
The 100% correct answer is "B" as i had this question in the exam 2024/03/19 ! - "A" would be only correct if the question would ask for Grub MBR installation ! ( grub-install /dev/sda ) - "B" asks for Grub Bootloader installation on 1st Partition on 1st disk. In this case it is /dev/sda1 ! https://wiki.centos.org/HowTos(2f)GrubInstallation.html All other answers are wrong !
upvoted 1 times
blahalt
1 week, 2 days ago
This is a very basic question every Linux Admin should know by heart ! The moderator should change the answer in the Suggested Answer field as well.
upvoted 1 times
...
...
mrfstop
2 months, 3 weeks ago
The correct command to install GRUB boot files into the currently active file systems and the boot loader into the first partition of the first disk is B. grub-install /dev/sda1. Here's a breakdown of why the other options are incorrect: A. grub-install /dev/sda: This command would install GRUB onto the entire disk (/dev/sda), not specifically onto the first partition (/dev/sda1). This is generally not recommended as it can overwrite data on other partitions. C. grub-install current /dev/sda0: The "current" argument is not valid for grub-install. It's used for other commands like grub-mkconfig. D. grub-install /dev/sda0: This command would attempt to install GRUB onto the master boot record (MBR) of the disk, which is not the correct location for GRUB2 (the modern version of GRUB). GRUB2 typically resides in the first partition. E. grub-install current /dev/sda1: As mentioned earlier, "current" is not a valid argument for grub-install.
upvoted 1 times
...
sheilawu
11 months, 2 weeks ago
A is right for SCSI is going /dev/sda(dev/hda1) /dev/sdb(dev/hda2) /dev/sdc(/dev/sdb1) /dev/sdd(/dev/dfb2) ...
upvoted 1 times
sheilawu
11 months, 2 weeks ago
sorry for teh typo /dev/sdc(/dev/hdb1) /dev/sdd(/dev/hdb2)
upvoted 1 times
...
...
Mchoeti
1 year ago
It is A. Why? Option B (grub-install /dev/sda1) is incorrect because it installs the boot loader to the first partition of the first disk, which is not where the boot loader should be installed.
upvoted 2 times
rmmichael95
9 months, 2 weeks ago
The question literally asks it to be installed to the first partition on the first disk...
upvoted 1 times
...
...
Adam_H
1 year, 3 months ago
Selected Answer: A
I believe the correct answer is A: grub-install /dev/sda "run grub-install, pointing it to the boot DEVICE (NOT the partition) and the directory where the boot partition is mounted." source: LPIC -1 (101) Version 5.0 Learning Materials, Page 71
upvoted 2 times
...
JGB869
1 year, 4 months ago
This is what GPT-3 tells me. For example, to install the GRUB boot files and boot loader into the first partition of the first disk, you might use a command like this: sudo grub-install /dev/sda1
upvoted 1 times
...
Freelancer
1 year, 6 months ago
Selected Answer: B
its explained here: https://wiki.centos.org/HowTos/GrubInstallation#Installing_Grub_using_grub-install
upvoted 2 times
...
oladin
1 year, 7 months ago
i think the answer is correct. Check LPIC 101-500 material page 71
upvoted 2 times
...
Wellison
1 year, 9 months ago
A resposta correta é B grub-install /dev/sda1 Instale os arquivos Grub no diretório /boot/grub da partição atual. Instale o carregador de inicialização na primeira partição do primeiro disco rígido. https://wiki.centos.org/HowTos/GrubInstallation#Installing_Grub_using_grub-install
upvoted 1 times
...
KiddyLitty
2 years ago
Grub can be installed to the "Device" only (not partition)
upvoted 2 times
...
MaikyCR28
2 years, 1 month ago
This is a "tricky" question because it's asking about the grub installation and also It refers to the first partition, which all we know it's /dev/sda1, but the main idea of the question is about where the grub will be installed and it's focused on this last. So, starting from this point, grub only can be installed by referring to a device and not to a partition. In fact, on page 78 of the LPIC-1 book, it says: "To install GRUB Legacy on a disk from a running system we will use the grub-install utility. The basic command is grub-install DEVICE where DEVICE is the disk where you wish to install GRUB Legacy. An example would be /dev/sda." In conclusion, the right answer is A.
upvoted 7 times
...
wvdw1962
2 years, 3 months ago
I think the corrext answer is A: The usage is basically very simple. You only need to specify one argument to the program, namely, where to install the boot loader. The argument has to be either a device file (like ‘/dev/hda’). For example, under Linux the following will install GRUB into the MBR of the first IDE disk: # grub-install /dev/sda https://www.gnu.org/software/grub/manual/grub/html_node/Installing-GRUB-using-grub_002dinstall.html
upvoted 2 times
...
Wucrib
3 years, 2 months ago
GRUB is installed to a device not a location so answer is A
upvoted 8 times
...
MashkoorQadir
3 years, 4 months ago
the answer is B it's asking about the first partition of first disk.
upvoted 6 times
...
rjlg2centos8
3 years, 6 months ago
Could you explain better the answer please, thank you.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...