From owner-freebsd-current@FreeBSD.ORG Sun Feb 3 23:50:26 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A1C13A23; Sun, 3 Feb 2013 23:50:26 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) by mx1.freebsd.org (Postfix) with ESMTP id 125FAF98; Sun, 3 Feb 2013 23:50:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=6oAjsAWpZ8zEzzsQ+hk8anLpNl7J4qqLoVzgRwAp2Ag=; b=pbEntI4NOpMf7HTmmUk2Lvvo1nuoGXawCsJQa0pSqRCZNK7vfgejD4Rz+yUGzfYrFxSECE5tCecm3Yc/E+jLGY9xig7iLMzqr5ZlWtBHaEkbrWk5TxVLzctiwEn52lYG; Received: from [122.129.203.50] (port=47993 helo=X220.ovitrap.com) by sl-508-2.slc.westdc.net with esmtpsa (SSLv3:DHE-RSA-AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1U28vX-001FmK-Hf; Sun, 03 Feb 2013 16:24:48 -0700 Date: Mon, 4 Feb 2013 06:24:43 +0700 From: Erich Dollansky To: Tim Kientzle Subject: Re: gpart resize vs. cache? Message-ID: <20130204062443.485cff60@X220.ovitrap.com> In-Reply-To: <3D812191-2D6E-43B2-B9C1-F00FFA44C5F8@freebsd.org> References: <3D812191-2D6E-43B2-B9C1-F00FFA44C5F8@freebsd.org> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2013 23:50:26 -0000 Hi, On Sun, 3 Feb 2013 12:06:41 -0800 Tim Kientzle wrote: > I'm tinkering with a disk image that automatically > fills whatever media you put it onto. But I'm having > trouble with gpart resize failing. > > Disk layout: > MBR with two slices mmcsd0s1 and mmcsd0s2 > bsdlabel with one partition mmcsd0s2a > > Before I can use growfs, I have two gpart resize operations: > > 1) gpart resize -i 2 mmcsd0 > > 2) gpart resize -i 1 mmcsd0s2 > > Step 1 resizes mmcsd0s2 and always succeeds. > > Step 2 resizes mmcsd0s2a and always fails > with "No space on device." > I used a gpart show between in a different situation. The script did not work without it. When I entered the same commands from the command line, they all worked. So, things could be related to cache or delayed writes. Erich