From owner-freebsd-questions Mon Jan 29 7:23:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id BE60F37B6B1 for ; Mon, 29 Jan 2001 07:22:59 -0800 (PST) Received: from [64.110.74.50] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 14NG6x-000Oh7-00; Mon, 29 Jan 2001 18:21:23 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.20 #1) id 14NG8S-0006ED-00; Mon, 29 Jan 2001 18:22:28 +0300 Date: Mon, 29 Jan 2001 18:22:28 +0300 From: Odhiambo Washington To: freebsd-questions@FreeBSD.ORG Cc: matrix@ipform.ru Subject: Re: Message-ID: <20010129182228.E20647@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , freebsd-questions@FreeBSD.ORG, matrix@ipform.ru References: <00b601c08936$1fd584a0$0c00a8c0@ipform.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <00b601c08936$1fd584a0$0c00a8c0@ipform.ru>; from "Artem Koutchine" on Sun, Jan 28, 2001 at 05:25:08PM +0300 X-Operating-System: FreeBSD poeza.iconnect.co.ke 4.2-STABLE FreeBSD 4.2-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Artem Koutchine [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" Artem> To: "Joseph Gao" Artem> Cc: 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