8

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.

10
  • 3
    I don't recall exactly, but I do think you will loose all other partitions as well. Before you proceed in any way, take 2 backups. – don.joey Jun 10 '13 at 13:28
  • @Private : Is it possible to format the partition where windows used to reside , and install ubuntu on that partition only without touching any other partition – cipher Jun 10 '13 at 13:32
  • I didn't use a LiveCD myself so am not familiar with the option you're talking about - but I don't see any reason why it should affect any partition apart from the one you're installing to - unless you're adding a new partition for swap. (Backups before installing are, of course, never a bad idea though! – Jez W Jun 10 '13 at 13:47
  • @JezW : Is is really necessary to use SWAP in linux? IF not, then i could format my first partition and create a root mount point there – cipher Jun 10 '13 at 13:50
  • 1
    @cipher it does of course. – don.joey Jun 10 '13 at 14:31
13

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

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.

1
  • I want to permanently use ubuntu, and not lose my files in the other drive. any other solutions? – cipher Jun 10 '13 at 13:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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