Trying to decipher my notes from the last time I installed LVM on Luks, I have a note to create three "primary" partitions for a Dual-Boot installation. The trouble is, after I install Windows, but before I install Linux--when I'm setting up the Luks/LVM Linux partition and get to the lvcreate step, I receive the error: Incorrect metadata area header checksum on /dev/sdb3 at offset 4096
. (I keep Windows just for testing purposes and so its not encrypted)
From research I've learned this results from the partition id 83 Linux
that should be 8e LVM
instead. I've confirmed the same with fsisk
output generated from my last successful installation.
I've tried to create an "extended" partition instead of a "primary" partition (in step 3), but this partition is unrecognized by the pvcreate
step. I can't figure out when I made the 8e
change to the parition. My steps are as follows:
4) Create physical volume on Linux partition.
# pvcreate /dev/sda3
5) Create volume group
# vgcreate cryptVG /dev/sda3
6) Gain access to the unmounted root volume.
# lvm vgchange -a y
7.1) Create the encrypted container for the LVM,
# cryptsetup -y -c aes-xts-plain -s 512 luksFormat /dev/sda3
7.2) Open the crypt container for installation,
# cryptsetup luksOpen /dev/sda3 cryptVG
8) # pvcreate /dev/mapper/cryptVG
9) # vgcreate cryptVG /dev/mapper/cryptVG
10) # lvcreate -n root -L 15.5G cryptVG
Step 9 is also giving me a problem. Error says cryptVG was already created, but doesn't the LVM volume need to be set up inside the encrypted steps? (It may have been a later edit to my list of steps when I installed Arch on top of the original Luks crypt I made for Fedora, or not). Help me edit my notes to make the correct partition id by explaining when the extended volume is created in the above steps.