From owner-freebsd-questions@freebsd.org Sat Sep 26 15:19:02 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 18A71A08FB4 for ; Sat, 26 Sep 2015 15:19:02 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wi0-x232.google.com (mail-wi0-x232.google.com [IPv6:2a00:1450:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A88F8DA1 for ; Sat, 26 Sep 2015 15:19:01 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by wicge5 with SMTP id ge5so54461540wic.0 for ; Sat, 26 Sep 2015 08:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AdFqxCC8kEtKC7nwGIwt6PNruAHAmdAdgmqNgTGI9CQ=; b=E9jOS2aViJbmr+erkQU6Jjq1D0In7IerwmhZWWWjVdoiOXN48P5UN/gp8EUxm4PRJ8 Wy3Khj9heceNdn3kRuBgcv5kkgD3gHn/SMy8KaHlP4IPXrlFeEX0krVFKsAOMvDcs1MY UrQ5HH1Mcw0O9Wsn7ZrOOwBr4RmgTRDMmIowjDafyE/NltW4lWhGgKosMQEDgHdpFJRm iayaeEfgvs1fbVS+zW9Zdkb+9ruQQgmNcUNKv+inrwaeSJyg5xCwogIj4GC2OugeTCkb UtJyQcc5/m3IIswAMnKE1nPcHtodV5J3vp3hIE6tXz8xCIFma+CgpetJJXBLA5mUj2tT SWaA== MIME-Version: 1.0 X-Received: by 10.180.107.130 with SMTP id hc2mr8489130wib.92.1443280739908; Sat, 26 Sep 2015 08:18:59 -0700 (PDT) Received: by 10.194.16.231 with HTTP; Sat, 26 Sep 2015 08:18:59 -0700 (PDT) In-Reply-To: <5606A4FF.4090105@hiwaay.net> References: <5606A4FF.4090105@hiwaay.net> Date: Sat, 26 Sep 2015 10:18:59 -0500 Message-ID: Subject: Re: dd question From: Adam Vande More To: "William A. Mahaffey III" Cc: "FreeBSD Questions !!!!" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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: Sat, 26 Sep 2015 15:19:02 -0000 On Sat, Sep 26, 2015 at 8:59 AM, William A. Mahaffey III wrote: > > > I am preparing a USB stick for use to install FreeBSD 9.3R on 2 new boxen > I am bringing online. I already had the FreeBSD 9.3R img dd'ed to that > stick last year when I provisioned this box, but for some reason, when I > plugged the stick into my USB port today to copy some additional files to > it (scripts to be used during installs to partition & slice up HDD's), I > got errors in my syslog file & couldn't mount the drive for the copies. No > problema, I'll just re-dd the image to the device & start over, all I would > lose is output from the previous install (this box, last year this time). > However, I notice the dd is proceeding *VERY* slowly: > > > [root@kabini1, /etc, 8:47:59am] 508 % ll /dev/da0* > crw-r----- 1 root operator 0xd2 Sep 26 08:29 /dev/da0 > crw-r----- 1 root operator 0xcd Sep 26 08:29 /dev/da0a > [root@kabini1, /etc, 8:48:09am] 509 % ll > /net/q6600/home/ISOs/BSDs/FreeBSD/9.3/ > total 1530556 > -rw-r--r-- 1 wam users 178749440 Jul 26 2014 > FreeBSD-9.3-RELEASE-amd64-bootonly.iso > -rw-r--r-- 1 wam users 671152128 Jul 26 2014 > FreeBSD-9.3-RELEASE-amd64-disc1.iso > -rw-r--r-- 1 wam users 717373440 Jul 26 2014 > FreeBSD-9.3-RELEASE-amd64-memstick.img > -rw------- 1 wam users 811 Jul 26 2014 checksum.MD5.txt > [root@kabini1, /etc, 8:48:19am] 510 % dd > if=/net/q6600/home/ISOs/BSDs/FreeBSD/9.3/FreeBSD-9.3-RELEASE-amd64-memstick.img > of=/dev/da0 > 94834+0 records in > 94834+0 records out > 48555008 bytes transferred in 542.035379 secs (89579 bytes/sec) > 101599+0 records in > 101599+0 records out > 52018688 bytes transferred in 580.466607 secs (89615 bytes/sec) > > I got that output by sending the SIGINFO signal to the dd process from > another shell window. > Hitting Ctrl-T in the dd terminal is a lot easier. > My question is: Why so slow (89-ish KB/s) ? > Well first off I'd tell dd to use a bigger bs like 1m. -- Adam