You are not logged in.

#1 2016-07-19 11:58:42

brgreen
Member
Registered: 2016-06-22
Posts: 2

Installation - Partitioning for LUKS on LVM

Hi everyone,

Apologies in advance as I'm sure this is a silly question, but I can't for the life of me find the answer.

Installing Arch on an UEFI system, with a boot partition and the rest of the disk LVM on LUKS.

Following the Beginner's Guide and other Wiki pages, using parted :

parted /dev/sda
(parted) mklabel gpt
(parted) mkpart ESP fat32 1MiB 513MiB
(parted) set 1 boot on
...

Then - "Create a partition of type 8E00, which will later contain the encrypted container."

What exactly is the command for this with parted?

(parted) mkpart ???? 513MiB 100%
(parted) set 2 lvm on ???

Thanks in advance.

Offline

#2 2016-07-19 12:17:14

frostschutz
Member
Registered: 2013-11-15
Posts: 1,409

Re: Installation - Partitioning for LUKS on LVM

you might also need 'set 1 esp on'.

set 2 lvm on is fine. (the partition type for encrypted containers, doesn't really matter, as long as windows won't format it anything goes)

the first word after mkpart is just a label name, you can use whatever you want... esp or boot is fine for the first one, the second one you can just call luks or whatever.

if 100% doesn't work, try -1 or just use 'unit mib', 'print free' to see what's available

Offline

#3 2016-07-19 14:17:33

drdru
Member
Registered: 2016-07-19
Posts: 4

Re: Installation - Partitioning for LUKS on LVM

Hi.
sorry for my english ))

I'm comfortable doing disk partitioning with fdisk  .

fdisk /dev/sda

press m for help

press d for delete partitions (several times if you have multiple partitions)
press g for create a new empty GPT partition table
next press l for to see a list of known partition types (you need 1 for a EFI boot and 31 for Linux LVM)

press  n for adding a new partitions (Field beginning of the chapter you left empty, the end of the section typing + 512M to make partition size is 512 MB)

press t if you forgot to change the partition type

and press w for save changes

Last edited by drdru (2016-07-19 14:19:30)

Offline

#4 2016-07-19 14:26:27

drdru
Member
Registered: 2016-07-19
Posts: 4

Re: Installation - Partitioning for LUKS on LVM

I have installed the system a few days ago, but I chose LUKS on LVM
If you have questions - ask wink

Last edited by drdru (2016-07-19 14:26:58)

Offline

Board footer

Powered by FluxBB