Improved naming in LVM

This commit is contained in:
tastatur 2023-10-29 19:58:18 +01:00
parent 0b10821c88
commit eacab879ee
2 changed files with 8 additions and 8 deletions

View file

@ -3,7 +3,7 @@
To install the Void Linux distribution on the system, the encrypted partition and the efi partition have to be mounted to the main system. To install the Void Linux distribution on the system, the encrypted partition and the efi partition have to be mounted to the main system.
``` ```
# mount /dev/mapper/lv0-root /mnt # mount /dev/void/root /mnt
# mkdir /mnt/boot # mkdir /mnt/boot
# mount /dev/disk/by-label/efi /mnt/boot # mount /dev/disk/by-label/efi /mnt/boot
# for dir in dev proc sys run; do # for dir in dev proc sys run; do
@ -113,7 +113,7 @@ The `uuid` is needed again and can be obtained by:
Now edit `/boot/loader/void-options.conf` and insert: Now edit `/boot/loader/void-options.conf` and insert:
``` ```
rw rd.luks.name=<uuid>=root root=/dev/disk/by-label/root quiet splash apparmor=1 security=apparmor loglevel=1 rd.shell=0 rd.emergency=reboot rd.lvm.vg=lv0 rw rd.luks.name=<uuid>=root root=/dev/disk/by-label/root quiet splash apparmor=1 security=apparmor loglevel=1 rd.shell=0 rd.emergency=reboot rd.lvm.vg=vg0
``` ```
To obtain a boot menu. A timeout may be added to `/boot/loader/loader.conf`. To obtain a boot menu. A timeout may be added to `/boot/loader/loader.conf`.

View file

@ -19,27 +19,27 @@ And the encrypted filesystem of the root partition.
``` ```
# cryptsetup luksFormat /dev/<disk2> --type luks2 --label luks # cryptsetup luksFormat /dev/<disk2> --type luks2 --label luks
# cryptsetup open --type luks /dev/<disk2> lv0 # cryptsetup open --type luks /dev/<disk2> vg0
``` ```
Now to create a new LVM volume group: Now to create a new LVM volume group:
``` ```
# vgcreate lv0 /dev/mapper/lv0 # vgcreate void /dev/mapper/vg0
``` ```
To create partitions inside the volume group: To create partitions inside the volume group:
``` ```
# lvcreate --name root -L 64G lv0 # lvcreate --name root -L 64G void
# lvcreate --name home -l 100%FREE lv0 # lvcreate --name home -l 100%FREE void
``` ```
To create the filesystems on the logical partitions: To create the filesystems on the logical partitions:
``` ```
# mkfs.ext4 -L root /dev/mapper/lv0-root # mkfs.ext4 -L root /dev/void/root
# mkfs.ext4 -L home /dev/mapper/lv0-home # mkfs.ext4 -L home /dev/void/home
``` ```
Other filesystems can also be used but `ext4` is the standard for most linux distrobutions. Other sizes for the partitions can also be used depending on the needs of the user. Other filesystems can also be used but `ext4` is the standard for most linux distrobutions. Other sizes for the partitions can also be used depending on the needs of the user.