From owner-freebsd-stable@FreeBSD.ORG Wed Jun 9 18:08:46 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 973D4106564A for ; Wed, 9 Jun 2010 18:08:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward13.mail.yandex.net (forward13.mail.yandex.net [95.108.130.120]) by mx1.freebsd.org (Postfix) with ESMTP id 4137E8FC1F for ; Wed, 9 Jun 2010 18:08:45 +0000 (UTC) Received: from smtp13.mail.yandex.net (smtp13.mail.yandex.net [95.108.130.68]) by forward13.mail.yandex.net (Yandex) with ESMTP id 4EB931081A6E; Wed, 9 Jun 2010 22:08:44 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1276106924; bh=Q2qJMj8OMfHsBxv2N8JWcATHTxOSrCGBelfIxItrnCA=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=Xk/6EJPktssBrrS/7ZqAMXxQnZQMTdIJCL8QCl/RpmPak3WnrNBH0DRRkVPUCWFnr ROGLjFoCJypNvQKocpsV9allEAd/w4LApA21fOGPiXlNKeN7DupY2P1KdDTwUnLCdB +YxyefSzHkMa6+C0Nm2djsKDINWKQLETpQlF3ARg= Received: from btr.properlan.net (butcher.heavennet.ru [77.72.136.194]) by smtp13.mail.yandex.net (Yandex) with ESMTPSA id 9E7664158099; Wed, 9 Jun 2010 22:08:43 +0400 (MSD) Message-ID: <4C0FD8A2.3070307@yandex.ru> Date: Wed, 09 Jun 2010 22:08:34 +0400 From: "Andrey V. Elsukov" User-Agent: Thunderbird 2.0.0.23 (X11/20100209) MIME-Version: 1.0 To: Stephane Dupille References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig656C11DA8768E202236AAC7D" X-Yandex-TimeMark: 1276106924 X-Yandex-Spam: 1 X-Yandex-Front: smtp13.mail.yandex.net Cc: freebsd-stable@freebsd.org Subject: Re: Resizing GPT partitions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2010 18:08:46 -0000 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--