O'Reilly logo

CompTIA® Linux+ / LPIC-1 Cert Guide: (Exams LX0-103 & LX0-104/101-400 & 102-400) by Sean Walberg, Ross Brunson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

GRUB2

GRUB2 is the version of GRUB currently in use. The software was rewritten to allow plugins and expand features available in the menu system. GRUB legacy and GRUB2 are otherwise fairly similar.

Installing GRUB2

The first step to getting GRUB2 installed is to have the tool write itself to the master boot record as follows:

[root@localhost ~]# grub2-install /dev/sdaInstalling for i386-pc platform.Installation finished. No error reported.

This copies the boot sector image to disk and the remaining files to /boot. If your bootable partition is not /boot you can override this default setting, such as /mnt/tmpboot in Example 1-2.

Example 1-2 Installing GRUB2 to an Alternate Location

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required