From owner-freebsd-questions Sun Sep 10 15:23: 3 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id D767237B424 for ; Sun, 10 Sep 2000 15:23:00 -0700 (PDT) Received: from mail.hell.gr (ppp2.patr.hellasnet.gr [212.54.197.17]) by mail.hellasnet.gr (8.9.1/8.9.1) with SMTP id BAA08970 for ; Mon, 11 Sep 2000 01:23:38 +0200 (GMT) Received: (qmail 7058 invoked by uid 1001); 10 Sep 2000 22:23:10 -0000 Message-ID: <20000910222310.7057.qmail@localhost.hell.gr> From: "Giorgos Keramidas" Date: Mon, 11 Sep 2000 01:23:10 +0300 To: Emmanuel Gravel Cc: freebsd-questions Subject: Re: ghost prog for FreeBSD? References: <39BAB976.C53CBB30@mediaone.net> <39BAB976.C53CBB30@mediaone.net> <20000910223442.F274@hades.hell.gr> <200009102210.PAA14783@scaup.prod.itd.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <200009102210.PAA14783@scaup.prod.itd.earthlink.net>; from egravel@earthlink.net on Sun, Sep 10, 2000 at 03:08:03PM -0700 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Sep 10, 2000 at 03:08:03PM -0700, Emmanuel Gravel wrote: > At 10:34 PM 9/10/00 +0300, Giorgos Keramidas wrote: > > > >1. Create the slices / labels on the second disk. > >2. Mount them under /mnt. > >3. Use cpio(1) to copy the files from / to /mnt. > >4. Use boot0cfg on the new disk to set up the boot loader on it. > >5. Reboot into the new installation. > > Wouldn't a dd of the whole disk to another, same-sized disk, pretty > much do the same thing though? Something to the order of > > dd if=/dev/wd0 of=/dev/wd1 bs=1024 > > should do the trick, no? Probably yes, but when I moved my FreeBSD 4.1-S installation to the machine at work, I had my /, /var, /home and /usr partitions with different sizes. The disk that I installed BSD at home and configured most of the details in it was 6 Gb, but the destination disk was a 9 Gb disk. I'm almost sure that using dd(1) will also be slower, on a relatively empty partition, since cpio(1) will not copy those areas of the disk that are not used for data. That work is easier and a lot safer to do with newfs anyway :-) - giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message