From nobody@FreeBSD.org  Fri Aug 21 11:11:47 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 1F837106568C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Aug 2009 11:11:47 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 109648FC52
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Aug 2009 11:11:47 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n7LBBkLx026408
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Aug 2009 11:11:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n7LBBkTL026407;
	Fri, 21 Aug 2009 11:11:46 GMT
	(envelope-from nobody)
Message-Id: <200908211111.n7LBBkTL026407@www.freebsd.org>
Date: Fri, 21 Aug 2009 11:11:46 GMT
From: Boris Hollas <boris.hollas@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sysinstall fails to create big partition
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138025
>Category:       bin
>Synopsis:       sysinstall(8) fails to create big partition
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-sysinstall
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 21 11:20:06 UTC 2009
>Closed-Date:    
>Last-Modified:  Sun Jan 23 21:04:42 UTC 2011
>Originator:     Boris Hollas
>Release:        7.2
>Organization:
>Environment:
N/A (trying to install 7.2-R)
>Description:
While installing 7.2 with sysinstall, I used the disklabel editor to create a

- 59 MB slice for FreeBSD
- 2 GB swap partition
- 12 GB / partition
- 1.5 GB /var partition
- 42326 MB /home partition

During the last step, sysinstall reported "unable to create partition. Too big?"

>How-To-Repeat:

>Fix:
I was able to create the partition as desired after I rearranged the order of creation. I created the / partitin first.

>Release-Note:
>Audit-Trail:

From: Oliver Pinter <oliver.pntr@gmail.com>
To: Boris Hollas <boris.hollas@gmx.de>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/138025: sysinstall fails to create big partition
Date: Sat, 22 Aug 2009 04:26:00 +0200

 Hi Boris!
 
 "- 59 MB slice for FreeBSD" the MB sould be GB, I think it the problem.
 
 On 8/21/09, Boris Hollas <boris.hollas@gmx.de> wrote:
 >
 >>Number:         138025
 >>Category:       bin
 >>Synopsis:       sysinstall fails to create big partition
 >>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:   Fri Aug 21 11:20:06 UTC 2009
 >>Closed-Date:
 >>Last-Modified:
 >>Originator:     Boris Hollas
 >>Release:        7.2
 >>Organization:
 >>Environment:
 > N/A (trying to install 7.2-R)
 >>Description:
 > While installing 7.2 with sysinstall, I used the disklabel editor to create
 > a
 >
 > - 59 MB slice for FreeBSD
 > - 2 GB swap partition
 > - 12 GB / partition
 > - 1.5 GB /var partition
 > - 42326 MB /home partition
 >
 > During the last step, sysinstall reported "unable to create partition. Too
 > big?"
 >
 >>How-To-Repeat:
 >
 >>Fix:
 > I was able to create the partition as desired after I rearranged the order
 > of creation. I created the / partitin first.
 >
 >>Release-Note:
 >>Audit-Trail:
 >>Unformatted:
 > _______________________________________________
 > freebsd-bugs@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 >
Responsible-Changed-From-To: freebsd-bugs->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sat Mar 13 11:32:40 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138025 

From: Bruce Cran <bruce@cran.org.uk>
To: bug-followup@freebsd.org,
 boris.hollas@gmx.de
Cc:  
Subject: Re: bin/138025: sysinstall(8) fails to create big partition
Date: Sat, 24 Apr 2010 00:46:00 +0100

 I think this is a bug in libdisk, which doesn't correctly account for space 
 recovered if you delete a partition that's not at the end of the list.
 On line 516 of chunk.c (in lib/libdisk) it just continues if the next 
 partition isn't unused - but if you deleted a partition in-between say, /var 
 and /usr (e.g. /tmp) then it won't realise the space has been recovered.
 
 An easy way to recreate the bug is to create a few large partitions, using up 
 almost all of the disk space. Then, delete an intermediate partition then try 
 adding a new one which is just a few MB smaller than that which is reported to 
 be available at the top of the screen.  For example, with 7593MB total 
 available at the start create 2000MB, 5000MB and 400MB partitions. Delete the 
 5000MB partition and try and create one that's 5100MB. It should fail.
 
 -- 
 Bruce Cran
Responsible-Changed-From-To: brucec->freebsd-sysinstall 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Jan 23 21:04:26 UTC 2011 
Responsible-Changed-Why:  
Back to the pool. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138025 
>Unformatted:
