December 2018
Beginner
826 pages
22h 54m
English
As I mentioned previously, some people like to first create a partition on their drive before introducing it to the LVM lifestyle.
We'll do that here, but only because I'll end up having a fight with one of my technical authors if I don't.
For an added bit of novelty, we're going to use fdisk without dropping into the command's shell to hammer home the fact that there are several ways of doing the same thing in Linux:
$ printf "g\nn\n\n\n\nt\n31\nw\n" | sudo fdisk /dev/sdc
We also set our partition's system ID to be 31—that is, Linux LVM.
To take it one step further, we're going to apply a partition label to our partition, giving it a friendly name:
$ sudo parted /dev/sdc name 1 "MostlyHarmless"
Read now
Unlock full access