I have Ubuntu 10.04 on my computer, with Windows 7 next to it. Instead of upgrading to 10.10, I feel like doing a clean install. However, I don't want to erase my Windows, even though I barely ever use it. My question is: how would I remove Ubuntu 10.04 from my drive and install Ubuntu 10.10 in place, without losing any space or anything, or losing Windows 7?
This option actually exists in the installer. When it comes to the partitioning section of the installation, there is an option to overwrite an existing Linux distro and replace it with the new one. Just select that and you're on your way.
First, make a back up of Windows to an external device such as a DVD or USB hard drive, if you have not already done so. You'll be installing an operating system, which has inherent risks, and I'd hate for you to lose important data.
Start up the Ubuntu 10.10 desktop CD installer, and click through all of the steps until you get to partitioning. Select advanced partitioning and continue to the next page.
Now, select the partition that was created for Ubuntu 10.04. It will be an ext4 filesystem, and, if you don't have a recovery partition for Windows, it is likely to be
/dev/sda2
. Hit edit, then select/
for the mountpoint and make sure the format button is not checked. Dismiss the dialog and press next.You should see a warning that continuing will remove the contents of system directories, but will preserve the contents of
/home
. Press continue and complete the rest of the installation.But if you wanted to know the manual way of doing it, you would just reformat your linux partition, and then install to it. That's why it is recommended to keep personal data (e.g. home directory) on separate partition.