resizing aarch64 image on arm64

Glen Barber gjb at freebsd.org
Tue Apr 6 15:03:54 UTC 2021


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/Latest/FreeBSD-13.0-RC5-arm64-aarch64.raw
> > 
> > on an amd64 host?
> 
> note that this has been unxz'd already.
> 
> 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
> 
> Note that mdconfig may output a different md device than md1, use
> that instead.
> 

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

Glen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-virtualization/attachments/20210406/0633b8f1/attachment.sig>


More information about the freebsd-virtualization mailing list