gpart trouble
Trev
freebsd-arm at sentry.org
Wed Jul 4 11:22:53 UTC 2018
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.
More information about the freebsd-arm
mailing list