From owner-freebsd-current@freebsd.org Mon Aug 1 19:00:25 2016 Return-Path: Delivered-To: freebsd-current@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 3DCE1BAB398 for ; Mon, 1 Aug 2016 19:00:25 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mx1.shrew.net (mx1.shrew.net [38.97.5.131]) (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 14D571827 for ; Mon, 1 Aug 2016 19:00:24 +0000 (UTC) (envelope-from mgrooms@shrew.net) Received: from mail.shrew.net (mail.shrew.prv [10.24.10.20]) by mx1.shrew.net (8.14.7/8.14.7) with ESMTP id u71Ipv3Z049721 for ; Mon, 1 Aug 2016 13:51:57 -0500 (CDT) (envelope-from mgrooms@shrew.net) Received: from [10.16.32.30] (unknown [172.126.77.65]) by mail.shrew.net (Postfix) with ESMTPSA id 781CA18D019 for ; Mon, 1 Aug 2016 13:51:52 -0500 (CDT) Subject: Re: CURRENT: [USB] : GEOM_PART: da4 was automatically resized. To: freebsd-current@freebsd.org References: <20160801110554.289d040d@freyja.zeit4.iv.bundesimmobilien.de> <20160801174035.GI74453@gmail.com> From: Matthew Grooms Message-ID: <0b4f142a-7c44-832d-5fe2-c2a6264383cc@shrew.net> Date: Mon, 1 Aug 2016 13:55:13 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <20160801174035.GI74453@gmail.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mx1.shrew.net [10.24.10.10]); Mon, 01 Aug 2016 13:51:57 -0500 (CDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 01 Aug 2016 19:00:25 -0000 On 8/1/2016 12:40 PM, Randy Westlund wrote: > On Mon, Aug 01, 2016 at 11:05:54AM +0200, O. Hartmann wrote: >> On every(!) USB drive which worked well with 11-CURRENT up to 11-BETA, I fail >> to access with 12-CURRENT (12.0-CURRENT FreeBSD 12.0-CURRENT #14 r303475: Fri >> Jul 29 11:59:11 CEST 2016) with the error shown below. >> >> On USB flash drives I created myself, the suggested gpart command solved the >> problem, but I can not do this with drives I was given by a vendor or supplier. >> >> What is wrong? >> >> Kind regards and thank you very much in advance, >> >> O. Hartmann >> >> >> On console, I get the report: >> >> [...] >> GEOM_PART: da4 was automatically resized. >> Use `gpart commit da4` to save changes or `gpart undo da4` to revert them. > > I noticed something similar when I was trying to dd a more recent > memstick installer to a USB drive on 12-CURRENT. When I plugged in the > flash drive I couldn't dd to it until I noticed that message in syslog > and ran 'gpart undo da0'. Looks like something is unhelpfully > auto-resizing partitions. > Do you have growfs_enable in your rc.conf file? I think this is added to certain flash images by default so it will automatically grow to your device capacity. See ... /etc/rc.d/growfs ... and ... https://lists.freebsd.org/pipermail/freebsd-rc/2014-May/003497.html -Matthew