Bug 107432

Summary: Handbook's default partitioning schema is out-of-date
Product: Documentation Reporter: Gergely Czuczy <phoemix>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Gergely Czuczy 2007-01-02 15:20:16 UTC
	The handbook's default partitioning scheme looks like this:
	a 100MB /
	b 2-3x RAM swap
	d 50MB /var
	e rest /usr

	now, the user installed his comupter like this, and he
	asked that why was he out-of-space when he installed some
	packages. i checked my desktop's /var. usage, and it was 56MB
	so, things might had been changed since then.

Fix: 

i suggest the following partitioning scheme for
	newbies in the handbook:

	a 500MB /
	b 500MB-2G swap (depending on the ammount of RAM)
	d rest /usr

	having a separate /var for first installers is not
	so important. for later on usage it could be suggested
	to use more partitions, and the different tree points
	were explained along with why they might need a separate
	partition.

	like:
	/	500MB, rootfs
	swap	depending on the amount of RAM
	/usr	as big as possible, user applications were take
		place here, along with ports and system sources
	/tmp	separation might be needed to not let temporary large
		files to disturb the system. also think of /var/tmp
	/var	~100MB with respect to /var/log, /var/db
	/var/log it's a good idea to sperate this, thus some logs
		might fill the disk which can disturb other daemons
		using /var
	/usr/home or /home, user account data
	/usr/local	3rdparty packages, to separate them from
		the base system

	... so on.
	so, i suggest a general newbie-partition-schema and a detailed
	explanation for advanced/production/non-desktop usage
How-To-Repeat: 	See description.
Comment 1 Niclas Zeising 2007-01-02 16:20:22 UTC
There is some work in progress about doing a major overhaul of the
entire installation chapter. This issue will likely be fixed by then,
at least for the most common case.
Comment 2 Ceri Davies 2007-01-06 11:53:15 UTC
On Wed, Jan 03, 2007 at 07:31:45AM +0100, Remko Lodder wrote:
> On Tue, Jan 02, 2007 at 04:50:20PM +0000, Niclas Zeising wrote:
> > The following reply was made to PR docs/107432; it has been noted by GNATS.
> > 
> > From: "Niclas Zeising" <niclas.zeising@gmail.com>
> > To: "Gergely CZUCZY" <phoemix@harmless.hu>
> > Cc: FreeBSD-gnats-submit@freebsd.org
> > Subject: Re: docs/107432: Handbook's default partitioning schema is out-of-date
> > Date: Tue, 2 Jan 2007 17:20:22 +0100
> > 
> >  There is some work in progress about doing a major overhaul of the
> >  entire installation chapter. This issue will likely be fixed by then,
> >  at least for the most common case.
> 
> Perhaps it will be a good idea to document the 'new' defaults
> for larger systems. Do note however that with disks smaller then
> 2GB (from my head) the old defaults still apply. If you want I
> can give you the information (I need to look it up as well).


The current mininum sizes are:

/ 128M (alpha,ia64,sparc64,amd64)
/ 118M (everything else)
swap 32M
/usr 160M
/var, /tmp, /home 20M

Defaults are:

/ 512M
/usr 8G
/var 1G
/tmp 512M
/home 8G

If the defaults can't be met, we try the following values before falling
back to the minimum:

/ 256M
/usr 1.5G
/var 128M
/tmp 128M
/home 1.5G

This information in sysinstall/label.c.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
                                                  -- Moliere
Comment 3 Tom Rhodes freebsd_committer freebsd_triage 2008-07-15 13:57:41 UTC
Hi,

> The handbook's default partitioning scheme looks like this:
> a 100MB /
> b 2-3x RAM swap
> d 50MB /var
> e rest /usr

From the page:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html

It appears that / was upped to 512MB, /var is 256MB to 1024MB,
and /usr having the rest, noting at least 2GB.

This PR should probably be closed.  I'm going to give it a few
days to see if any follow ups come in, otherwise, I'll close it.

Thanks,
-- 
Tom Rhodes
Comment 4 Gergely Czuczy 2008-07-15 14:31:11 UTC
Hello,

Yes, I agree. The can be considered solved by this update.

On Tue, 15 Jul 2008 08:57:41 -0400
Tom Rhodes <trhodes@FreeBSD.org> wrote:

> Hi,
> 
> > The handbook's default partitioning scheme looks like this:
> > a 100MB /
> > b 2-3x RAM swap
> > d 50MB /var
> > e rest /usr
> 
> From the page:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-steps.html
> 
> It appears that / was upped to 512MB, /var is 256MB to 1024MB,
> and /usr having the rest, noting at least 2GB.
> 
> This PR should probably be closed.  I'm going to give it a few
> days to see if any follow ups come in, otherwise, I'll close it.
> 
> Thanks,



-- 
Sincerely,

Gergely CZUCZY
Harmless Digital Bt
mailto: gergely.czuczy@harmless.hu
Tel: +36-30-9702963
Comment 5 Tom Rhodes freebsd_committer freebsd_triage 2008-07-15 15:01:49 UTC
State Changed
From-To: open->closed

Close this PR, the handbook was previously updated and 
submitter believes the issue has been solved. 


Comment 6 Tom Rhodes freebsd_committer freebsd_triage 2008-07-15 15:01:49 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me, following.