[ltp] backup/restore

Campo Weijerman linux-thinkpad@www.bm-soft.com
Fri, 12 Nov 1999 15:20:01 +0100


eduardo wrote:
> 
> Thank you James.
> 
>  But it didn't work.
> 
> "James M. Corey" wrote:
> >
> > What about
> > dd if=/dev/hda of=/dev/hdb
> > ??  (I haven't ever needed to do this)

Hmm, I *think* you should be able to clone a disk using dd, at least -- it works 
for floppies. But I'm pretty sure you would need to specify a block size and a 
count. There are a couple of other considerations, such as, both disks need to 
be of exactly the same size. Even if hdb > hda, you'll end up with an incorrect
partition table.

You certainly cannot do this if either disk is in use. In practice you'd need to 
boot from a floppy.

I have successfully migrated linux systems with a program called Norton Ghost
which runs on DOS.

Another option is to make a tarball of the entire fs (starting from /), but that 
creates a copy of the contents of the filesystem, not the filesystem structure 
itself, nor the boot block and the partition table.

Re. the solution with the cat command, I don't expect this to work: a disk is a
block device, cat works on streams. Has anyone ever used this successfully???
-- 
Campo Weijerman <campo@raleigh.ibm.com>
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html