4

I upgraded to Ubuntu 18.04 LTS and my disk partition is the following picture.

enter image description here

I want to have partition now. I booted with Ubuntu 16.04 LTS CD. I need help to get proper disk partition without having any problem. Thanks

marked as duplicate by Fabby, David Foerster, Community Apr 30 '18 at 18:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

Ubuntu 18.04 defaults to using a swap file instead of the previous method of having a dedicated swap partition. This makes it easier to partition new installations of 18.04 than it was before.

Assuming you are going to do a fresh installation of 18.04, and also assuming you aren't trying to dual-boot with this same drive, here's what you should do:

  1. Boot to a Ubuntu 18.04 installer (probably using a usb drive)

  2. Delete the three existing partitions from your hard drive: /dev/sda1, /dev/sda2, and /dev/sda3.

  3. Create one new partition, /dev/sda1, that uses all the available space. Make the new partition primary (not extended), format it as ext4, and have it mount the root of the system (/).

  4. Install ubuntu, selecting to put the bootloader on /dev/sda

  • Thanks @64pi0r for your answer. I've already installed 18.04 so any changes you recommend. Thanks. – MYaseen208 Apr 30 '18 at 18:08
  • 1
    If you create partitions in advance you must have the ESP - efi system partition for correct UEFI boot. And drive should be gpt partitioned. UEFI/gpt partitioning in Advance: askubuntu.com/questions/743095/… – oldfred Apr 30 '18 at 18:22

Not the answer you're looking for? Browse other questions tagged or ask your own question.