use sfdisk and script it.

e.g.:

sfdisk << EOP
/dev/sda1 : start=       63, size=   208782, Id=83, bootable
/dev/sda2 : start=   208845, size=  3341520, Id=83
/dev/sda3 : start=  3550365, size=   642600, Id=82
/dev/sda4 : start=        0, size=        0, Id= 0
EOP

extra care when testing. :)

hth

amir


On 6/13/07, ralph bacolod <[EMAIL PROTECTED]> wrote:

On Tue, Jun 12, 2007 at 05:18:29PM -0700, mac.borje borje wrote:
>    any body there that can give me some pionters on how to partition a
hard
>    drive on a single command line*.. I mean that you will not go to the
>    process when you type *fdisk /dev/sda* that in a single command line
I can
>    delete all exisiting  partition and  then another command that will
create
>    as primary and swap partition.

>    ~mac

I don't think you can use fdisk in non-interactive move besides listing
the partition..



--
--
Ralph Bacolod,RMT,MT
http://rbacolod.blogspot.com

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to