Partition with parted (GPT) linux
Create a single GPT partition using the full disk
parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%
more linux
all 133 commands →
Show LVM physical volumes
pvs && pvdisplay
Show LVM volume groups
vgs && vgdisplay
Show LVM logical volumes
lvs -o +devices
Extend LV and resize FS
lvextend -L +10G /dev/vg0/lv_data && resize2fs /dev/vg0/lv_data
Create swap file
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile