[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: command line (batch) partition util



Hi,
  fdisk is scriptable. It's not pretty, but it works:

Bash: echo $'n\np\n1\n' | fdisk

this echos
n
p
1
and pipes it into fdisk, which executes the commands just as if you
would have typed them on the prompt yourself.

mfg
-- 
Andreas Sliwka - Proud Member of the INEMP Society
System Analyst
UUNET Deutschland GmbH
Tel: +49-231-972-1376
Fax: +49-231-972-2010

Ordnung nennen wir den Teil des Chaos, in dem wir aus Gewöhnung Sinn zu
erkennen glauben.

Order is called that part of chaos, for which indurement lets us believe
that we could find sense in it.






Reply to: