Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I had an Ubuntu 9/Windows 7 dual boot. (I almost never use the Windows side, actually.)

Ubuntu was bugging me to update, so I tried it (backing up everything first). Somehow, the update failed (I think because someone turned the computer off at the socket half way through). The computer now refuses to boot into Ubuntu.

Now I have an Ubuntu 10.10 install disk. I want to use it to overwrite the existing Ubuntu installation, while leaving the Windows installation alone. I got as far as the advanced "select a partition" section, but I had no way of knowing which partition was which.

Edit to add:

What I have is

/dev/sda
  /dev/sda1   nfts
  /dev/sda2   nfts
  /dev/sda5   ext4
  /dev/sda6   swap

So, I want to leave the NFTS partitions alone (why do I have two of them?) and install Ubuntu 10.10 on /dev/sda5. Is that right? I'm not sure what /dev/sda6 is used for. What is a "swap area" anyway? I think I'll leave it alone.

So I selected /dev/sda5 and told the installer to use it as the "Ext4 journaling file system". The Install button lights up, but when I click it I'm told that no root file system is defined. How do I go about defining a root file system?

GParted shows this slightly differently:

Screenshot of GParted

share|improve this question
    
To clarify, by "socket" I mean something like stockphotopro.com/photo_of/plug/ACCTDX/Plug_and_socket__three. –  TRiG Dec 2 '10 at 20:18
    
I'm not going to be home for a few days, but I think I have enough information here to manage when I do get back to this. –  TRiG Dec 3 '10 at 13:03
    
Thanks for the help, guys. All the answers were useful, but I marked as correct the one I actually followed. It's installing now on the desktop as I type this on the laptop. –  TRiG Dec 6 '10 at 19:12

5 Answers 5

up vote 2 down vote accepted

Setup:

  • /dev/sda5 ext4 is your ubuntu partition,

Select it and set the filesystem to ext4. Set the mount point to / (this is what you missed and why the installer was complaining). If you check the box next to format you will get a clean install, if you don't check it ubuntu will not overwrite your /home folder, so all your files and settings should be there after installation

  • /dev/sda6 swap is your swap partition

Set its filesystem to SWAP (it will be formated, but this is OK)

  • /dev/sda2 nfts is your windows partition, leave it alone

  • /dev/sda1 nfts is probably some system partition from the OEM, also leave it alone.

What is a "swap area" anyway ?

Swap is used to store data if your RAM is full. It is also used to copy your RAM to if you hibernate your PC.

share|improve this answer

If you had multiple linux partitions and you don't remember the content per device names you will need to manually mount them and verify the contents. Boot from the live cd with the "try it without installiing" option, then launch a terminal and check the list of partitions:

sudo fdisk -l

Example output:

   Device Boot      Start         End      Blocks   Id  System
    /dev/sda5           72947       76593    29294496   83  Linux
    /dev/sda6           76594       80240    29294496   83  Linux

Checking the contents of /dev/sda5 :

sudo mkdir -p /media/sda5
sudo mount /dev/sda5 /media/sda5
gksudo nautilus /media/sda5
share|improve this answer

If you boot into the Live CD you can access System > Administration > Gparted. You can look at the filesystem type and your windows is NTFS while the Ubuntu partitions are likely ext3 or 4.

share|improve this answer
    
So anything in NTFS is Windows, and should be left alone, and everything else is fair game? filedump.ýes.info/UbuntuPartitions.png –  TRiG Dec 2 '10 at 20:50
1  
leave all ntfs and make changes to ext3 or ext4 –  FOSS DIVERSER Dec 3 '10 at 13:41

I just had to do this earlier today. What I did was I found out which partition was formatted as FAT and which was formatted as ext4. It was fairly obvious in the "Select partition" screen. I selected the ext4 partition for the installation partition.

share|improve this answer

How do I go about defining a root file system?

If you select manual partitioning, you can delete the sda5 (ext4) and sda6 (swap) partitions. This will give you a bunch of free space. Click on the free space and Add a partition. Size it to be about 2 GB less than the available free space. Select ext4 and in the Mount Point box select / which gives you root. Now the system tells you that you have a new ext4 partition and 2 GB of free space. Click on the free space, add a partition and, instead of the default ext4, select swap. Now, you have an ext4 partition where Ubuntu 10.01 will be installed and a swap area which Linux uses as temporary storage space when the operating system is running.

[I'm not sure if you need to delete and recreate the swap partition, but this process keeps things relatively tidy - Ubuntu will be (perhaps) sda7 and the swap partition will be the next available number (sda8).]

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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