partitioning in script

Hi,

we like to initialize mo-disks with a script.
Problem is that the partition table on a factory new mo is something
undefined (lots of * shown by fdisk).
We like to do a ‘fdisk /dev/mo add -f1 t77 ALL’, but there seems to be
problem with the mentioned garbage on the disk.
How can we zero the partition table from script?
Option -z of fdisk works only in interactive mode :frowning:
Any ideas or better running programs are appreciated.

Friedhelm Schuetz
H.Kleinknecht & Co. GmbH

Use dd to write 0x0s through the first block of /dev/hd0.
After that you should be able to fdisk, and don’t forget
to write the loader.

Regards
Jason

Friedhelm Schuetz <Friedhelm.Schuetz@kleinknecht.de> wrote:

Hi,

we like to initialize mo-disks with a script.
Problem is that the partition table on a factory new mo is something
undefined (lots of * shown by fdisk).
We like to do a ‘fdisk /dev/mo add -f1 t77 ALL’, but there seems to be
problem with the mentioned garbage on the disk.
How can we zero the partition table from script?
Option -z of fdisk works only in interactive mode > :frowning:
Any ideas or better running programs are appreciated.

Friedhelm Schuetz
H.Kleinknecht & Co. GmbH