From owner-freebsd-questions@freebsd.org Sun Sep 27 01:05:14 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1178EA0A166 for ; Sun, 27 Sep 2015 01:05:14 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D77FF134 for ; Sun, 27 Sep 2015 01:05:13 +0000 (UTC) (envelope-from wam@hiwaay.net) Received: from kabini1.local (dynamic-216-186-213-32.knology.net [216.186.213.32] (may be forged)) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t8R15Cb9005166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sat, 26 Sep 2015 20:05:12 -0500 Subject: Re: dd question To: freebsd-questions@freebsd.org References: <5606A4FF.4090105@hiwaay.net> <56073D71.5060404@sneakertech.com> From: "William A. Mahaffey III" Message-ID: <560740C7.3060102@hiwaay.net> Date: Sat, 26 Sep 2015 20:10:41 -0453.75 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <56073D71.5060404@sneakertech.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Sep 2015 01:05:14 -0000 On 09/26/15 19:57, Quartz wrote: >> Well first off I'd tell dd to use a bigger bs like 1m. > > I'll second this. I think the default for mos *nixs is 512 byte > blocks, which is painfully slow. You need to manually specify bs=1M. > > It's also possibly the stick is just dying, but try the blocksize first. I tried the 'bs=1m' & it sped things up by about 40X (from 90-ish KB/s to 3.4-ish MB/s) :-) .... All is well. As an aside, is there a way to configure the stick's FS to use/report all available space, rather than what the img was sized to, *after* dd-ing the img ? [root@kabini1, /etc, 8:09:41pm] 342 % df Filesystem Type 1024-blocks Used Avail Capacity Mounted on /dev/ada0p3 ufs 20307196 12140912 6541712 65% / devfs devfs 1 1 0 100% /dev /dev/stripe/usr_str ufs 60921596 10477380 45570492 19% /usr /dev/stripe/home_str ufs 3684793728 220043372 3169966860 6% /home procfs procfs 4 4 0 100% /proc tmpfs tmpfs 8388608 32 8388576 0% /tmp linprocfs linprocfs 4 4 0 100% /compat/linux/proc fdescfs fdescfs 1 1 0 100% /dev/fd /dev/da0a ufs 698671 651741 -8963 101% /media/sd [root@kabini1, /etc, 8:09:52pm] 343 % i.e. /media/sd shows about 698 MiB instead of full 4-ish MB it is really sized to .... TIA for any clues :-). -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.