[ltp] backup/restore
Sach Jobb
linux-thinkpad@www.bm-soft.com
Fri, 12 Nov 1999 11:09:07 -0800 (PST)
Yeah i think you need an option like bs=512 or bs=1024. But for identical
disks, i've had a much easier time just using cat. Obviously you want to
be careful with dd and cat as you can accedental blow away the same disc
you are trying to duplicate.
thanks,
sach
On Fri, 12 Nov 1999, Campo Weijerman wrote:
> 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
>
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html