1 00:00:06,630 --> 00:00:07,650 - In the previous demo, 2 00:00:07,650 --> 00:00:10,620 you have seen how to create MBR partitions. 3 00:00:10,620 --> 00:00:12,570 Now, I'm going to use gdisk, 4 00:00:12,570 --> 00:00:16,710 which is the utility of choice to create GPT partitions, 5 00:00:16,710 --> 00:00:19,470 and I'm using it on sdc, a complete new disk. 6 00:00:19,470 --> 00:00:23,460 Obviously, you need to do this on complete new disks. 7 00:00:23,460 --> 00:00:27,090 So we can see partition table scan 8 00:00:27,090 --> 00:00:28,890 didn't find any partition table, 9 00:00:28,890 --> 00:00:32,340 and it creates new GPT entries in memory. 10 00:00:32,340 --> 00:00:34,800 This time we have question mark for help. 11 00:00:34,800 --> 00:00:37,170 Here are all the available commands, 12 00:00:37,170 --> 00:00:41,370 not nicely categorized as we have seen in fdisk 13 00:00:41,370 --> 00:00:44,463 but really gdisk is very, very similar to fdisk. 14 00:00:45,360 --> 00:00:48,450 It has commands like p for print, and n for new, 15 00:00:48,450 --> 00:00:49,740 and that's what I'm going to use. 16 00:00:49,740 --> 00:00:52,260 And here we can see the different partition number. 17 00:00:52,260 --> 00:00:54,570 I'm selecting my partition number one, 18 00:00:54,570 --> 00:00:57,090 and then first sector, just pressing enter, 19 00:00:57,090 --> 00:00:59,760 last sector, plus two gigabytes. 20 00:00:59,760 --> 00:01:03,660 And then it prompts me for a hexadecimal code. 21 00:01:03,660 --> 00:01:06,540 This hexadecimal code is a low-level identifier. 22 00:01:06,540 --> 00:01:08,370 You need it in specific cases. 23 00:01:08,370 --> 00:01:11,400 We'll talk about it when we talk about LVM 24 00:01:11,400 --> 00:01:13,380 and about swap fail systems. 25 00:01:13,380 --> 00:01:15,150 For now, I'm just pressing enter 26 00:01:15,150 --> 00:01:18,000 to accept the default hexadecimal code. 27 00:01:18,000 --> 00:01:19,290 And p for print, 28 00:01:19,290 --> 00:01:21,930 and if I like it, and I do like it, 29 00:01:21,930 --> 00:01:23,883 I'm going to use w for write. 30 00:01:25,290 --> 00:01:26,407 Then I'm getting a warning, 31 00:01:26,407 --> 00:01:28,620 "This will override existing partitions." 32 00:01:28,620 --> 00:01:31,020 Well, I did not create any partitions. 33 00:01:31,020 --> 00:01:34,590 You want to proceed? Yes, I want to proceed. 34 00:01:34,590 --> 00:01:37,650 And the operation has completed successfully. 35 00:01:37,650 --> 00:01:42,650 lsblk is showing me that on sdc we now have an sdc1. 36 00:01:43,020 --> 00:01:45,270 So at first sight there's not really any difference 37 00:01:45,270 --> 00:01:48,750 between the MBR partition and the GPT partition, 38 00:01:48,750 --> 00:01:50,490 but the difference will occur 39 00:01:50,490 --> 00:01:54,300 at the moment that you go beyond the fourth partition. 40 00:01:54,300 --> 00:01:57,660 GPT allows you to address very big discs, 41 00:01:57,660 --> 00:01:59,820 and that is why on physical hardware 42 00:01:59,820 --> 00:02:02,613 GPT has really become the standard.