Cant boot dual partition - GRUB issue

Abstract: Fix GRUB boot failure in dual-partition setups by chrooting into the new Ubuntu installation and running update-grub to regenerate correct boot entries.

Created: 2026-10-02 by

When adding a new partition for Ubuntu 24.04 causes GRUB to fail booting your dual-partition setup, the issue usually stems from mismatched UUIDs or an unupdated bootloader configuration. You can resolve this by chrooting into the new installation and running update-grub to regenerate the correct boot entries based on the actual filesystem identifiers.Diagnosing the Boot Failure

The first step is to determine exactly where the process fails. When you power on your machine, does the screen go black, or do you see the GRUB menu appear? If the menu appears but selecting the new Ubuntu 24.04 entry results in an error like "No bootable device" or drops you into a GRUB shell, the bootloader is present but misconfigured. If the system skips GRUB entirely and boots directly into the old OS or Windows, the BIOS/UEFI boot order may need adjustment, or the EFI System Partition (ESP) is not being recognized correctly.

In cases where the GRUB shell starts unexpectedly, it indicates that the bootloader cannot find its configuration files or the kernel image. This is distinct from issues where GRUB loads but fails to hand off control to the kernel due to initramfs errors. Understanding the difference between a GRUB startup failure and a module loading failure helps narrow down whether the issue is at the bootloader level or deeper in the system initialization.

Preparing the Recovery Environment

To fix the GRUB configuration, you must access the file system of the new Ubuntu 24.04 installation. The most reliable method is to boot from an Ubuntu Live USB. Once the live environment loads, open a terminal and identify your partitions. Use the command lsblk or sudo fdisk -l to list all block devices. Look for the partition that contains your root filesystem for the new installation. It is crucial to identify the correct partition by checking its size and label rather than assuming a specific path like /dev/sda1, as device names can change between reboots.

Once you have identified the root partition, mount it to a temporary directory. For example, if your root partition is sdb2, you would run sudo mount /dev/sdb2 /mnt. If you have separate partitions for /boot/efi and /boot, you must mount those as well. The EFI partition typically needs to be mounted at /mnt/boot/efi. Without mounting these critical directories, any subsequent commands will not interact with the correct parts of the new installation.

Binding System Directories

Before entering the chroot environment, you need to bind the virtual file systems so that the chrooted environment has access to hardware information and processes. Run the following commands in sequence:

  • sudo mount --bind /dev /mnt/dev
  • sudo mount --bind /dev/pts /mnt/dev/pts
  • sudo mount --bind /proc /mnt/proc
  • sudo mount --bind /sys /mnt/sys

These steps ensure that when you enter the chroot, the system sees the same hardware and process table as the live session, which is essential for generating accurate GRUB configurations.

Reinstalling and Updating GRUB

Enter the chroot environment by running sudo chroot /mnt. Inside this environment, you are effectively operating as if you are logged into the new Ubuntu 24.04 installation. The primary command to fix the bootloader is update-grub. This script scans the system for kernels and initial ramdisks and generates a new grub.cfg file in the EFI partition.

If update-grub reports errors, check the output carefully. Common issues include missing kernel images or incorrect UUID references. In some cases, you may need to reinstall the GRUB package explicitly using apt install --reinstall grub-efi-amd64 followed by grub-install. Ensure you specify the correct target device and EFI directory during installation. For instance, grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=ubuntu is a standard command for UEFI systems, but verify your architecture and mount points.

After updating GRUB, exit the chroot with exit and unmount the partitions in reverse order: sudo umount /mnt/sys, sudo umount /mnt/proc, etc. Reboot the system and remove the Live USB. The new Ubuntu 24.04 entry should now appear in the GRUB menu and boot successfully.

Preventing Future Boot Issues

To avoid this situation in future upgrades or installations, always allow the installer to manage the bootloader unless you have a specific reason not to. If you are performing manual partitioning, ensure that the ESP is correctly formatted and mounted before proceeding. Additionally, keep your BIOS/UEFI firmware updated, as older versions may have bugs related to handling multiple Linux installations or large storage devices.

If you encounter persistent issues after following these steps, consider checking the integrity of your EFI partition. Accidental deletion or corruption of the EFI partition is a common cause of boot failures that require recovery from scratch. Referencing guides on recovering deleted UEFI partitions can be helpful if your boot structure is severely damaged.

Frequently Asked Questions

Why does GRUB show "error: unknown filesystem"?

This error occurs when GRUB cannot read the partition containing the kernel or configuration files. It is often caused by using a filesystem type that GRUB does not support natively, such as Btrfs without proper modules loaded, or by having the wrong UUID hardcoded in the config. Running update-grub inside the chroot usually resolves this by detecting the correct filesystem and updating the config dynamically.

Can I fix this without a Live USB?

If your current system still boots, you can use the existing installation to repair the new one. Mount the new root partition and the EFI partition, then use chroot into the new partition and run update-grub. However, if neither system boots, a Live USB is necessary to access the file system and perform the repairs.

What if the GRUB menu doesn't appear at all?

If the GRUB menu is skipped, check your BIOS/UEFI settings to ensure the correct drive is set as the primary boot device. Sometimes, the EFI entry for the new installation is missing from the NVRAM. You can add it manually using efibootmgr from the Live USB, pointing to the shimx64.efi or grubx64.efi file in the EFI partition.

Is it safe to delete old Ubuntu entries from GRUB?

Yes, you can safely remove old entries to clean up the menu. Edit the /etc/default/grub file in the active installation and adjust the GRUB_TIMEOUT or use grub-customizer to hide unwanted entries. After making changes, remember to run update-grub to apply the modifications to the bootloader configuration.

How do I know if I am using UEFI or Legacy BIOS?

You can determine the boot mode by checking if an EFI System Partition exists. In the Live USB terminal, run lsblk -f and look for a partition with the FAT32 filesystem type and the boot, esp flags. If you see this partition, you are using UEFI. If there is no such partition and you rely on a boot sector in the MBR, you are likely using Legacy BIOS.

Tags: Linux Ubuntu GRUB

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More