Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Ubuntu with Separate Root and Home Drives

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can install Ubuntu with the root (/) and home (/home) partitions on separate physical hard drives. This setup isolates your personal files from the system, making upgrades and reinstallations safer. You'll need two drives (or an SSD + HDD combo) and a Ubuntu installation USB. The installer's manual partitioning option lets you assign each mount point to a different disk.

What You'll Need

  • A computer with two internal hard drives (or an SSD and an HDD).
  • A Ubuntu installation USB (created with Rufus, balenaEtcher, or the official Ubuntu installer).
  • Backup of any important data on both drives (the installer will erase them).
  • About 30 minutes of uninterrupted time.

Step-by-Step

  1. Back up your data. The installation will format the drives you choose, so copy anything important to an external drive.
  2. Boot from the Ubuntu USB. Insert the USB, restart your computer, and press the boot menu key (often F12, F10, or Esc) to select the USB drive. If you're unsure, check your motherboard or laptop manual.
  3. Choose “Try Ubuntu” or “Install Ubuntu”. Either works; “Try Ubuntu” lets you explore first, but you can start the installer from the desktop icon.
  4. Follow the installer until you reach “Installation type”. When asked, choose “Something else” (also called “Manual partitioning”). This is the critical step.
  5. Identify your drives. The partition table lists drives as /dev/sda, /dev/sdb, etc. Note the sizes to tell them apart. Your first drive (sda) will typically be the one where you want the system (root).
  6. Create the root partition on the first drive. Select the first drive's free space (or existing partition) and click the “+” button. Set size (e.g., 50 GB for root), choose “Primary” or “Logical”, and set “Use as” to “Ext4 journaling file system”. Set the mount point to /.
  7. Create the home partition on the second drive. Select the second drive's free space and click “+” again. Set the size to the rest of the drive (or as desired), choose “Ext4”, and set the mount point to /home.
  8. Optionally create a swap partition. If you have a third partition or want to use a swap file instead, you can skip this. If you prefer a swap partition, create one on either drive (size = RAM size or 2x RAM for hibernation) and set “Use as” to “swap area”.
  9. Set the boot loader location. The “Device for boot loader installation” should be the first drive (e.g., /dev/sda), not a partition. This ensures the system boots from that drive.
  10. Confirm the changes. Click “Install Now”. A summary will appear; verify that the root and home partitions are on different drives, then click “Continue”.
  11. Complete the installation. Follow the remaining prompts (timezone, keyboard layout, user account). When finished, remove the USB and reboot.

Common Mistakes

  • Assigning both mount points to the same drive. Double-check the partition table before confirming.
  • Forgetting to set the boot loader. If you leave it as the default (often the first drive), it usually works, but if you install to a second drive, the system may not boot.
  • Making the root partition too small. Root needs at least 20 GB for a basic system, but 50 GB is safer for applications and updates.
  • Not creating a swap space. If you have limited RAM, the system may freeze. Use a swap file or partition.

Tips

  • Use an SSD for root and a mechanical HDD for home to get fast boot times and large storage for files.
  • If you plan to reinstall Ubuntu later, you can reuse the same /home partition without formatting it (just select it and set mount point to /home, and uncheck “Format”).
  • Label your partitions (e.g., “ROOT”, “HOME”) during partitioning to avoid confusion.
  • If you're unsure which drive is which, look at the size and model in the partition table.

Troubleshooting

System won't boot after installation. Restart and enter the BIOS/UEFI settings. Check the boot order and ensure the drive with the boot loader (the one you selected) is first. If you installed to a second drive, you may need to change the boot priority.

“No root file system is defined” error. This means you forgot to set the mount point for the root partition. Go back and set / on one partition.

Home partition not mounting. After installation, if your home directory is empty or files go to root, the partition may not have been mounted. Check with lsblk in a terminal. If the partition exists but isn't mounted, you may need to edit /etc/fstab to add an entry. This is advanced; you can reinstall or seek help.

Installer doesn't show both drives. Some systems have drives that aren't detected due to RAID or NVMe settings. Go into BIOS and ensure the drives are in AHCI mode (not RAID) if they are SATA. For NVMe drives, they should appear by default.

If all else fails, restart the installer. The installer is non-destructive until you click “Install Now”, so you can safely go back and adjust partitions.

Frequently Asked Questions

Can I use an external drive for /home?

Yes, but it's not recommended because the drive may not be connected at boot, causing boot failures. Use an internal drive for reliability.

Will my files be safe if I reinstall Ubuntu?

If you keep the /home partition and don't format it during reinstall, your files will remain. However, always back them up, as mistakes happen.

Can I change the size of partitions later?

Yes, you can resize partitions using GParted from a live USB, but it's risky and can cause data loss. Back up first.

Is a swap partition necessary?

Not strictly; Ubuntu can use a swap file instead. But if you have limited RAM (less than 8 GB), a swap partition or file helps avoid freezes.

What if I only have one drive?

You can still separate / and /home as partitions on the same drive, but it won't give the same isolation benefit as separate drives.

Can I use a different file system like Btrfs or XFS?

Yes, Ubuntu supports several file systems. Ext4 is the default and most reliable for beginners. If you choose Btrfs, note that it has different features like snapshots.