[plug] Linux Ghost alternative?

Matt Kemner zombie at wasp.net.au
Thu Apr 13 12:15:10 WST 2000


On Thu, 13 Apr 2000, David Griffiths wrote:

> It would be pretty straight forward to write an expect script talking to
> fdisk I imagine for the partitioning bit (sizing, marking bootable and
> partition type). trouble is expect with tcl is big - would need to get to
> it via NFS or something.

A recent Linux-Kernel list post mentioned you can use sfdisk to save/read
partition info to/from a file with the commands:

        % sfdisk -d /dev/hda > hda.pt
        % sfdisk /dev/hdb < hda.pt

No need for expect that way.

 - Matt




More information about the plug mailing list