diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-08-01 17:28:43 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-08-01 17:28:43 +0900 |
| commit | ae0649dc63ddd3f6819bac65f15d20d2b259a7f3 (patch) | |
| tree | 710d6dca433c2a67a0abf1a4e62d9222e2a190dd /static/artix-install.md | |
| parent | 6bbabcc042cf1f4dc88afeb03693944ca9abd89e (diff) | |
Init
Diffstat (limited to 'static/artix-install.md')
| -rw-r--r-- | static/artix-install.md | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/static/artix-install.md b/static/artix-install.md index f28ea4e..7218fa6 100644 --- a/static/artix-install.md +++ b/static/artix-install.md @@ -16,8 +16,9 @@ ls /sys/firmware/efi/efivars # partition lsblk fdisk /dev/sdX -# mkfs.ext4 /dev/sdX1 -# mkfs.exfat /dev/sdX1 +# create 2 partition (boot, root) or 3 partition (efi, boot, root) +# or add a swap partition for each case + dd if=/dev/urandom of=/dev/sdX2 bs=1M status=progress cryptsetup luksFormat /dev/sdX2 cryptsetup open /dev/sdX2 luks @@ -25,7 +26,10 @@ cryptsetup open /dev/sdX2 luks # lvm: with volumes pvcreate /dev/mapper/luks vgcreate vg /dev/mapper/luks -lvcreate -L 30GB vg -n root + +# Create a volume for your swap space. A good size for this is your RAM size + 2GB. +lvcreate -L 30G vg -n root +lvcreate -L 18G vg -n swap lvcreate -l 100%FREE vg -n home # lvm: check volume @@ -40,6 +44,15 @@ vgchange -ay # lvm: file system mkfs.btrfs /dev/vg/root mkfs.btrfs /dev/vg/home +mkswap /dev/vg/swap + +# file system +# mkfs.btrfs /dev/sdX1 +# mkfs.ext4 /dev/sdX1 +# mkfs.exfat /dev/sdX1 +# mkswap /dev/sdX1 + +# mount mount /dev/vg/root /mnt mkdir /mnt/home mount /dev/vg/home /mnt/home |
