From owner-freebsd-arm@FreeBSD.ORG Sat May 3 12:27:12 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 A2AD5700 for ; Sat, 3 May 2014 12:27:12 +0000 (UTC) Received: from mail-ig0-x236.google.com (mail-ig0-x236.google.com [IPv6:2607:f8b0:4001:c05::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 68E0217E0 for ; Sat, 3 May 2014 12:27:12 +0000 (UTC) Received: by mail-ig0-f182.google.com with SMTP id uy17so1378120igb.9 for ; Sat, 03 May 2014 05:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ranahminang.net; s=padang; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b97l1KAB4/NeEs6eNhgUBKtD+tZSIUIHxG0/T7m2mS0=; b=Df8uzyNe3+atYINK+cUQ93W0H1F82KD8cmqbkNeoYDXf7MODb9rRWJ4jgwB4ZnuSAC YXWI0cQpcZ6SYWUA2R9hbM3rzT+4Q1xXqoskN3dVV4HNJQCSOGZFJAnGS+8bDd3TUlFc sgtq+Y0jnoa2dlN2norlhhmKnBqltc9COVEC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=b97l1KAB4/NeEs6eNhgUBKtD+tZSIUIHxG0/T7m2mS0=; b=Qpx1zVK1Keh4Ut1xNd0ydTioE2hfaR2Bgi3RcIXtZESSrsiSDKiTS/OQ+pG1Nllkl5 yA0SUWj3iz6UXMJ4soe+LW09trKv7foqwVo4gaS4rxa8y75k968RTGNqiKNUjpNiANgu 2p6iRlYmBnFlA5r8x51Mn/djEh6PrkhYC2pJPDmVoI7T4or5HUfrZYJxhwNeK1hHwb47 fUe+vnYY1pMZDbYN9+dHScifnv0Md1aVL61wdNFwBEqmSQ8kNWatWXu5xk9VB2ijlYG9 hh8cbreh+lHDc4gt8wSGbUkfJYKYLZ7MeMLRbgO2x1XcUpOTxSa0W5AI/awisHeQsqxz BtDQ== X-Gm-Message-State: ALoCoQmO9aQSU5mw0REtPGYICi6w0VCfVQCIK2HyfXNKaq6sYhL3TyROAVh2wiDZMNidt5ecXRVi MIME-Version: 1.0 X-Received: by 10.50.30.6 with SMTP id o6mr11080258igh.43.1399120031874; Sat, 03 May 2014 05:27:11 -0700 (PDT) Received: by 10.64.6.168 with HTTP; Sat, 3 May 2014 05:27:11 -0700 (PDT) X-Originating-IP: [36.68.47.185] Received: by 10.64.6.168 with HTTP; Sat, 3 May 2014 05:27:11 -0700 (PDT) In-Reply-To: <5364DE26.2090503@passap.ru> References: <5364DE26.2090503@passap.ru> Date: Sat, 3 May 2014 19:27:11 +0700 Message-ID: Subject: Re: partition resize From: Paul Darius To: Boris Samorodov Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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:27:12 -0000 i got 2 pcs sdcard and both give the same result P On May 3, 2014 7:16 PM, "Boris Samorodov" wrote: > 03.05.2014 12:10, Paul Darius =D0=C9=DB=C5=D4: > > > > here is the partition created from the fbsd image > > Are you sure? Seems that you did some changes to it. > > > $ gpart show > > =3D> 63 61497281 mmcsd0 MBR (29G) > > 63 34776 1 !12 [active] (17M) > > 34839 61462485 2 freebsd (29G) > > 61497324 20 - free - (10K) > > > > =3D> 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 >