Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 18:22:28 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        freebsd-questions@FreeBSD.ORG
Cc:        matrix@ipform.ru
Subject:   Re: 
Message-ID:  <20010129182228.E20647@poeza.iconnect.co.ke>
In-Reply-To: <00b601c08936$1fd584a0$0c00a8c0@ipform.ru>;  from "Artem Koutchine" on Sun, Jan 28, 2001 at 05:25:08PM %2B0300
References:  <XFMail.010128081157.cjsabatier@home.com> <00b601c08936$1fd584a0$0c00a8c0@ipform.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
* Artem Koutchine <matrix@ipform.ru> [20010128 17:27]: writing on the subject 'Re:'
Artem> I wonder why no just try:
Artem> 
Artem> cat /dev/ad0 > /dev/ad1 ?

Would this work with disks of different sizes (of course I am looking at ad1 being larger than ad0)?
And would it write the slices to ad1 as well? ;-)
I'm a bit daft here but it gives me some reason to smile all the way home this evening if life can be 
that easy moving my system to a larger(another) disk. 

Thank you.


Artem> 
Artem> I recall doing this way a mirror copy of FBSD 2.2.8
Artem> back in 1997 :) A Millenium ago :) As I recall it
Artem> worked.
Artem> 
Artem> ----- Original Message -----
Artem> From: "Conrad Sabatier" <cjsabatier@home.com>
Artem> To: "Joseph Gao" <Joseph.Gao@btinternet.com>
Artem> Cc: <freebsd-questions@FreeBSD.ORG>
Artem> Sent: Sunday, January 28, 2001 5:11 PM
Artem> Subject: RE:
Artem> 
Artem> 
Artem> >
Artem> > On 28-Jan-01 Joseph Gao wrote:
Artem> > >
Artem> > > On 27-Jan-01 Joseph Gao wrote:
Artem> > >> Dear Sir/Madame:
Artem> > >> I am in London and am in desperate need for help. I need to be
Artem> able to copy
Artem> > >> the entire contents of an older hard disk onto a newer one
Artem> (including
Artem> > >> non-window operating system). I would be deeply indebted if you
Artem> could
Artem> > >> enlighten me on how to do this, as soon as possible. If it is out
Artem> of your
Artem> > >> capacity, I'm sorry for troubling you and would like to thank you
Artem> for taking
Artem> > >> time to read this.
Artem> > >
Artem> > > man dd
Artem> >
Artem> > I know, the man page can be rather overwhelming.  :-)
Artem> >
Artem> > dd is a very low-level copy program.  I think the name stands for
Artem> "disc
Artem> > duplicator" or "data duplicator" or something like that.  dd will
Artem> copy
Artem> > *everything* from the input device to the output device, at the
Artem> byte/sector
Artem> > level.  The basic syntax is very simple:
Artem> >
Artem> > dd if=device of=device
Artem> >
Artem> > Where "if" is the input and "of" is the output.  Data is copied in
Artem> 512-byte
Artem> > blocks by default, which is perfect for FreeBSD, since this is how
Artem> data is
Artem> > stored at the lowest level.  Also, by default, the copying begins
Artem> with sector
Artem> > zero and ends with the last sector on the input device.  A complete
Artem> copy, in
Artem> > other words.
Artem> >
Artem> > Let's say you want to copy your first master disc to your first
Artem> slave disc (ad0
Artem> > to ad1):
Artem> >
Artem> > dd if=/dev/ad0 of=/dev/ad1
Artem> >
Artem> > You should probably format the output device first, if it hasn't
Artem> been already.
Artem> > Of course, you'll want to be root to do all of this.
Artem> >
Artem> > I'm *assuming* you're trying to do this under FreeBSD (since you did
Artem> post this
Artem> > question in a FreeBSD mailing list).  :-)  Well, this is how we do
Artem> it.  :-)
Artem> >
Artem> > Good luck.  Let us know how it goes.
Artem> >
Artem> > Conrad
Artem> >
Artem> > --
Artem> > Conrad Sabatier
Artem> > cjsabatier@home.com
Artem> >
Artem> >
Artem> >
Artem> > To Unsubscribe: send mail to majordomo@FreeBSD.org
Artem> > with "unsubscribe freebsd-questions" in the body of the message
Artem> >
Artem> 
Artem> 
Artem> 
Artem> To Unsubscribe: send mail to majordomo@FreeBSD.org
Artem> with "unsubscribe freebsd-questions" in the body of the message

-Wash

--
Odhiambo Washington Inter-Connect Ltd.,
wash@iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KE.

Nobody gets out of the Bermuda Triangle. Not even for lunch. 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010129182228.E20647>