Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2021 15:03:51 +0000
From:      Glen Barber <gjb@freebsd.org>
To:        John-Mark Gurney <jmg@funkthat.com>
Cc:        freebsd-virtualization@freebsd.org
Subject:   Re: resizing aarch64 image on arm64
Message-ID:  <20210406150351.GW92026@FreeBSD.org>
In-Reply-To: <20210406061943.GR14975@funkthat.com>
References:  <YGtB8iqK9KsTekwR@ceres.zyxst.net> <20210406061943.GR14975@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--sMP3l7aO1Ldl3x+Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 05, 2021 at 11:19:43PM -0700, John-Mark Gurney wrote:
> tech-lists wrote this message on Mon, Apr 05, 2021 at 16:59 +0000:
> > Can anyone tell me how to resize
> > https://download.freebsd.org/ftp/releases/VM-IMAGES/13.0-RC5/aarch64/La=
test/FreeBSD-13.0-RC5-arm64-aarch64.raw
> >=20
> > on an amd64 host?
>=20
> note that this has been unxz'd already.
>=20
> truncate -s 6g FreeBSD-13.0-RC5-arm64-aarch64.raw	# enlarge
> mdconfig -f FreeBSD-13.0-RC5-arm64-aarch64.raw		# make device
> gpart recover md1					# fix up gpt
> gpart resize -i 3 md1					# expand ufs partition
> growfs md1p3						# grow ufs
>=20
> Note that mdconfig may output a different md device than md1, use
> that instead.
>=20

The growfs(8) automatically runs at firstboot, so only the truncate(1)
part is needed.

Glen


--sMP3l7aO1Ldl3x+Z
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAmBseFcACgkQAxRYpUeP
4pNBWA//Y6aSIBtoTDpfj/eC5pXgKCstqRaFK3ZlVQ0nNr1egKl7LvkubQw9J5X3
FYXZnjcYSHZj5j0k3ZA43AuYeJpxylN+Ahue01ikwUay1TRIrJ5dkSySG5gfi+bb
se9CpisBXb/l1RBTXPdopfrO8HkaUk1HD2lapts5BNGgxt3v698dJUDjsMNhVKz4
ckrIZgxeVQtOk7s2nBriYnI/Zfz1loTMiDzGA2r2n2d6vRPEhZ5tMFp/d7/D2edA
zyTXU2z71h3+xNKjxc5qi302Pgrp1KbAA/Jpz9DEKZsfchE+IefbAh1Pk0Z9JUP4
/3wxkU//Q8ftJuFla7VhN2KoJp+zfCTeRbwh7pS0ju3Q2uONJlz0JJ7PxrTFV03h
4PL7/2bFBUrT+DK7JIXckkgTvsC0GtczadRQcRJDZ/2sHTNmtDEv2hphpob4TXkm
T5Hu1pUHQhCZjtwj7ZLB2tgScXnKK9vBTA113E0loYykRzyDTWWSTJ0oJUztOJO7
BjuGvcqT+6u7hAHbcnWiTK05kHv9UDlscebk5LiyUZ2aVsQKr8khaQPSuyB+BBYb
tRFLUO9BB2Nqgtea+AKgEdXR7VqpAkpdPbi8aqsHn/kE5GEcOFzFGDwsI2FtwH4w
DENliiOD9s/uODfKdGSzUfU+yZY8C7PSrgGEDY0LUpSnLsZZZww=
=pMhV
-----END PGP SIGNATURE-----

--sMP3l7aO1Ldl3x+Z--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210406150351.GW92026>