Re: Generic Linux question

Silvio Macedo <[email protected]> Mon, 24 Nov 2003 11:18:01 +0000 (GMT)
Newsgroups gmane.linux.redhat.sparc
Message-ID <[email protected]>
Dear Marc, 

If you want to mirror content, I suggest you format it, and then use rsync 
or a simple cp -a.
If you want to mirror it completely, to the lowest level, and if the 
drives are identical (model, size, make,etc), then you can 
___CAREFUL__ THIS MAY DESTROY ALL YOUR DATA </warning> (on drive hdc at 
least)

dd if=/dev/hda of=/dev/hdc
to mirror everything on hda onto hdc, including boot sector, partition 
table, etc... 

do man dd first just to see what you are playing with.
if you do <DON'T DO> dd if=/dev/zero of=/dev/hda it will trash your disk
for example http://lists.slug.org.au/archives/slug/2002/04/msg00575.html

Other than having to be careful with what you type, dd is rock solid (of 
course) and will do the job better than anything else.

If speed is important, play with bs= option (to match cluster size of the 
disk).

Ah.. and in future use http://www.auroralinux.org/#mailinglists

Regards,
Silvio


On Sun, 23 Nov 2003 [email protected] wrote:

> I'm sorry to post this here, i know this is more of a general linux 
> question, but does anyone know, off the top of their head, what's the 
> quickest way to do a mirror of a hard drive to another drive in the same 
> system? I have a linux box with 2 3.4 gig maxtor drives in it and I want 
> to make a mirror image of the first drive onto the second... the two 
> drives are the same model...
> 
> Can anyone help?
> Thanks again and sorry for posting to the wrong list.
> Marc
> 
> 
> _______________________________________________
> Sparc-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/sparc-list
> 

--
http://www.iis.ee.ic.ac.uk/smacedo
Intelligent and Interactive Systems, Imperial College London

Non est gravis scire omnium responsum - est gravis scire reperir illum.
- and then there was Google