I need to write a program to format SD card with, FAT boot, ext4 and swap partitions. I would like the ext4 to use LVM. Ideally there would be scope for mdadm.

I need help finding a command line utity which is capable of all this. I will be able to control any command from within my program. Would rather not cut & paste source.

I understand that Gparted does not cope well with LVM.
Any suggestions for a better command?

link|improve this question
Do you tried parted? It is the same as gparted, but in command line – Ielton Dec 24 '11 at 12:15
There are various command-line utilities that achieve each of the steps. Why is it that you require them all in a single one? – Garrett Dec 24 '11 at 17:32
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.