"No root file system defined" error while installing ubuntu
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 -
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.
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.
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'.
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:
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?
What does ""No root file system defined" error mean? How do I select the proper partition and continue with the installation?
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.
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.
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.
During the installation process press "change" on the partition you wish to use
Make sure "do not use this partition" scroll is not chosen, scroll to ext4, ext3 or ext2
On the "mount" field write
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
/swapto the partition
if you take a look at this you will see that the partition file system is ext4
@ErrolGongson You need to set the mount point in the installer. This is the cause of our error message.
continuing from @binW's answer,
If you are ready for some adventure, which might become a nightmare if proper caution is not followed.
You need to define the mount point specifically as
/for it to function as root file system.
Swap you can keep, but literature tell you to keep it!! FYI, I don't have a swap.
This was it for me. Thank you! Courious why a blank value in that dropdown is even an option... "/" should just be the default!
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.
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.
Swap is needed!!! However, newer versions of Ubuntu use a swap file instead and a swap partition is only needed if you hibernate. I don't care what anybody tries to tell you, swap is needed to prevent your ram from maxing out. If you want to speed up read write time, consider using a separate drive for swap or just switch to a SolidState drive. Eliminating swap can cause endless disk paging that can grind your system to a halt under heavy ram usage.