- In the previous demo,
you have seen how to create MBR partitions.
Now, I'm going to use gdisk,
which is the utility of choice to create GPT partitions,
and I'm using it on sdc, a complete new disk.
Obviously, you need to do this on complete new disks.
So we can see partition table scan
didn't find any partition table,
and it creates new GPT entries in memory.
This time we have question mark for help.
Here are all the available commands,
not nicely categorized as we have seen in fdisk
but really gdisk is very, very similar to fdisk.
It has commands like p for print, and n for new,
and that's what I'm going to use.
And here we can see the different partition number.
I'm selecting my partition number one,
and then first sector, just pressing enter,
last sector, plus two gigabytes.
And then it prompts me for a hexadecimal code.
This hexadecimal code is a low-level identifier.
You need it in specific cases.
We'll talk about it when we talk about LVM
and about swap fail systems.
For now, I'm just pressing enter
to accept the default hexadecimal code.
And p for print,
and if I like it, and I do like it,
I'm going to use w for write.
Then I'm getting a warning,
"This will override existing partitions."
Well, I did not create any partitions.
You want to proceed? Yes, I want to proceed.
And the operation has completed successfully.
lsblk is showing me that on sdc we now have an sdc1.
So at first sight there's not really any difference
between the MBR partition and the GPT partition,
but the difference will occur
at the moment that you go beyond the fourth partition.
GPT allows you to address very big discs,
and that is why on physical hardware
GPT has really become the standard.