From owner-freebsd-questions Mon Feb 14 17: 7:33 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rivendell.mel.vet.com.au (rivendell.mel.vet.com.au [203.103.154.61]) by builder.freebsd.org (Postfix) with ESMTP id C3C925096 for ; Mon, 14 Feb 2000 17:05:24 -0800 (PST) Received: (from lodea@localhost) by rivendell.mel.vet.com.au (8.9.3/8.9.3) id MAA44385; Tue, 15 Feb 2000 12:05:00 +1100 (EST) Date: Tue, 15 Feb 2000 12:05:00 +1100 From: "Lachlan O'Dea" To: Erik Wenzel Cc: freebsd-questions@FreeBSD.ORG Subject: Re: why is cp so slow? Message-ID: <20000215120459.A44286@vet.com.au> Mail-Followup-To: Erik Wenzel , freebsd-questions@FreeBSD.ORG References: <20000214125652.A25174@todo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.3i In-Reply-To: <20000214125652.A25174@todo.de>; from erik@todo.de on Mon, Feb 14, 2000 at 12:56:52PM +0100 X-Operating-System: FreeBSD 3.3-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Feb 14, 2000 at 12:56:52PM +0100, Erik Wenzel wrote: > Hi All, > > why is moving /usr/ports to another Partition taking over 1/2 hour? > That's only 4MB. I am using freebsd-stable-2.2.7. It's because there are so many directories and small files in that 4 Mb. I don't think 2.2 has softupdates, so that won't help. I often use cpio(1) for this kind of thing, which generally is faster than cp: $ cd /usr/ports $ find . -depth -print0 | cpio -0pvd /new/directory I believe you can achieve a similar effect with tar as well. -- Lachlan O'Dea Computer Associates Pty Ltd Webmaster Vet - Anti-Virus Software http://www.vet.com.au/ "You have controlled your fear... now release your anger." - Darth Vader To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message