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 am new to linux/ ubuntu and just downloaded the v11 of ubuntu to learn linux. I faced this "No root file system is defined" error while trying to install it. This is how I was proceeding -

  1. Downloaded ubuntu v11 from the ubuntu.com website, wrote the iso into a bootable cd, and then got into the linux installation process on restarting; everything fine till here.

  2. In one of the screen during installation, there are three choices - install alongside windows, something else etc.. Since I have windows 7 in the C drive, I selected the first option - "Install alongside another OS".

Let me interrupt here to give my existing system details - HardDisk size: 640GB. Number of existing partitions - 5 C drive - label windows - 160GB - has windows 7 installed D drive - label linux - 160GB - does not have any data E drive - label backup - 100GB - has some data F drive - label entertainment - 100GB - has some data G drive - label work - 90GB - has some data All of the above are in NTFS format.

  1. In the screen that follows, an image is shown with 2 parts and each part is shown to have size equal to 80GB. There is a horizontal slider in the middle of these two images, with which I can resize the partitions. The right side partition is labeled Linux. There is also an option to do 'advanced partitions'.

  2. On clicking advanced partitions on the above screen, a new screen is shown in which the partitions existing in my computer are shown - but the labels are different. I see that there are two partitions with size = 160GB each (as expected), and so I assumed that the first 160GB would be my existing C drive and the second on would be the partition which I had labeled as linux (drive D). So I selected the linux partition and clicked on proceed/ install now, and then this error was shown - "No root file system defined".. and I cannot proceed after this.

Please let me know two things here- 1. During the screen in point number 3 above, the image with slider was shown. Which partition (drive c: or d: or anyother) is being referred to here? Which one am I actually resizing - is it the existing c: drive which has windows 7 installed already, that is getting shrunk and then ubuntu getting installed in the remaining space?

  1. What does ""No root file system defined" error mean? How do I select the proper partition and continue with the installation?

PS. I had already partitioned my drives as mentioned above, and the D drive with 160GB was specifically left free for installing ubuntu. I would like to Select D drive during setup and install ubuntu here, while still keeping the already installed windows7 in C drive.

Thanks!

share|improve this question

8 Answers 8

up vote 16 down vote accepted

To answer your first question, the partition proposed to be split on the first screen was your windows partition. Since you already have created a partition for Ubuntu, you don't want to do that.

You say that you selected the partition on the advanced screen, but simply clicking on it does nothing; you need to click on the edit button and assign the partition a filesystem type ( use ext4 ) and mount point.

The error is because you did not assign any filesystem to be mounted in the root directory ( / ) and therefore, there is nowhere to install to.

share|improve this answer
    
thanks @psusi for answering both questions. Well, I am yet to try out the actual installation, but then going by the other responses and yours, it seems I was missing the "/" :) Thanks everyone. –  arun nair Nov 19 '11 at 4:59
    
Thank you. It really helped :-) –  Priyank Thakkar Aug 11 '13 at 6:01
    
Helped a lot. Thank you. –  Amin Mohamed Ajani Dec 24 '13 at 11:10

Make sure that the partition file system you wish to install Linux, Ubuntu or Backtrack on it is ext4, ext3 or ext2, and not FAT32 or NTFS.

Then mount / on it:

  1. During the installation process press "change" on the partition you wish to use

  2. Make sure "do not use this partition" scroll is not chosen, scroll to ext4, ext3 or ext2

  3. On the "mount" field write /

  4. Click ok, then next a message will appear saying something like "swap area was not defined, do you wish to continue or choose a swap area?", click "ok" and continue or click "go back" and choose another partition and click change, on the file system scroll choose "swap" and click "ok" and next

This will solve both "no root file system is defined" and the "swap area" message, if you still get the swap area message then on step 4 mount /swap to the partition

share|improve this answer
    
if you take a look at this you will see that the partition file system is ext4 –  Errol Fitzgerald May 15 '12 at 17:14
    
@ErrolGongson You need to set the mount point in the installer. This is the cause of our error message. –  hexafraction Aug 12 '12 at 20:14
1  
Like this answer better - explains what needs to be done. –  Samik R May 27 '13 at 1:55

To anyone who stumbles acorss this question...this was my solution.

sudo apt-get remove dmraid
share|improve this answer
    
This fixed it for me as well –  William Z Sep 2 '12 at 21:45

continuing from @binW's answer,

If you are ready for some adventure, which might become a nightmare if proper caution is not followed.

enter image description here

enter image description here

enter image description here

You need to define the mount point specifically as / for it to function as root file system.

enter image description here

Swap you can keep, but literature tell you to keep it!! FYI, I don't have a swap.

Image source

share|improve this answer

If you find yourself having a empty partition list during the installation, you might have a problem with the dmraid module which is loaded if your system has an RAID controller (build in).

I had this issue during the installation and after pressing Ctrl+Alt+F1 to switch to the console, ran this command:

sudo apt-get remove dmraid

switched back (Ctrl+Alt+F7), I could continue the installation and had my partitions listed.

share|improve this answer

You must create a swap partition and space for the filesystem (ext4) partition with the '/' sign as the root filesystem.

share|improve this answer
    
Thank you Ashkan. Adding the "partman-auto/method string regular" and "partman-auto/disk string /dev/sda" helped to solve the above problem. –  shiva.nayak.mdn Jan 19 '12 at 10:11

Ubuntu, or any Linux distro for that matter, requires at least two partitions to run. One is called swap and is used as swap space for virtual memory. It is not mounted any where. The other partition is used for root file system and is mounted to '/' i.e root of the file system tree. If you are not familiar with the linux filesystem and dont know what mounting means in context of linux then plz read this. It will help you understand these concepts.

Now about the error that you see. It is because you are not defining any partition for the root file system. As you have said that you are a new user, I would recommend that you just simply delete the partition that you have reserved for Linux (using windows) and then while installing Ubuntu select to use all available free space for Linux.

share|improve this answer
1  
swap is not needed now-a-days...if you don't need to hibernate... –  Vineet Menon Nov 18 '11 at 12:30
    
Keep the swap partition just in case. –  Engels Peralta Nov 18 '11 at 13:07

Maybe you have a problem with the ISO you downloaded. Try to find the MD5 of the .iso in the site and compare with the one you downloaded.

I already had Mandriva Free 2010 on my hard drive when I installed Ubuntu 12.04, and in the installation everything worked fine for me.

share|improve this answer

protected by Community May 31 '13 at 19:08

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

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