I'd like to see the full How-To on how to use manual partitioning during Ubuntu installation. The existing guides (at least those I found here) cover only automatic part and leave untouched the manual part (or extremely short and contain no pictures).
I'd like to cover such situations:
- If you have blank disk
- If your disk contains Windows installed
- If your disk contains other systems:
- If it is GPT, RAID or LVM
- If you have a OEM-preinstalled copy of Windows 8
Best Answer
If you have blank disk
You will see your disk as
/dev/sda
or/dev/mapper/pdc_*
(RAID case, * means that your letters are different from ours)Click "New Partition Table..." You will see that you have free space on your disk now:
(Recommended) Create partition for swap. Swap is the partition for keeping unneeded memory pages, like Windows swap. Also it can be used for hibernation.
Notice that you should set swap size more than you have physical memory in order to use hibernation. Also, you can place it in the end of disk, but thus it will be slow.
Create partition for
/
(root fs). This is the filesystem that contains your kernel, boot files, system files, command-line utilities, libraries, system-wide configuration files and logs.10 – 20 GiB should be enough
Create partition for
/home
. This is the filesystem for your user's files: documents, images, music and videos. It's much more like Users folder in Windows.You can do this just like in step 5 and even choose other fs type (though I recommend use ext4 instead of reiserfs. Simply, the first is much more flexible and the second is quicker)
(Optional) Create separate partitions for
/boot
,/tmp
and/var
. Set their size according to your needs:/boot
should be 100 – 500 MiB/var
and/tmp
should be > 5 GiBIf you doubt about which device for boot loader installation to choose, leave it default. It would be set by installer. But sometimes it does mistakes. Let me guide you how to deal with it:
/dev/sda
intact./dev/mapper/...
Be sure that you select entire disk, not a single partition!
After all, you should see your disk like this:
As LiveWireBT noticed in comments, it is recommended to place root partition onto primary partition on MBR scheme disks. However, it belongs to personal taste. Sometimes it's even better to put
/boot
directory on primary and leave root on logical partition.That's all! You can now click Install Now and proceed to the installation.