From nobody@FreeBSD.org  Fri Nov 12 22:36:22 2010
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 3235E106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Nov 2010 22:36:22 +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 1F76D8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Nov 2010 22:36:22 +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 oACMaLRp059438
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 12 Nov 2010 22:36:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id oACMaLHY059437;
	Fri, 12 Nov 2010 22:36:21 GMT
	(envelope-from nobody)
Message-Id: <201011122236.oACMaLHY059437@www.freebsd.org>
Date: Fri, 12 Nov 2010 22:36:21 GMT
From: Markus Hoenicka <markus.hoenicka@mhoenicka.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: disklabel's Auto Defaults creates too small / partition on amd64
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152179
>Category:       amd64
>Synopsis:       disklabel's Auto Defaults creates too small / partition on amd64
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brucec
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 12 22:40:08 UTC 2010
>Closed-Date:    Fri Nov 12 23:17:26 UTC 2010
>Last-Modified:  Fri Nov 12 23:17:26 UTC 2010
>Originator:     Markus Hoenicka
>Release:        8.1-RELEASE
>Organization:
>Environment:
FreeBSD wombat.mininet 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Sat Nov 13 20:29:49 CET 2010     root@wombat.mininet:/usr/obj/usr/src/sys/WOMBAT  amd64
>Description:
The handbook suggests in chap. 2.6.5:

"Users are encouraged to use the automatic partition layout called Auto Defaults by the FreeBSD partition editor."

Doing that results in a / partition of 512MB, although the entire disk is 500GB. This is enough for installing the base system. However, building and installing a custom kernel (a smaller one than GENERIC, fwiw) already overfills the / partition, causing the kernel installation to exit with an error.

I'd recommend to increase the default size of / to 1GB if the total size of the disk permits this. On my box, the current kernel, the old kernel, a good copy of the current kernel, and whatever sysinstall else puts into / take up approx. 775MB.

>How-To-Repeat:
Boot from an amd64 netinstall CD. Begin a standard installation. Use fdisk to allocate the entire HDD to FreeBSD. Enter disklabel and use the Auto Defaults option to automatically size the partitions.
>Fix:
It is easy to work around by manually sizing the partitions. Still, it might be a better idea to teach disklabel to use more appropriate defaults.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: brucec 
State-Changed-When: Fri Nov 12 23:16:03 UTC 2010 
State-Changed-Why:  
Already fixed in HEAD, stable/8 and stable/7 - the next releases of 7.x and 8.x 
will have a root partition of 1GB. 


Responsible-Changed-From-To: freebsd-amd64->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Fri Nov 12 23:16:03 UTC 2010 
Responsible-Changed-Why:  
Take. 

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