Partition with parted (GPT)

Create a single GPT partition using the full disk

parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%

tool
linux133 commands
tags
linuxdiskpartitions

More linux commands

  • pvs && pvdisplay

    List LVM physical volumes with space usage

  • vgs && vgdisplay

    List LVM volume groups with free PE

  • lvs -o +devices

    List logical volumes with device paths

  • lvextend -L +10G /dev/vg0/lv_data && resize2fs /dev/vg0/lv_data

    Extend LVM logical volume by 10G and grow ext4 filesystem online

  • fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile

    Allocate 2G swap file, set permissions, format and enable

all 133 linux commands