Edit partitions interactively
Open an interactive editor for MBR or GPT partition tables.
fdisk /dev/sdb
- tool
- linux133 commands
- tags
- linuxdiskpartitions
More linux commands
-
parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%Create a new GPT table and one partition on the whole disk. The old partition table is lost.
-
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.