Last active
February 19, 2021 11:53
-
-
Save Ham5ter/25c691ccbbaeff977b6cfb505e8be449 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create `/boot/` on `/dev/sda` | |
parted /dev/sda mklabel msdos | |
parted -a opt /dev/sda mkpart primary ext4 0% 100% | |
# Create LVM with `/` and `/var/` on `/dev/sdb` | |
pvcreate /dev/sdb | |
vgcreate centos /dev/sdb | |
lvcreate -l 35%FREE -n root centos | |
lvcreate -l 60%FREE -n var centos | |
lvcreate -l 100%FREE -n swap centos | |
mkfs.ext4 /dev/mapper/centos-root | |
mkfs.ext4 /dev/mapper/centos-var | |
mkswap /dev/mapper/centos-swap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment