Bootloader Phase: GRUB2 Bootloader
Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or
Already have an account? Sign In »

Video Transcription
00:00
>> Hello Cybrarians.
00:00
>> Welcome back to the Linux+ course here at Cybrary,
00:00
>> I'm your instructor, Rob Goelz.
00:00
In today's lesson, we'll be learning
00:00
about the GRUB2 Bootloader.
00:00
Upon completion of this lesson you'll be able
00:00
to explain how the GRUB2 bootloader works.
00:00
Now, GRUB2 is a grand unified bootloader version
00:00
2, catchy name.
00:00
It is the replacement for GRUB.
00:00
Any version that is newer than 1.98 is GRUB2.
00:00
You can find out what version of GRUB you're
00:00
using by running one of the following commands.
00:00
You can see on the right-hand side here we
00:00
have Ubuntu prompt and a CentOS prompt.
00:00
You can run grub dash install space dash capital V
00:00
on Ubuntu and it will return
00:00
the result as to what
00:00
version of GRUB that you're running.
00:00
But if you're on CentOS,
00:00
you use GRUB2 dash install space dash V.
00:00
This will be one of the most fun things
00:00
that you have to deal with when you work with Linux.
00:00
How do you find out what version of GRUB you're running?
00:00
It depends.
00:00
Get used to these two words,
00:00
it depends, you're going to hear them a lot.
00:00
But you can use one of
00:00
these two commands to determine what version
00:00
of GRUB you're running depending
00:00
upon what distribution you're using,
00:00
whether you're using Ubuntu or
00:00
CentOS or some other Linux distribution.
00:00
In our case, we can see that both of these are
00:00
running 2.04 or 2.03,
00:00
that's higher, 1.98,
00:00
so we're running GRUB2.
00:00
Now, GRUB2's menu is a
00:00
little bit different to configure.
00:00
There are actually two places that
00:00
GRUB2's menu is configured.
00:00
The first one is SE default GRUB,
00:00
which controls configuration variables
00:00
, so GRUB time out.
00:00
How long does that mean you stand for,
00:00
five seconds in this case.
00:00
We can also display things about
00:00
the command line that you see on the Linux system,
00:00
whether or not you can recover grub.
00:00
Then you also get into the GRUG directory.
00:00
That's where you can build customization around
00:00
that GRUB menu and there are scripts in there
00:00
that are used to build the GRUB menu by default.
00:00
Now, if you wanted to change
00:00
GRUB2 what you would do is you can
00:00
edit SE default GRUB
00:00
and you can make the modifications in there.
00:00
You can also create a custom script,
00:00
as I discussed previously in that /etc/grub.
00:00
d directory.
00:00
But once you make changes to GRUB2,
00:00
it'll get you to save them and everything is hunky-dory.
00:00
You have to go and execute
00:00
a command and that command is called GRUB2-mkconfig.
00:00
Once that's run, the changes get picked
00:00
up and when you get rebooting,
00:00
again, you'll see those changes in the next boot cycle.
00:00
We will go deeper into these files in the next lesson.
00:00
Now, just like we saw with GRUB,
00:00
GRUB2 has an interactive boot.
00:00
When you get to that splash and hit
00:00
Escape and get in and modify
00:00
things as need be and you can see
00:00
all those lovely commands that I've noted there.
00:00
Go ahead and feel free to pause and read through those,
00:00
but we can go ahead and move on and get moving forward.
00:00
In today's lesson, we covered the GRUB2 bootloader.
00:00
Thank you for being here and I look
00:00
forward to seeing you in the next lesson.
Up Next
Instructed By
Similar Content