Professional Documents
Culture Documents
Contents
1.
1.
2.
3.
4.
5.
2.
1.
2.
3.
3.
1.
2.
Required partitions
Overview
Root partition (always required)
Swap (very recommended)
Separate /boot (sometimes required)
BIOS-Boot or EFI partition (required on GPT disks)
Optional partitions
Partition for sharing data with Windows, MacOS... (optional)
Separate /home (optional)
More Complex Schemes
Space Requirements
Absolute Requirements
Installation on a small disk
The goal of this page is to offer advice and strategy on partitioning a Linux system.
Required partitions
Overview
The easiest partitioning scheme, on a non-GPT disk, is simply a root partition and a swap partition.
Nam
Size
e
swap
size of RAM
If the disk is GPT type (this can be checked via the "sudo parted -l" command), you must also add a
BIOS-Boot or an EFI partition depending on the boot mode of your BIOS.
Name
Size
BIOS-boot or EF
I
see below
swap
size of RAM
recommended
Optional partitions
Optionally, some other partitions can be created for specific usages. Be careful, these partitions
reduce the flexibility of your disk space, they must be considered only if you are sure not to fill
completely your root partition (which would block your system).
users.
This directory holds the executables used for core system functions, and used by
/sbin the system administrator
to maintain the system. See Note Below
This is a system use directory containing process information. Almost never
/proc
/dev
accessed by a user.
This directory contains system created links to your installed hardware, and
like /proc is almost never accessed directly.
Size
/home
179.5 GB
/usr
7.6 GB
10 GB
/var
988.2 MB
2 GB
/lib
599.9 MB
5 GB
/boot
137.1 MB
250 MB
/opt
95.3 MB
/etc
18.8 MB
250 MB
/sbin
7.8 MB
250 MB
/bin
6.5 MB
250 MB
/dev
876.0 KB
DO NOT PARTITION
Unless you plan on installing web served data here, or are using a
Server version of Ubuntu, this will not often need to be larger than
/srv
200 KB
/tmp
88 KB
8 kB (do
not
partition)
/mnt
/
media
8 kB (do
not
partition)
The above recommendations assume you are using large modern hard drives and can afford the
space.
Space Requirements
This information was taken from forum/installation/DiskSpace. The original article was last
edited on 2006-05-28, thus it is probably out of date and should be verified.
Absolute Requirements
The required disk space for an out-of-the-box Ubuntu installation is said to be 15 GB. However, that
does not take into account the space needed for a file-system or a swap partition.
It is more realistic to give yourself a little bit more than 15 GB of space. Give yourself 15-25 GB to
have some space left for actually doing things. If your file-system is full to the brim, you will feel
some performance loss.
A certain percentage of an ext3 file-system is dedicated to root, as a way of preventing a rogue
process from filling the disk to the point that the system is unusable. This dedicated portion is 5% by
default. Also, the anti-fragmentation strategies used by Linux file-systems require that the disk is
not close to full. A rule of thumb is to keep them less than 90% full.