If I chose "Replace Windows with Ubuntu", do I lose the other partition too?

I am a newbie in linux. I wanted to install ubuntu to my desktop. I currently have two partitions, Windows 8 in installed on one, and i have some important files in another partition. While installing ubuntu, if I chose "Replace Windows 8 with Ubuntu", do I lose the other partition too?

And are there other ways to leave the other partition as it is, and install ubuntu in the partition where windows was installed.


Solution 1:

Update for Ubuntu 18.04 and above

New installations of recent versions of Ubuntu does not use a separate swap partition any more. They use a swap file by default.

Original Answer

If you choose "Replace Windows 8 with Ubuntu" it will format the whole physical drive and you will lose your data partition! See: How do I recover my accidentally lost Windows partitions after installing Ubuntu? for an example of someone who made this mistake.

To do what you want, you have to take matters in your own hand and choose "Something Else..."

This choice will let you choose which partition to delete and reformat. A slip of your finger may cost your data. Make two backups in external media before going any farther.

The partition structure used by Ubuntu is different from Windows. You will need at least two partitions, the root (also known as /) and the swap, to run Ubuntu properly. The root is to be ext4 format with mount point / and the swap has its own format and requires no mount point. Creating a separate partition in ext4 format with mount point /home is also a good idea. This is the rough equivalent to Windows data partition. It needs to be in ext4 format as it keeps your personal configuration files as well, and those need specific permissions.

See partitioning suggestions for some details on Ubuntu specific partitions.

See Does it make sense to create swap partitions for new installations nowadways?

Also see https://help.ubuntu.com/community/PartitioningSchemes

Hope this helps

Solution 2:

You will be able to choose in which partition you want to install Ubuntu. If you have a "file partition" where you keep all your files, this should not be affected. If you are not sure, you can always run ubuntu from a flashdrive in live mode, make sure everything works fine from there and load Gparted (use the dash search and the program will already be there). Gparted will give you greater control over the partitions.

Hope it helps.