From owner-freebsd-questions@FreeBSD.ORG Sat Jun 20 19:40:50 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05E86198 for ; Sat, 20 Jun 2015 19:40:50 +0000 (UTC) (envelope-from herbert@oslo.ath.cx) Received: from oslo.ath.cx (oslo.ath.cx [IPv6:2a01:4f8:200:42e4::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oslo.ath.cx", Issuer "oslo.ath.cx" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 69752BAA for ; Sat, 20 Jun 2015 19:40:49 +0000 (UTC) (envelope-from herbert@oslo.ath.cx) Received: by oslo.ath.cx (OpenSMTPD) with ESMTP id 3ef9e619; Sat, 20 Jun 2015 21:40:46 +0200 (CEST) Date: Sat, 20 Jun 2015 21:40:46 +0200 From: "Herbert J. Skuhra" To: "William A. Mahaffey III" Cc: FreeBSD Questions !!!! Subject: Re: fdisk question Message-ID: <20150620194046.GB35588@oslo.ath.cx> References: <558581A9.7010309@hiwaay.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <558581A9.7010309@hiwaay.net> User-Agent: Mutt/1.5.23 (2014-03-12) 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, 20 Jun 2015 19:40:50 -0000 On Sat, Jun 20, 2015 at 10:13:36AM -0453, William A. Mahaffey III wrote: > > > .... I just dd'ed the FreeBSD 9.3 RELEASE memstick image onto a 4 GB USB > drive. When I mount it, it shows 101% full, w/ about 717 MB of stuff. > The NetBSD folks often (for Raspberry Pi, for example) recommend & > provide examples of how to mess with the partition table after dd'ing to > restore 'full' USB drive capacity as noted by df w/o messing up any of > the other data in the stick. Is this feasible under FreeBSD ? If so, has > anyone tried/done it ? How did it go :-) ? Care to post your commands > that worked :-) ? TIA & have a good one .... You can use 'gpart resize' and growfs. But why do you want to do this with the memstick image? It's for installing FreeBSD, no? # mdconfig -t vnode -a -f FreeBSD-11.0-CURRENT-amd64-20150618-r284544-memstick.img md0 # gpart show md0 => 3 1470064 md0 GPT (718M) 3 1600 1 efi (800K) 1603 32 2 freebsd-boot (16K) 1635 1466384 3 freebsd-ufs (716M) 1468019 2048 4 freebsd-swap (1.0M) In this case you first have to remove the swap at the end. -- Herbert