From owner-freebsd-arm@FreeBSD.ORG Sat May 3 13:19:05 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1EE9D2F8 for ; Sat, 3 May 2014 13:19:05 +0000 (UTC) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BFC411BC5 for ; Sat, 3 May 2014 13:19:04 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id s43DIqAR035498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 3 May 2014 15:18:52 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id s43DIm5e096619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 3 May 2014 15:18:48 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id s43DImW7065202; Sat, 3 May 2014 15:18:48 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id s43DIlVE065201; Sat, 3 May 2014 15:18:47 +0200 (CEST) (envelope-from ticso) Date: Sat, 3 May 2014 15:18:47 +0200 From: Bernd Walter To: Paul Darius Subject: Re: partition resize Message-ID: <20140503131847.GB64774@cicely7.cicely.de> References: <5364DE26.2090503@passap.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, FRT_SOMA2=0.001, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: ticso@cicely.de List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2014 13:19:05 -0000 On Sat, May 03, 2014 at 07:27:11PM +0700, Paul Darius wrote: > i got 2 pcs sdcard and both give the same result There is some kind of bug handling the fdisk/bsdlabel chaining. autosize needs at least two calls with reboot in between. > P > On May 3, 2014 7:16 PM, "Boris Samorodov" wrote: > > > 03.05.2014 12:10, Paul Darius ?????: > > > > > > here is the partition created from the fbsd image > > > > Are you sure? Seems that you did some changes to it. > > > > > $ gpart show > > > => 63 61497281 mmcsd0 MBR (29G) > > > 63 34776 1 !12 [active] (17M) > > > 34839 61462485 2 freebsd (29G) > > > 61497324 20 - free - (10K) > > > > > > => 0 1918278 mmcsd0s2 BSD (29G) > > > 0 1918278 1 freebsd-ufs (937M) > > > > Seems that you already tryed to do a resize. If I'm not mistaken, > > you resized only partition 2 of mmcsd0 device (-i 2 mmcsd0). Also > > partition 1 of mmcsd0s2 device should be resized (-i 1 mmcsd0s2). > > Then you should use growfs to enlarge the filesystem as well. > > > > A note: the last time I did so bsdlabel of mmcsd0s2 (slice c:) > > was not auto enlarged, so I should do it by hand. > > > > > $ cat /etc/fstab > > > /dev/mmcsd0s1 /boot/msdos msdosfs rw,noatime 0 0 > > > /dev/mmcsd0s2a / ufs rw,noatime 1 1 > > > md /tmp mfs rw,noatime,-s30m 0 0 > > > md /var/log mfs rw,noatime,-s15m 0 0 > > > md /var/tmp mfs rw,noatime,-s5m 0 0 > > > > > > when I do extract the ports.tar.gz into /usr, I end up with file system > > full > > > > > > how do i know which partition for what and how to resize them ? > > > > > > the /etc/rc.d/autosize start give the result : > > > # /etc/rc.d/autosize start > > > Enlarging root partition > > > mmcsd0s2 resized > > > gpart: autofill: No space left on device > > > growfs: requested size 937MB is not larger than the current filesystem > > > size 937MB > > > > I've never used autosize, so no comments here, sorry. > > > > -- > > WBR, Boris Samorodov (bsam) > > FreeBSD Committer, http://www.FreeBSD.org The Power To Serve > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.