Ubuntu – How to create partitions in Ubuntu while installing

12.04partitioningsystem-installation

I had Windows 7 crashed. So I wanted to install 12.04. While installing, I am not able to create a new partition after deleting all earlier partitions. I mean I am able to create but not able to understand the technical jargons as I am new to any version of Linux.

Please help me with the steps for creating to create three partition of 50GB, 50GB and 150GB. I want my Ubuntu files to be in one of the 50GB partition or suggest any better way to partition. (I have only 1 hard disk of 250GB in my laptop).

If possible please explain to what the technical terms mean.

Best Answer

There are two kind of disk in terms of legacy partition table.

  1. Primary - Generally OS are use this kind of partition.
  2. Extended - A special type of primary partition that holds many logical partition.

Max number of primary partition (including extended partition) can be 4. Extended partition doesn't take much space. Consider its a packing box and your logical partitions are packed inside it.

Filetypes of disk parition:

  • These defines how the files will written in disk. Earlier windows (upto xp) used FAT, FAT32. Newer windows file systems called NTFS.

  • Unix / Linux uses different file types like ext, ext3, ext4. In addition linux uses a partition with special format called swap.

Now I am assuming you want to have dual boot with windows. So first 50 GB is for ubuntu, second 50 GB for windows system and rest 150 GB for data.

Now ubuntu requires a swap partition (not necessarily if you have big amount of ram). Its generally calculated 1.5x RAM SIZE. If you have a 2GB RAM, preserve 1 GB for SWAP, have 4 GB RAM , preserve 512MB. Its your choice. Good amount of SWAP improves performance.

Steps

  1. Click on unallocated space, click on new. Enter size as 48GB (you have to enter in mb), choose file system type as ext4, mount point /, partition type primary This means ubuntu root partition.

  2. Click on unallocated space, click on new. Enter size as 2GB, choose primary partition, file system type SWAP.

  3. Click on unallocated space, click on new. Enter size 50 GB, choose primary partition, file type ntfs (I don't remember whether this option available, you can use gparted later to format if its not available .)

  4. Click on rest unallocated space, click on it. Choose ntfs as file system, partition type logical and create it. This will automatically create extended partition.

Explanation:

  • Why logical drive in ntfs? Its because it will be available to both windows and ubuntu. Windows can't work with ext file system.

  • If you don't want windows at all, you can create all file system with ext4. But remember if you ever try to install windows, you have to reformat everything. Otherwise those drives won't be visible.

  • If you don't want to install a windows system, in step 3, choose logical instead of primary.