amd64/155023: Bad propose size in disklabel during install

Scot Hetzel swhetzel at gmail.com
Fri Feb 25 15:10:11 UTC 2011


The following reply was made to PR amd64/155023; it has been noted by GNATS.

From: Scot Hetzel <swhetzel at gmail.com>
To: Fabrice <fabrice.bruel at orange-ftgroup.com>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: amd64/155023: Bad propose size in disklabel during install
Date: Fri, 25 Feb 2011 08:39:14 -0600

 On Fri, Feb 25, 2011 at 4:16 AM, Fabrice
 <fabrice.bruel at orange-ftgroup.com> wrote:
 > I'm try to install FreeBSD 8.2 amd64 on a ESXi 4.1. I create a virtualdis=
 k of 20Go and so I boot on the 8.2 iso
 >
 > During install, in disklabel,the size af the disk before any action :
 > Disk: da0 Partion name: da0s1 Free: 41929587 blocks (20473MB)
 >
 > I choose first "A auto defaults" and so disklabel create :
 > da0s1a =A0 =A0/ =A0 =A0 =A0 =A0 1024MB UFS2 =A0 Y
 > da0s1b =A0 =A0swap =A0 =A0 =A04061MB swap
 > da0s1d =A0 =A0/var =A0 =A0 =A06126MB UFS2+S Y
 > da0s1e =A0 =A0/tmp =A0 =A0 =A01024MB UFS2+S Y
 > da0s1f =A0 =A0/usr =A0 =A0 =A08237MB UFS2+S Y
 >
 > To be able to compile the world, I want change the size of / and /tmp.
 >
 > So I delete /tmp / and /usr
 > Disklabel say :
 > Disk: da0 Partion name: da0s1 Free: 21065651 blocks (10285MB)
 > So I create manualy / with size =3D 2G and /tmp with size =3D 2G
 >
 
 What happened is that the disklabel editor had pre-allocated chunks
 for each partition:
 
 old /           0-1G      1G
 swap         1G-5G     4G
 /var            5G-11G   6G
 old /tmp   11G-12G    1G
 old /usr     12G-20G   8G
 
 
 The problem is that when you recreated your new / partition it used
 2GB from the old /tmp (1G) + old /usr (8G) partitions (which is the
 largest continuous space available), which left only 7G available for
 you to partition between your new 2G /tmp and 5G /usr partitions.
 
 
                  0-1G      1G <- space available
 swap         1G-5G     4G
 /var            5G-11G   6G
 new /       11G-13G   2G
 new /tmp 13G-15G    2G
 new /usr  15G-20G    5G
 
 To fix this, you need to delete all the partitions and start over.
 
 Scot


More information about the freebsd-amd64 mailing list