From owner-freebsd-arm@freebsd.org Wed Jul 4 05:23:45 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 2DD8C103132D for ; Wed, 4 Jul 2018 05:23:45 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F38786DB1 for ; Wed, 4 Jul 2018 05:23:44 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id w645NwWm063318 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 3 Jul 2018 22:23:59 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id w645NwTp063317; Tue, 3 Jul 2018 22:23:58 -0700 (PDT) (envelope-from fbsd) Date: Tue, 3 Jul 2018 22:23:57 -0700 From: bob prohaska To: "Rodney W. Grimes" Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: gpart trouble Message-ID: <20180704052357.GA63177@www.zefox.net> References: <20180704041559.GA63030@www.zefox.net> <201807040423.w644NirT041295@pdx.rh.CN85.dnsmgr.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201807040423.w644NirT041295@pdx.rh.CN85.dnsmgr.net> User-Agent: Mutt/1.5.24 (2015-08-30) 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 05:23:45 -0000 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 > > # > > I do not believe MBR supports "freebsd-swp" as a > partition type, we only have 0x165 as a FreeBSD > type. > > I think you want to create a freebsd type at slice 3, > and inside that you want to create a freebsd-swp. > Maybe that's what I did, I remember the frustration, but not the details 8-) > I am no good with gpart, but fdisk and bsdlabel can do this. > Oddly enough, neither seems to be installed, though both are present in /usr/src/sbin. Both compiled and installed manually without reported errors. Neither seems able to read the boot microSD card, reporting "invalid fdisk partition table found" and "no valid label found" for bsdlabel. If anybody's got ideas I'm all ears. Might it be helpful to put the card in a USB reader and modify it when it's not booted? I don't remember doing that, but could have. Thanks for reading, bob prohaska > > > > It seems to me this worked with an earlier snapshot, has something changed? > > > > Thanks for reading! > > > > bob prohaska > > > > _______________________________________________ > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > > > -- > Rod Grimes rgrimes@freebsd.org