[LBo] Mirroring Program

Stefan Waidele St.Waidele at LinuxBasics.org
Wed Mar 7 10:33:33 CET 2007


Hi Robin,

let me say that I did not do much mirroring myself - neither with dd nor 
with other tools. For my purposes, a regular file-by-file copy was 
sufficient.

Robin Byaruhanga schrieb:
> [...]
> 1. can i specify partition to partition.

Yes,
In UNIX/Linux, everything is represented as a file. Thus the "if" 
parameter (Input File) takes regular files as well as device-files. you 
can use something like /dev/hda for the whole drive as well as /dev/hda1 
for the first partition on that drive.

> 2. can i create an image?

Yes.
Simple specify a regular file as output
`dd if=/dev/hda1 of=windows.img`

> 3. can i create the image on a cd/dvd?

Create it on harddisk first, then compress and burn it.

> if i yes how do i do it.

With your cd-writing application of choice. Writing to CD should be no 
problem on current distros.

If you want to do it on the commandline or REALLY want to know how it is 
done on a low level, than the following is for you:
http://linuxbasics.org/LDP/HOWTO/CD-Writing-HOWTO.html

Hope this helps.

Stefan

PS: Be sure to test if your image works correctly before you trash the 
original.


More information about the QnA mailing list