To create a swap partition, I can do something like parted --script -- /dev/sda unit s mkpart primary linux-swap 2050048 6146047 but to create an LVM partition, the analogous parted --script -- /dev/sda unit s mkpart primary lvm 6146048 -1 doesn't work. I need to create the partition as ext2 and then to manually change the partition type by parted --script /dev/sda set 3 lvm on This is absolutely counter-intuitive. Greetings Marc