From owner-freebsd-questions@FreeBSD.ORG Fri Dec 9 06:21:27 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A05D8106564A; Fri, 9 Dec 2011 06:21:27 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 5E5E38FC12; Fri, 9 Dec 2011 06:21:27 +0000 (UTC) Received: from [93.104.92.80] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1RYtpl-0004kj-BV; Fri, 09 Dec 2011 07:21:25 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id pB96LNn5048138; Fri, 9 Dec 2011 07:21:23 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id pB96LLKn048136; Fri, 9 Dec 2011 07:21:21 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 9 Dec 2011 07:21:21 +0100 From: Matthias Apitz To: Dan Nelson Message-ID: <20111209062121.GA39981@tinyCurrent> References: <20111208063711.GA6482@tinyCurrent> <20111208155713.GC53453@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20111208155713.GC53453@dan.emsphone.com> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Originating-IP: 93.104.92.80 Cc: freebsd-questions@freebsd.org, freebsd-usb@freebsd.org Subject: Re: restore(8) to UFS on USB key: terrible slow X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Dec 2011 06:21:27 -0000 El día Thursday, December 08, 2011 a las 09:57:13AM -0600, Dan Nelson escribió: > Cheap USB thumb drives aren't really optimized for small random-I/O writes. > Can you try mounting the filesystem async? that might help a little. A > workaround would be to use mdconfig to create a block device (backed by > either swap or a file on your hard drive) the same size as your flash drive, > newfs and restore to that, then umount the filesystem and dd the raw image > directly to your flash drive. Hello Dan, Thanks for your hints. I tend to add that those USB thum drives aren't good for anything. I have a certain number of them containing each a complete bootable FreeBSD (including 'src', 'obj' and binary packages) to install my laptops and netbooks from them; after some time these USB keys tend to loose data: files are corrupt a bit, dirs are missing and so on; that's why I wanted to make dump(8) nackups of them, to restore them from time to time; I will drop the idea and will just make dd(1) backups of the full /dev/da0; thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5