So here's the lab solution, starting with sudo lsblk where we
can see NVMe 0n1. That's what I'm going to use.
So sudo fdisk on dev NVMe0N1 and that
allows me to create the new partition.
Now what do we see here? We see something weird, and that is that fdisk is creating
a new DOS MBR disk label that is in fact very old. And in order to fix
that, I need to set the GPT partition label. That's what we can see right here.
Create new label G for GPT. So I'm typing G for GPT.
You don't want an MBR partition disk label because then you can create four primary
partitions only. That's the old school way of doing it. I'd say don't do it.
So now I'm going to use N for new partition number one, and I need to have
it for a size of one gibibyte. So plus one uppercase g is to create one gigabyte.
Oh, no, I'm not reading carefully. We're still at the prompt for the first sector.
I'm pressing enter for the first sector and then I'm pressing 1G to
specify the size, using W to write and next sudo mkfs dot use
step completion if you want to see all the mkfs that are available.
I'm going to use mkfs ext4 on devnvme0n1p1
that is creating the ext4 file system.
And now I'm going to mount it.
Mount dev nvme0n1p1mnt as a temporary mount.
And of course we need sudo in order to do that. So now it is
mounted, and lsblk is showing that it's actually currently mounted. And that's all that we
were asked for in this lab. So let's continue with the next lesson.