How do I partition a drive so that the data is separate from the operating system?

Different people have different views on the number of partitions to have in Linux (or Ubuntu).

If you go with the default, the installation process will create a root partition with mount point / and a Swap partition. However, since you want the data to be separate, you should select "Something Else" option during installation. This is the advanced option where you get to delete everything and make your own partitions.

I recommend you make 3 partitions:

  1. One 30GB / partition format ext4
  2. One 4GB Swap partition format Linux/Swap
  3. Rest of the drive as /home partition format ext4

If your computer came with UFEI rather than a BIOS, you may need keep the partition for UFEI.

The / partition will have the OS as well as all the applications you will download and install in the future. If you are a web developer, or do some server related work, those things will be in the / partition as well. However, I find 30GB is more than enough for normal desktop use.

The swap partition is getting less important with 4GB or more RAM. A small swap partition keeps the system run smoothly. Another reason one needs a swap partition is hibernation. Hibernation is disabled by default, as it does not work in all laptops. You may later experiment with it and want to have it enabled. Having a swap partition will be useful then.

The /home partition will have all the users' data and personal settings. Photos, music, and videos can take up a lot of space. So I recommend giving the rest of your hard drive to /home.

It is possible to do a default installation and then at a later date, shrink the / partition and create a separate /home partition and move all the data there. This gets more difficult as your hard drive gets more full. There is always a chance that something may go wrong while moving data between partitions, and you will lose your data. So it is much safer to create the partitions when there is no data in the new computer.

Hope this helps.


If you want to keep data and operating system separate, create a / that is 50 G. And stick the rest in /home.

All of the data will be in your home directory.

You can resize the partitions later should you need to, but it's a PIA. 50G is more then enough if all of your data is in home.