From owner-freebsd-questions@freebsd.org Sun Sep 27 13:00:00 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 D64159CFE42 for ; Sun, 27 Sep 2015 13:00:00 +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 A6032B88 for ; Sun, 27 Sep 2015 13:00:00 +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 t8RCxv6M008924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 27 Sep 2015 07:59:58 -0500 Subject: Re: dd question References: <5606A4FF.4090105@hiwaay.net> <56073915.6030707@hiwaay.net> <20150927131036.c6b2d9ce.freebsd@edvax.de> Cc: FreeBSD Questions !!!! From: "William A. Mahaffey III" Message-ID: <5607E84D.1050803@hiwaay.net> Date: Sun, 27 Sep 2015 08:05:27 -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: 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 13:00:01 -0000 On 09/27/15 06:52, Warren Block wrote: > On Sun, 27 Sep 2015, Polytropon wrote: > >> On Sat, 26 Sep 2015 19:37:51 -0453.75, William A. Mahaffey III wrote: >>> Update: I tried the dd again w/ 'bs=1m' & it worked much faster: >> >> It's a more "native" block size suited for the devices in question. >> 512 blocks aren't much common anymore. > > It's not really about the native block size of the device, but the > overhead. Copying 1M with the default blocksize takes 2,048 > transactions. Setting bs=1M does it in only one. It works the same > with spinning disks, although the buffer does not need to be as large. > Usually 64K or 128K is enough there. > > Incidently, the Handbook installation chapter does show the right way > to install image files. > *Booooyah* !!!! That is almost exactly what I did, minus the 'conv=sync', & it worked AOK. I noticed that the dd-ed image had no slices: [root@kabini1, /etc, 8:02:02am] 566 % fdisk /dev/da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=471 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=471 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 0, size 50000 (24 Meg), flag 80 (active) beg: cyl 0/ head 0/ sector 1; end: cyl 1023/ head 254/ sector 63 [root@kabini1, /etc, 8:02:06am] 567 % bsdlabel da0 # /dev/da0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1401120 0 4.2BSD 0 0 0 c: 1401120 0 unused 0 0 # "raw" part, don't edit [root@kabini1, /etc, 8:02:08am] 568 % i.e. no da0s1, is that necessary to use the drive for install ? I also noticed that when I manually mount the drive, it reports a size much smaller than the whole drive: [root@kabini1, /etc, 8:03:48am] 569 % df Filesystem Type 1024-blocks Used Avail Capacity Mounted on /dev/ada0p3 ufs 20307196 12141044 6541580 65% / devfs devfs 1 1 0 100% /dev /dev/stripe/usr_str ufs 60921596 10477380 45570492 19% /usr /dev/stripe/home_str ufs 3684793728 220044180 3169966052 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:03:49am] 569 % I.e. 698-ish MiB on a 4-ish GB (3.6-ish GiB) drive. Can I fix that in place ? I would like the rest of the drive space to possibly log details of the install in case of questions. Thanks & TIA & have a nice weekend. -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.