Thursday, June 9, 2016

How to use manual partitioning during installation?


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:




  1. Boot into Ubuntu Installation media. This can be either CD or USB stick.

  2. Start the installation. Proceed to Step 4 and choose "Something else":
    Step 4 — Something else

  3. 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:
    free space


  4. (Recommended) Create partition for swap. Swap is the partition for keeping unneeded memory pages, like Windows swap. Also it can be used for hibernation.



    • Select free space and click +

    • Set parameters like on the picture below:
      Swap parameters


    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.


  5. 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.



    • Select free space and click +

    • Set parameters like on the picture below:
      Root fs parameters


    10 – 20 GiB should be enough


  6. 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)


  7. (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 GiB


  8. If 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:



    • If you use only one hard disk, select or leave /dev/sda intact.

    • If you use more than one hard disk with no RAID, select the one from which your system does boot. You can also select other disk and set BIOS to boot from it.

    • If you have RAID from which your system starts, it will be /dev/mapper/...


    Be sure that you select entire disk, not a single partition!



After all, you should see your disk like this:
Final disk layout


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.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...