Date: Tue, 6 Apr 2021 13:47:10 +0000 From: tech-lists <tech-lists@zyxst.net> To: freebsd-virtualization@freebsd.org Subject: Re: resizing aarch64 image on arm64 Message-ID: <YGxmXmmH8l551MYl@ceres.zyxst.net> 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
--xjr3lJz/hIb8oJNs Content-Type: text/plain; charset=us-ascii; format=flowed 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/Lat= est/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. thanks for this. I earlier found something similar with qemu-img resize but with a qcow2 image. i'll write it up. --=20 J. --xjr3lJz/hIb8oJNs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAmBsZlYACgkQs8o7QhFz NAUgKg//VuPPi80WQYEF4lOf5yB1mSwEntJVWa7uUgyOQvGz99LwgL/1LQQTq41T AnYsC2RmVf/p0NqWMwg1U6p0px7ABxTYcxZKnMgw0t7gIv0X5zcWju+yBjdXUYs+ x3IcJ9KFVR8slEC8cCy1daPIxB9959p338eoCIEHLQNs+sMiCsRnYEsU+gnFBDMK HWlTxPrxPiQfxTbA+EFquQ+8ftnMj7IGiKITgmvdiyOel8BRtsKBXLlKafIuNG7r aIL+0a9yHegrXH1Ni8fKV3dXJAb+iptMLmIFK+3zi8Yndcdb7Uv3/naB/kwf9Frq eG8rokEKM8HfkLSNhlGQtD7rmvVQWUca70mkmGxMve+kln++KAYvBTo34rCH8zBD NlfERXTi1s4u+ieCWxKM7yp0qx58v8gtdF05GPzudS7J4m6X43pNKGi2UrB3adY1 73FDgYMnaPhw2dc3RzBOkmJPIiaSDrWaIxavGnhiKSzq27EjrMmEYEWUrnD8iypk 4kaFqEXUdDY8B+wtPswOu1RlBkZ7xDUGMptmrEkEBxTfD4PjlmR19Q9lQ/aDa4ej kLfom4cWBFk/10zqItH867EHycog96QtD+LiT+wYp5x+ka+++qCQna7MUN5Ii0BM lJ0ZsJyyXyj6F7kdVKT1wNHLGCA2pd4ZA5Cc5mEBArfp6qXorCU= =jGy2 -----END PGP SIGNATURE----- --xjr3lJz/hIb8oJNs--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YGxmXmmH8l551MYl>