From owner-freebsd-arm@FreeBSD.ORG Tue May 6 10:39:06 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 E28F95B4 for ; Tue, 6 May 2014 10:39:05 +0000 (UTC) Received: from mail-ie0-x22a.google.com (mail-ie0-x22a.google.com [IPv6:2607:f8b0:4001:c03::22a]) (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 AD5A2198 for ; Tue, 6 May 2014 10:39:05 +0000 (UTC) Received: by mail-ie0-f170.google.com with SMTP id rd18so9554227iec.1 for ; Tue, 06 May 2014 03:39:05 -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 :content-type; bh=kvuSjiqe6QVt0wGNfKV9abxR+5aAWgBokFZmgexkxFE=; b=aB0Fze6VYqHK+zhobLkJdvIwurm7Xd8nBjRLv3fIyzyC734fwWK65Ykl5cfnYKVWw4 fN9qB3NhSFqVDqr2XOdcTpAsKFqiCS0zMqLX7b7vGqzpnnyC6jrh8kjl8Qirtw51avwW xPBUNYklsiKdYWKP8YL3Uw0eIk2+d6Tb3Kyd4= 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:content-type; bh=kvuSjiqe6QVt0wGNfKV9abxR+5aAWgBokFZmgexkxFE=; b=OfY9jW0IMLOgJRf3EoAWAJfRieJVSskRXdiRAwX06emFqicHGufN9eZZWyqByirYVR Jo8FLven560zOS6iTixIi1WLqLVvNUhNifU+QmicQBs4bG29MIS8tZSt5eN/AICdRgj4 wLts8cYlDEQyVc7Wgj1mZwuNNZK/s//9JzEgxvgt7sOEBQd6MEh38RWaMxY2kTHAGDuL HBzClfftbtRKxSXA8Z79KiuHit8376raclz6ReMNsmUCkZDBtnLCvaERqdJPf/Y+2KFs REGUXFAygvOvlP7zQvn0zreOqTD3kLqD3F1bA+dM+DnP7XuFyKzVz9ze93U9NiAV25lo 4Sww== X-Gm-Message-State: ALoCoQkZrOGkgkfuWSqIzxv9mJ39y+7T+XmSgOJOHkkbA1ZO7Ra32SpfKoQnnolIA4flM1g6puxu MIME-Version: 1.0 X-Received: by 10.42.39.138 with SMTP id h10mr373227ice.92.1399372744885; Tue, 06 May 2014 03:39:04 -0700 (PDT) Received: by 10.64.6.168 with HTTP; Tue, 6 May 2014 03:39:04 -0700 (PDT) X-Originating-IP: [36.68.47.185] In-Reply-To: <20140505170856.GQ43976@funkthat.com> References: <20140505170856.GQ43976@funkthat.com> Date: Tue, 6 May 2014 17:39:04 +0700 Message-ID: Subject: Re: partition resize From: Paul Darius To: Paul Darius , freebsd-arm Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 May 2014 10:39:06 -0000 Tq for the advices... i will try your suggestion as soon as i get the new sd card as the current sdcard (toshiba class 10) always give me error 19 on every startup. P On 5/6/14, John-Mark Gurney wrote: > Paul Darius wrote this message on Sat, May 03, 2014 at 15:10 +0700: >> hi there.. >> >> here is the partition created from the fbsd image >> >> $ 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) > > This partition didn't grow for some reason... > gpart resize -i 1 mmcsd0s2 > > Should grow it... > >> $ 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 just recently rewrote crochet's autosize/growfs rc.d script to be > able to handle any partitioning scheme to grow /... You could try the > attached... just run: "growfs start" and it should run all the necesssary > commands... > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." >