Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 11:17:40 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Pieter Donche <Pieter.Donche@ua.ac.be>
Cc:        "mail.list freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   Re: UFS partitioning
Message-ID:  <20081202111740.96805018.freebsd@edvax.de>
In-Reply-To: <Pine.GSO.4.63.0812021048180.3801@hmacs.cmi.ua.ac.be>
References:  <Pine.GSO.4.63.0812021048180.3801@hmacs.cmi.ua.ac.be>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2 Dec 2008 10:56:44 +0100 (CET), Pieter Donche <Pieter.Donche@ua.ac=
.be> wrote:
> If FreeBSD is to put on the system as only operating system (Fdisk:
> "A =3D Use Entire disk"), then will the BSD-partitions will show up as
> ad0a (/), ad0b (swap), ad0d (/var) etc... correct or not (then what)?

You're mixing terminology here. :-) The "use entire disk" will
create a slice for FreeBSD covering the complete disk. A slice
is what MICROS~1 calls "primary partition".

Now the conclusion: Let's say you create a slice on ad0, it will
be ad0s1. Now you can create partitions inside this slice as you
mentioned it, e. g. ad0s1a =3D /, ad0s1b =3D swap, ad0s1d =3D /tmp,
ad0s1e =3D /var, ad0s1f =3D /usr and ad0s1g =3D /home. But if you're
refering to ad0a, ad0b, ad0d etc. you're stating that there's
no slice, implying that (if I see this correctly) it isn't possible
to boot from that disk. Of couse, if you would intend to use
a (physical) second disk for only the home partition, you could
omit the slice and the partition and simply newfs ad1 - but
that wasn't your question.

    ad0 |-----------------------------------------------| the whole disk
  ad0s1  \----------------------------------------------/ one slice
 ad0s1X   \--/\---/\-----/\-----/\-------/\------------/  partitions
            a   b     d      e       f           g
            /  swap  /tmp   /var    /usr       /home      mount point

In case of "dual booting", you usually have more than one slice
on your disk, but what happens inside the FreeBSD slice is mostly
the same.


> Page 427 of the FreeBSD handbook states that due to the use of 32-bit
> integers to store the number of sectors is limited to 2^32 -1=20
> sectors/disk =3D 2 TB. A layout could be=20
> a / 1Gb,=20
> b swap,=20
> d /root 20 Gb, (a /root partition is from an example of someone who
> claims that at boot FreeBSD checks the partions in background except
> for the / partition, by keeping / as small as possible, the time to
> boot can be mimimized .. correct? but will /root ever be something
> big ??)

No no, / refers to "the root partition". One way of setting
up p=FCartitions is just to have one partition (one root parttion)
and put everything on it, including /tmp, /var, /usr and /home.
Another philosophy is to create partitions designated to their
further use, just as I mentioned it above.

For /, you would hardly need more than 1 GB. It just contains
the kernel, basal system binaries, the configuration files and
the directories that are mount points for all the other file
systems. Even a 256 MB / partition should be enoung.


> e /tmp 20 Gb,=20
> f /var 20 Gb,=20
> g /usr 20 Gb
> this leaves 2420 Gb which is more than 2 Tb, so you can't put all=20
> that in 1 filesystem h /home, you will need to split that in 2
> BSD-paritions, but since you can't have more that 8 BSD-partitions
> (highest BSD-partition letter is h), you need to give up at least
> one of d, e, f, g. ... correct or not (then what)?

I quite doubt that FreeBSD's UFS 2 cannot handle a 2 TB partition
as a whole, but because I don't have sch large disks with UFS
(I have ZFS for them), I cannot tell.





PS. Corrected subject (was missing).

--=20
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



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