documentation/docs/void-desktop-setup/installation/provisioning.md

27 lines
845 B
Markdown
Raw Permalink Normal View History

2023-08-25 17:44:30 +02:00
# Provisioning
2023-08-16 23:39:38 +02:00
First off the drive should be partitioned, possibly with `fdisk` or `cfdisk`. It should have atleast two partitions with one `EFI System` Partition and one `Linux filesystem` partition.
2023-08-16 22:09:10 +02:00
It should look something like this:
| Number of partition | Size | Type |
|:-----:|:-----:|:-----: |
| 1 | 1 to 2 GB or more | EFI System |
| 2 | Rest of the drive | Linux filesystem |
Then to create the filesystem of the efi partition.
```
# mkfs.fat -F 32 -n efi /dev/<disk1>
```
And the encrypted filesystem of the root partition.
```
# cryptsetup luksFormat /dev/<disk2> --type luks2 --label luks
# cryptsetup open --type luks /dev/<disk2> root
# mkfs.ext4 -L root /dev/mapper/root
```
2023-08-16 22:27:52 +02:00
Other filesystems can also be used but `ext4` is the standard for most linux distobutions.