all right. Hello and welcome to module 102 dot to we talk a little bit about
now, historically, the grub
a grand unified boot loader
was links, uh, was legs default boot loader
grub to came along a little bit later and was a replacement with some nice new features.
So we'll talk about both these a little bit
and see some of their configuration steps.
And we'll also review some of the comedians that are needed in order to make changes to the loader configuration so that you can have multiple kernels to choose from and do some other customers Asians.
And when you're booting Olynyk system, you might want to specify alternate boot locations.
You can do this by creating a bootable image on the thumb drive.
So using the D D command, as we see here,
you can actually transfer the ice so image to a thumb drive and then boot from that once the system is reset.
We have a portable method of building new systems out on the floor and that kind of thing,
but it's also nice because you can have alternate
boot images that you wanted to select from when you're
doing different kinds of trouble shooting and so on.
Once I've got more than one colonel configured, I can then
choose them from the grub menu, and we'll see a little bit more details on how that set up here shortly.
But this again is another nice feature. If I build a new colonel
that I want to test some settings, for instance, I can configure grub to have that available to me as an alternate choice when I boot.
This way, if the new colonel doesn't work, I can always revert to the previous one and get back to a operable system.
Now you should know a little bit about legacy grub
and grub, too, of course.
But what is the boot loader actually do
in politic sense for grub and grub to what happens is the boot loader is in two pieces. First, we, uh, the BIOS loads. The first stage,
which we can see here, is a very small amount of data, only 512 bytes.
But that's enough information to get the second stage loaded, which actually
loads the Colonel and begins to a low. The operating system into memory.
uh, boot loader is installed,
it coordinates all of these actions for the two different stages and begins the process of trying to get the root file system mounted.
Now, as you'll see on the right side here, we have several different choices for boot loaders
for the purposes of the exam grub grub to are the main ones that you should be aware of.
But there's also the legacy of bloat er of Lilo.
There's even a lie low, which is for ah, you fi systems. Slightly different hardware characteristics
are available there,
and then system commander insist Lennox, and there's probably a handful of others that that might also exist. But there is some of the main ones that you would expect to encounter
now, if we look at some of the steps
for configuring grub
now, grub is no longer support it. Uh, you can't even get the files from repositories. There might be some websites that still have a legacy repositories,
so you should know a couple of details
about installing this,
and we see the basic steps here so
you can investigate this slash Boots last grab menu
and that will show you some of the configuration options if you had rub installed
or ah, underneath slash boot grub. We have the grub dot com file
and you'll see that there's a lot of similarity with
the previous version of grub in the new version as faras follow naming and so on.
And then we can simply just run the grub, install command
for the drive in question.
Uh, typically Dev sda scuzzy disc A.
So because this is no wonder supported, there's probably not much need for
using grow many longer, since grub to is the better replacement has been redesigned,
the install an update process is very similar.
In this case, the configuration file is boot group to grub duck and fig,
and the first partition number changes from 0 to 1
minor minor differences. Really,
select for multiple Colonel's using grew up, too, just like you can with regular grub
and the convict files can be I didn't manually,
and then we can see how that
how some changes we would make there could be exported to new config file so that you can reboot and
see those changes in the fact for your system.
Now grab Legacy has some
coming options for how you want the menu to look how you want to operate.
For instance, you can specify a title for different kernels that you've configured. This could be handy.
Instead of trying to scrutinize some small difference in a configuration of the colonel,
you know the numeric portion of the name.
Why not give it a label or title to make it easier to figure out which one it is that you want to select? It could also pick your own customized image during during the boot process.
You could even set a password to protect the grub. Man, you protect the booting process.
That's pretty good if you want to tighten security,
Uh, and you and you probably can find some procedures to do that,
you're more interesting the security aspect of
controlling your system.
But as we saw in the previous screen, the install commands very simple, straightforward,
and then we can just run the grub, make config command, as we see here
to generate the new CONFIG file,
and one second Vic Falls is created. We can go look at it and see what changes
by focusing for a moment more on grub, too.
We're going to go to the process of looking at the convict file here and updating the configuration with some some changes that are possible and then
look at the evidence of that update.
So go ahead and switch.
So first, let's look at our
and what we can see here. I've actually added a few lines just to show some of the options that you might wantto modify one of the things that people like to change. Typically as the time out,
five seconds is a little bit short,
so I'm gonna change that to 10 seconds.
Now the group default is the colonel.
That's the last saved version. That's what specified right now. When you see that
default is equal to saved,
that's typically what you want. But I could also a sign, uh,
in America value like zero through five or whatever it is
by specifying a number here. So grab default equals zero up. Defaulting was one and so on
mind. My third option is to actually use a label like New Colonel or,
you know, when you're when you're making colonel changes as I mentioned a few minutes ago. It's always a good idea to
label it or make some other kind of notations. You know, this is the new colonel, and then you can easily revert to the previous one, have needed for some reason.
And then we have the actual command line that's used were in the system boots.
So it tells our system to automatically save Colonel crash information
where my logical value manager details are also the fact that I want my system to be booting and quiet moment, which means on Lee show me critical colonel related messages.
Souls. Convict changes are pretty pretty basic, uh, things that you can do
gonna save that fall
And now, once, Once I've edited the config file,
I want to verify a couple things before I build a new colonel. One is two.
I want to look at my
I'm sorry I'm not the config file, but the device map.
And when I'm sure that it points to the correct disc cells, we can see here.
configure at what was already configured. But I'm just verifying That's configured for Dev Scuzzy disc A. That's what I want.
Now I can run the install command
and finished with no error. So that's good.
And lastly, I can update my convict fall. So now I run grub to make config
supposed to find the output.
So now my my conflict files updated. You can see all the details of that new current line just generated,
and start the new grub conflict that I just generated.
Now, I didn't change anything important, but, you know, adding 10 are changing the menu 10 seconds. Maybe making some other kernels available with label might be something really useful.
I can see that that file has just been updated
So very easy to want to deal with.
once we're done with that, we may want to also think a little bit about how the boot loader interaction works. And it will demonstrate this here in a moment since I've changed the menu, I want to be able to reboot and see those changes.
But once I'm in that man, you have got my 10 seconds to interact with screen I can use my arrow keys or I can click a name if it's a virtual machine
and the Iraqis like to go up and down and select the colonel that you want to work with
or I can use eat out of the configuration if I need to make some changes. There's some things you don't want to do there for recovery purposes, for instance,
and I can get into the command prompt.
So let's go ahead and see what that looks like.
I shall do this differently than I do in a Net six.
It's an alternate way to reboot.
Good to know that all the different options
All right, so now this you'll notice that the counter You might have seen it very quickly, but at the bottom of that menu, you should have seen the counter. It started on a 10 seconds and started counting backwards down to zero.
So this is the latest colleges created. I still have a rescue colonel here,
and you notice that I can
This particular line
and it's a very simple editor of kind of like note pad you just move your cursor around with your arrow keys
make your appropriate changes.
So I see some insert kernel module commands here.
There's also the line that shows the actual colonel being loaded. So there's
that makes 16 and all the different parameters specifying where route lives
or the crash colonel settings are, and so on.
Now. I could escape to discard my edits, so don't want to save anything there.
I could also had seating in my command prompt
and escape. Get you back out of
I want another group shell. I've got a lot of different options here.
I just talked. Helped Thio see what some of the commands are that are available to me.
It's quite a few options there,
and I can do this for a single command. If I want Thio,
see how it actually operates Aiken boot operating system from different images that I might have available.
other options to think about here, like
making changes to my time and date in case that I'm in the motor ride. That's the most important way for me to do this in the safe way to do this
different colonel settings different characteristics that I want to
But just knowing how to get into the shell is the main thing as faras
doing with the colonel for the exam purposes.
Now, to get out of this menu, I can just escape.
I can also get a I can also just hit enter here and go ahead and boot from that colonel.
So it's important to play around the settings. There's a little bit of customization as we saw
and know how to use the
It is the Legacy Command to install the Colonel
stall group crab rather or to install grub too.
So we saw making fig install command
and also verified that we can write those changes to an output file convict file reboot, and then see that they're actually effective.
All right, so that gets us to the end of the boom Andrew section. I'll see you in the next module.
102.3. What? We talk about sharing libraries.