Fix 'No Root File System is Defined' Error in Linux
In this article
To fix the "No root file system is defined" error in Linux, you must manually assign the root (/) mount point to a partition in the installer's partitioning tool. This error appears during installation when the installer cannot find or has not been told which partition should hold the root filesystem.
What Causes This Error
This error typically occurs in Ubuntu, Debian, Linux Mint, and other distributions that use the Ubiquity or Calamares installers. It happens when you select "Something else" (manual partitioning) but do not set a partition's mount point to /, or when you choose automatic partitioning on a disk with an unsupported layout. The installer requires a root partition to proceed; without it, the installation cannot continue.
How to Fix It in the Installer
The fix is straightforward once you understand the partitioning screen. Follow these steps:
- When you reach the "Installation type" screen, choose Something else (or Manual partitioning in other installers).
- Select the partition you want to use for the root filesystem. If you are unsure, pick a partition with enough free space (at least 20 GB is recommended).
- Click Change (or Edit).
- In the dialog, set Use as to Ext4 journaling file system (or another Linux file system like Btrfs or XFS).
- Set the Mount point to
/(a forward slash). This tells the installer that this partition is the root of the file system tree. - Optionally, set the Size (if you want to resize) and check Format if you want to erase the partition.
- Click OK and then Install Now.
If you do not see a partition list, you may need to create a new partition table first. Select the disk and click New Partition Table — this will erase the disk, so back up any important data first.
What If There Is No Free Space?
If the disk is full or has no unallocated space, you must shrink an existing partition. In the manual partitioning screen, select an existing partition and click Change, then reduce its size to create free space. After that, select the free space and click the + button to create a new partition, set its size, and assign the / mount point.
Be cautious: shrinking a partition can take time and may fail if the partition is heavily used. Always back up important files before modifying partitions.
How to Choose the Right Partition
If you are installing alongside another operating system, you need to identify which partition is which. The installer shows partitions with labels like /dev/sda1, /dev/sda2, etc. The device name (sda, sdb) indicates the disk, and the number indicates the partition. Use the Size and File system columns to identify them. If you are unsure, you can run lsblk or fdisk -l in a terminal from the live session to see the disk layout.
For a typical single-boot installation, you can let the installer use the whole disk by choosing "Erase disk and install Ubuntu" — that avoids the error entirely. Manual partitioning is only needed for dual-boot or custom setups.
Common Mistakes and Misconceptions
A common mistake is setting the mount point to /home or /boot but forgetting the root /. Every Linux installation needs a root partition. Another misconception is that the error means the disk is broken — it is almost always a configuration issue in the installer.
Some users confuse the root partition with the EFI system partition (ESP). The ESP is a small FAT32 partition (usually 100–500 MB) that holds boot loaders; it is mounted at /boot/efi on UEFI systems. It is not the root partition. If you are on a UEFI system, you also need to ensure an ESP exists and is set to Use as: EFI System Partition.
What to Do If the Error Persists
If you have set the root mount point and still see the error, try these steps:
- Check that the partition is formatted (the Format checkbox is ticked).
- Ensure you have not accidentally set the mount point to a subdirectory like
/root(that is the root user's home, not the root filesystem). - If you are using a RAID or LVM setup, make sure the logical volume is properly configured and has a mount point.
- Try a different file system type (e.g., ext4 instead of Btrfs).
- Reboot the installer and try again, sometimes the partition table is not refreshed.
If you are installing on a brand-new disk, create a new partition table first. Some disks come with a GPT or MBR label that the installer may not recognize; creating a new one resolves that.
Frequently Asked Questions
Why does the installer say "No root file system is defined" even though I selected a partition?
This usually happens because you selected the partition but did not set its mount point to /. The installer needs an explicit mount point; simply selecting a partition is not enough. Open the partition's settings and type / in the Mount point field.
Can I install Linux without a root partition?
No, a root partition is mandatory. The root partition holds the entire Linux file system (except for separate mounts like /home or /boot). Without it, the system has nowhere to install the base system files.
What is the difference between / and /boot?
The root partition / contains all system files, applications, and user data (if /home is not separate). The /boot partition contains the kernel and boot loader files. On most modern systems, /boot is not necessary as a separate partition; it is usually a directory inside the root partition. You only need a separate /boot for specific setups like LVM or full-disk encryption.
Will I lose data if I set a partition as root and format it?
Yes, formatting erases all data on that partition. Only format a partition if you are sure you do not need the data on it. If you are dual-booting, make sure you select the correct partition — double-check the size and existing file system before formatting.
Does this error occur on all Linux distributions?
No, it is most common in distributions that use the Ubiquity installer (Ubuntu, Mint, etc.) or Calamares (Manjaro, etc.). Other installers like Anaconda (Fedora) or the Debian installer handle partitioning differently and may not show this exact message, but the underlying requirement for a root partition is universal.
What if I want to use a separate /home partition?
You can create a separate partition for /home and set its mount point to /home. You still must set the root partition to /. The installer will then put your personal files on the /home partition, which can be useful for reinstalling without losing data.