Andrew McGill wrote: > A longstanding nit with fdisk is that you cannot tell it what you want it to > do all at once, but have to talk to it interactively. This patch allows you > to say things like > d 2 > to delete partition 2, and > c p 3 '' +1G > to create a primary partition, number 3, starting at default position, 1Gb > big. A particular annoyance that it fixes is that to delete the first > partition, you can now use "d 1". > > I'm fairly confident that my mail client will mangle this message beyond > usefulness -- and any guidance / flames as to how I should send the patch > (and corrections) would be appreciated. I've used fdisk in scripts like: echo "\ d 2 c p 3 '' +1G" | fdisk Does that not suffice? I'd be wary about putting non standard option stuff on the command line. cheers, Pádraig. -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html