Mailing List Archive


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

Re: [tlug] Tip of the Day: "ghosting" a machine with nc and dd



Godwin Stewart wrote:
On Tue, 17 Jul 2007 20:01:36 +0900, tlug@example.com wrote:

Note that the command above runs the fdisk program, which lets you type
in fdisk commands, so it does not give the partition information
immediately. You will get a prompt such as "Command (m for help):" where
you can type "p" to print the partition table (like above) and then "q"
to exit fdisk.

[...]
The "-l" (that's a lowercase "L") option does the same as the "p" command in
the interactive version but just spits the information out and quits
immediately.

If you want to partion the second disk exactly like the source sfdisk makes this slightly easier:



-d Dump the partitions of a device in a format useful as input to
sfdisk. For example,
% sfdisk -d /dev/hda > hda.out
% sfdisk /dev/hda < hda.out


this can of course be combined with a little ssh or nc magic.

kind regards,
-sig

--
Sigurd Urdahl
Linux, goofing, cooking, making fire, computer security, having a
beer. Give me good music.



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links