Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Nov 2011 04:15:50 GMT
From:      Neville Tickman <nevtic@sunset.tx.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/162675: 9.0-RC2 - bsdinstall miscount of remaining diskspace after partition deletion.
Message-ID:  <201111190415.pAJ4FoaP053991@red.freebsd.org>
Resent-Message-ID: <201111190420.pAJ4K54E093944@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         162675
>Category:       misc
>Synopsis:       9.0-RC2 - bsdinstall miscount of remaining diskspace after partition deletion.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 19 04:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Neville Tickman
>Release:        9.0-RC2 bsdinstall from ISO
>Organization:
>Environment:
Not applicable:  occurs during DVD/CD installation of FreeBSD 9.0-RC2 on i386, amd64, and perhaps others
>Description:
If you are performing a manual partition in 9.0-RC2 bsdinstall and you delete any created partition except the most recently created one, the total remaining space will be miscalculated.  Reproducable.

Gives the same results with other hard drive sizes, with either the i386 or the amd64 distributions, and with either 9.0-RC2 or 9.0-RC1 (I did not go back and check install discs prior to RC1)
>How-To-Repeat:
A 114 GB drive is used for this example:

  Select Manual Partitioning

  Perform the first Create on the drive and select GPT

  Creating the first partition:  "Add Partition" "size" shows 114GB

    Change size to 4GB, set mountpoint to  /  and tab to OK
      (agree to the boot partition creation)

  Create a second partition: "Add Partition" "size" shows 110GB

    Adjust size to 10GB, set mountpoint to  /usr and tab to OK

  Create a third partition: "Add Partition" "size" shows 100GB

    Adjust size to 20GB, set mountpoint to /var, and tab to OK

  Create a 4th partition: "size" shows 80GB remaining

    Adjust size to 40GB, set mountpoint to /data,  and tab to OK.

There is 40 GB remaining on the drive.  Now change the size of /var.  First, delete the currently configured /var partition.

In the Partition Editor, adding up all the lines on the screen shows 54GB (plus
a 64K boot) as allocated, so there should now be 60GB remaining.  But the
deleted /var space has not been added back into the total.

Select Create again: "Add Partition" "size" shows 40GB (instead of 60GB)

   Adjust size to 30GB, set mountpoint as /var, tab to OK

A subsequent "Create" will show that 20GB is remaining, rather than the actual
remaining 30GB.  Selecting any size 20GB or larger for /home will give you a
20GB partition, and then an additional create will show the "missing" 10GB.

>Fix:
Workaround:  if you need to delete a partition that is not the last partition that was created, delete all partitions created after that partition before continuing.  Order does not seem to be important.

>Release-Note:
>Audit-Trail:
>Unformatted:



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