Create a GPT partition with parted
Create a new GPT table and one partition on the whole disk. The old partition table is lost.
parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%
- tool
- linux133 commands
- tags
- linuxdiskpartitions
More linux commands
-
pvs && pvdisplayList LVM physical volumes and how much space they use.
-
vgs && vgdisplayList LVM volume groups with free physical extents (PE).
-
lvs -o +devicesList logical volumes and the devices they live on.
-
lvextend -L +10G /dev/vg0/lv_data && resize2fs /dev/vg0/lv_dataAdd 10G to an LVM logical volume and grow the ext4 filesystem without unmounting it.
-
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfileCreate a 2G swap file, set permissions, format it and turn it on.