Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Jun 2010 22:08:34 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Stephane Dupille <stephane@dupille.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Resizing GPT partitions
Message-ID:  <4C0FD8A2.3070307@yandex.ru>
In-Reply-To: <yge39wxmpf9.fsf@nospam.fr.eu.org>
References:  <yge39wxmpf9.fsf@nospam.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig656C11DA8768E202236AAC7D
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

Stephane Dupille wrote:
> I dumped this disk image to a real machine, which has a 160 Go disk.
> The system works fine, but I can only use 10 Go of disk space. How can
> I gain more space ?
>=20
> How can I enlarge the last partition of the disk to use the whole disk =
?
>=20
> I tried to create a new partition on the disk, and planned to add it
> in the zfs pool, but that didn't work :
> # gpart add -t freebsd-zfs -l disk0f ad0
> gpart: autofill: No space left on device
>=20
> That's odd, because it seems that gpart is aware of the new geometry.

Currently there is no easy way to do it. GPT holds information about
first and last usable sectors. You can see them in your output:

> last: 20971486
> first: 34

You can look at freebsd-geom's mail list archive. There was a topic
"OCE and GPT" with similar problem.

--=20
WBR, Andrey V. Elsukov


--------------enig656C11DA8768E202236AAC7D
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJMD9imAAoJEAHF6gQQyKF6rEgH/AppjQDQXCh4JMzpgcQdFivq
/4jlluSdhRS5WOuAUysCQIS67X1wNpEe9V1Tzq9/S1lVkOMfhyJ+OY/kNIhA06vk
N1ajjZ0k8eQrz6PemZwARj2EuO+GGRYmr+W84uzHl/UpR4IyGpzAXpGIEKl3Dvbz
ghtjyAcjMEXoPwZR5DkNHCfJ3vD5CH6OZBM7DOJ5iWWe0KQj6n5XwG3MRAXm/guK
JjyasAhQ22HUt95Y3UQveA7a9RFD/yEvNfdNNalk3R8udObT2SA6kpgmeogN88Nd
Afh8XOBpwD6O+R1OHDvMd1SkOVMCX7iLebYkmoeKpEVhvG06UvWD5trBiak1SeQ=
=lnl6
-----END PGP SIGNATURE-----

--------------enig656C11DA8768E202236AAC7D--



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