Resizing GPT partitions
Andrey V. Elsukov
bu7cher at yandex.ru
Wed Jun 9 18:08:46 UTC 2010
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 ?
>
> How can I enlarge the last partition of the disk to use the whole disk ?
>
> 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
>
> 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.
--
WBR, Andrey V. Elsukov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20100609/f87a0dc6/signature.pgp
More information about the freebsd-stable
mailing list