From owner-freebsd-arm@freebsd.org Wed Jul 4 11:22:53 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 616F1102AD86 for ; Wed, 4 Jul 2018 11:22:53 +0000 (UTC) (envelope-from trev@sentry.org) Received: from shadow.sentry.org (shadow.sentry.org [210.8.237.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "shadow.sentry.org", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 926D47493A for ; Wed, 4 Jul 2018 11:22:52 +0000 (UTC) (envelope-from trev@sentry.org) Received: from shadow.sentry.org (localhost [127.0.0.1]) by shadow.sentry.org (8.15.2/8.15.2) with ESMTP id w64BMlUp060313 for ; Wed, 4 Jul 2018 21:22:47 +1000 (AEST) (envelope-from trev@sentry.org) Subject: Re: gpart trouble To: freebsd-arm@freebsd.org References: <20180704041559.GA63030@www.zefox.net> <201807040423.w644NirT041295@pdx.rh.CN85.dnsmgr.net> <20180704052357.GA63177@www.zefox.net> From: Trev Organization: Sentry Message-ID: <3afd0c1c-a594-51a5-d320-5010796b7491@sentry.org> Date: Wed, 4 Jul 2018 21:22:47 +1000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.3 MIME-Version: 1.0 In-Reply-To: <20180704052357.GA63177@www.zefox.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (shadow.sentry.org [0.0.0.0]); Wed, 04 Jul 2018 21:22:47 +1000 (AEST) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jul 2018 11:22:53 -0000 bob prohaska wrote on 04/07/2018 15:23: > On Tue, Jul 03, 2018 at 09:23:43PM -0700, Rodney W. Grimes wrote: >>> >>> I want to add some swap partitions to the June 28th RPI3 snapshot image on microSD. >>> Growfs was suppressed, so the card has 12 GB of free space: >>> >>> Enter full pathname of shell or RETURN for /bin/sh: >>> Cannot read termcap database; >>> using dumb terminal settings. >>> # mount -o rw / >>> # gpart show mmcsd0 >>> => 63 31116225 mmcsd0 MBR (15G) >> ^^^^^ >>> 63 2016 - free - (1.0M) >>> 2079 102312 1 fat32lba [active] (50M) >>> 104391 5138469 2 freebsd (2.5G) >>> 5242860 25873428 - free - (12G) >>> >>> # gpart add -t freebsd-swap -s 1G mmcsd0 >>> gpart: Invalid argument >>> # gpart add -t freebsd-swap -s 1G /dev/mmcsd0 >>> gpart: Invalid argument >>> # gpart add -t freebsd-swap -s 1GB -l swap mmcsd0 >>> gpart: Invalid argument You need to create BSD disklabel slice along the lines of gpart create -s BSD -n 8 mmmcsd0s1 then add the root partition gpart add -t freebsd-ufs -s 10G mmcsd0s1a then add the swap partition gpart add -t freebsd-swap -s 2G mmcsd0s1b Excuse the formatting, I'm interstate with vnc on an iPad mini which involves lots of scrolling.