Add data partition

main
sudo pacman -Syu 2021-09-25 12:24:06 +07:00
parent 2c5e6a7eb1
commit bb802d3408
1 changed files with 13 additions and 1 deletions

View File

@ -53,6 +53,7 @@ UEFI/GPT layout:
| `/mnt` | `/dev/root_partition` | Root Partition | | | `/mnt` | `/dev/root_partition` | Root Partition | |
| `/mnt/var` | `/dev/var_partition` | Var Partition | >= 12 GiB | | `/mnt/var` | `/dev/var_partition` | Var Partition | >= 12 GiB |
| `/mnt/home` | `/dev/home_partition` | Home Partition | | | `/mnt/home` | `/dev/home_partition` | Home Partition | |
| `/mnt/data` | `/dev/data_partition` | Data Partition | |
| | `/dev/swap_partition` | Swap | | | | `/dev/swap_partition` | Swap | |
BIOS/GPT layout: BIOS/GPT layout:
@ -63,6 +64,7 @@ BIOS/GPT layout:
| `/mnt` | `/dev/root_partition` | Root Partition | | | `/mnt` | `/dev/root_partition` | Root Partition | |
| `/mnt/var` | `/dev/var_partition` | Var Partition | >= 12 GiB | | `/mnt/var` | `/dev/var_partition` | Var Partition | >= 12 GiB |
| `/mnt/home` | `/dev/home_partition` | Home Partition | | | `/mnt/home` | `/dev/home_partition` | Home Partition | |
| `/mnt/data` | `/dev/data_partition` | Data Partition | |
| | `/dev/swap_partition` | Swap | | | | `/dev/swap_partition` | Swap | |
Format: Format:
@ -86,6 +88,10 @@ mkfs.btrfs -L VAR /dev/var_partition
mkfs.ext4 -L HOME /dev/home_partition mkfs.ext4 -L HOME /dev/home_partition
mkfs.btrfs -L HOME /dev/home_partition mkfs.btrfs -L HOME /dev/home_partition
# home
mkfs.ext4 -L DATA /dev/data_partition
mkfs.btrfs -L DATA /dev/data_partition
# swap # swap
mkswap /dev/swap_partition mkswap /dev/swap_partition
``` ```
@ -118,6 +124,12 @@ mount /dev/home_partition /mnt/home
# btrfs # btrfs
mount -o compress=zstd /dev/home_partition /mnt/home mount -o compress=zstd /dev/home_partition /mnt/home
# data
mkdir /mnt/data
mount /dev/data_partition /mnt/data
# btrfs
mount -o compress=zstd /dev/data_partition /mnt/data
# swap # swap
swapon /dev/swap_partition swapon /dev/swap_partition
``` ```
@ -280,7 +292,7 @@ pacman -Syu gnome-shell \
gnome-control-center gnome-system-monitor \ gnome-control-center gnome-system-monitor \
gnome-terminal gnome-backgrounds gnome-screenshot gnome-keyring \ gnome-terminal gnome-backgrounds gnome-screenshot gnome-keyring \
nautilus xdg-user-dirs-gtk file-roller \ nautilus xdg-user-dirs-gtk file-roller \
evince eog gedit evince eog
# Login manager # Login manager
pacman -Syu gdm pacman -Syu gdm