And welcome through to our first demonstration,
a demonstration where we'll be working on our AlmaLinux 8.5 system
where we go through and create some disk files.
Now I know we've seen this before,
but this time we're going to look at partitioning using flags.
So come on, let's see what this is all about.
And hello, and welcome through to our AlmaLinux 8 system.
Let's go through and gain our administrative privileges,
and we can go through and look at the lsblk command,
and when we look at our lsblk command,
we can see we've got a pretty basic system with just the sda drive again.
I've gone through and just restarted from a clean vagrant
system when we started this module.
Okay, well, let's go through and use fallocate.
So we should be pretty good at this now.
So we can go through and specify then the length to be 1 GB,
and we can then go through and call it disk0,
and then we can go through and run our losetup,
and we can go through and specify to find the next available.
We can ask it to show us the disk device that's being
used when we link it through to disk0, but we can see it's loop0.
I was pretty much certain it was going to be that, that's why I called it disk0.
We looked at partitioning before with parted,and we're
going to go and take a look at it again,
but this time we're going to look at setting flags.
Our flags can demonstrate the purpose that the
partition is going to be used for.
It's not required,
but it gives extra documentation and can help when we're
looking again at a recovery situation, or perhaps when reinstalling Linux,
so Linux can detect the type of partitions that are being used.
So, I'm going to go through and use then parted /dev/loop0.
So we know that bit, don't we?
We've got our mkla.
And again, we can keep it very simple,
where we can go through and use our msdos label and mkpart primary.
And we can start then at the beginning of our disk.
Remember, it's going to offset for us in any case,
but we can then go through and specify 0%,
and ending, let's say, at 50%.
We can go through and create our second partition.
So remember, don't forget to remove the labeling information.
We don't want to create our label again.
And we can go through and specify our 50% going through to 100% now.
If I go through and print, when we look at our printed information,
if I clear the screen, move that to the top,
we can see there are flags that we can go through and assign.
We haven't assigned any flags at the moment,
but we can then go through and start setting our flags,
so set for partition 1.
And we can go through and set the lvm flag to be on.
And then we can do the same thing for partition 2.
Now, when we go through and look at printing,
we can see included is the lvm flag.
Now,
if we move this back to the top of the screen and
then run through our print again, we can see then the flags quite clearly.
There are other flags that we can set.
We're just looking at the lvm flag at the moment,
but later on in this module,
we'll also be looking at the RAID flag so we can get an
understanding of some of the flags that can be set.
But for the moment,
let's now return to our slides so we might take a look at our next demonstration where we use LVM.