From owner-freebsd-questions@freebsd.org Sun Sep 27 02:23:06 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 1C3F99CFB89 for ; Sun, 27 Sep 2015 02:23:06 +0000 (UTC) (envelope-from milios@ccsys.com) Received: from cargobay.net (cargobay.net [198.178.123.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F12212FF for ; Sun, 27 Sep 2015 02:23:05 +0000 (UTC) (envelope-from milios@ccsys.com) Received: from [192.168.0.4] (cblmdm72-240-160-19.buckeyecom.net [72.240.160.19]) by cargobay.net (Postfix) with ESMTPSA id E0358F61; Sun, 27 Sep 2015 02:16:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: dd question From: "Chad J. Milios" X-Mailer: iPhone Mail (13A344) In-Reply-To: <560740C7.3060102@hiwaay.net> Date: Sat, 26 Sep 2015 22:23:03 -0400 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <5606A4FF.4090105@hiwaay.net> <56073D71.5060404@sneakertech.com> <560740C7.3060102@hiwaay.net> To: "William A. Mahaffey III" 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 02:23:06 -0000 > On Sep 26, 2015, at 9:03 PM, William A. Mahaffey III wrot= e: >=20 > ... > As an aside, is there a way to configure the stick's FS to use/report all a= vailable space, rather than what the img was sized to, *after* dd-ing the im= g ? >=20 >=20 > [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% /u= sr > /dev/stripe/home_str ufs 3684793728 220043372 3169966860 6% /ho= me > procfs procfs 4 4 0 100% /= proc > tmpfs tmpfs 8388608 32 8388576 0% /tm= p > 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 % >=20 >=20 > i.e. /media/sd shows about 698 MiB instead of full 4-ish MB it is really s= ized to .... TIA for any clues :-). >=20 > --=20 >=20 > William A. Mahaffey III >=20 growfs will do the deed for UFS filesystems. Use the -N flag to see what it'= ll do without doing it. It may also be the case that the containing partitio= n must be expanded first using one or more incantations of gpart, bsdlabel a= nd/or fdisk in some particular order. Looks like you'd be using just bsdlabe= l for your case. Note that in the case of UFS certain parameters are chosen at creation time t= hat make growing more than an order of magnitude possibly suboptimal compare= d to a dump/restore. In your case I wouldn't worry about that.=