From owner-freebsd-arm@FreeBSD.ORG Sat May 3 12:37:41 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 689818DF for ; Sat, 3 May 2014 12:37:41 +0000 (UTC) Received: from forward9l.mail.yandex.net (forward9l.mail.yandex.net [IPv6:2a02:6b8:0:1819::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2677318AB for ; Sat, 3 May 2014 12:37:41 +0000 (UTC) Received: from smtp11.mail.yandex.net (smtp11.mail.yandex.net [95.108.130.67]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 51D22E60F62; Sat, 3 May 2014 16:37:37 +0400 (MSK) Received: from smtp11.mail.yandex.net (localhost [127.0.0.1]) by smtp11.mail.yandex.net (Yandex) with ESMTP id EBAFF7E0137; Sat, 3 May 2014 16:37:36 +0400 (MSK) Received: from 78.108.203.86.tel.ru (78.108.203.86.tel.ru [78.108.203.86]) by smtp11.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id k34y8po3hF-baRGRA3b; Sat, 3 May 2014 16:37:36 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 04c4b9a5-1bbb-4366-acbf-db0736a5a606 Message-ID: <5364E310.40005@passap.ru> Date: Sat, 03 May 2014 16:37:36 +0400 From: Boris Samorodov Organization: =?UTF-8?B?0JfQkNCeICLQktCQ0KDQoiI=?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Paul Darius Subject: Re: partition resize References: <5364DE26.2090503@passap.ru> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list 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 12:37:41 -0000 03.05.2014 16:26, Paul Darius пишет: > 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. > the autosize is automatically called by system on every boot. the file at > /etc/rc.d Then do a resize by hand. Additional info is at the FreeBSD Handbook, Section 18.3 "Resizing and Growing Disks": http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-growing.html -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve