GRUB Dual-booting Arch & Debian: Unable to Add Debian Entry

Abstract: Enable GRUB OS Prober by setting GRUB_DISABLE_OS_PROBER=false and regenerating the config to detect Debian in a dual-boot setup.

Created: 2026-08-14 by

To add a Debian entry to the GRUB bootloader on an Arch Linux system, you must configure grub-mkconfig to detect other operating systems by editing /etc/default/grub. Set the GRUB_DISABLE_OS_PROBER=false variable, as modern GRUB versions disable OS detection by default for security reasons. After saving the configuration, run sudo grub-mkconfig -o /boot/grub/grub.cfg (or the EFI equivalent path) to regenerate the menu.

Understanding the OS Prober Security Feature

The primary reason Debian fails to appear in the Arch GRUB menu is not a broken installation or incorrect partitioning, but a deliberate security feature introduced in recent versions of GRUB. The os-prober tool is responsible for scanning disks for other operating systems and generating menu entries. However, due to vulnerabilities where malicious bootloaders could exploit the probing process, upstream GRUB developers disabled this functionality by default in many distributions, including Arch Linux. When you install Debian alongside Arch, the Debian installer correctly configures its own bootloader. If Debian was installed after Arch, it might have overwritten your Arch GRUB configuration. If Arch was installed last, it likely reset the configuration without probing the Debian partition. You do not need to reinstall GRUB manually or edit complex scripts. The solution lies in re-enabling the automatic detection mechanism through the main configuration file. This approach is safer and more maintainable than creating custom static entries, which break every time the kernel updates. For more context on GRUB behavior changes, see our article on Fixing Boot Issues with Bootloader (Grub) on Arch Linux.

Enabling OS Detection in Arch Linux

To resolve the missing Debian entry, you need to modify the default GRUB environment variables. This process involves editing a single text file that controls how GRUB behaves during configuration generation. First, open the GRUB default configuration file using your preferred text editor with root privileges. In Arch Linux, this file is located at /etc/default/grub. Use a command such as:
sudo nano /etc/default/grub
Once the file is open, locate the line that begins with GRUB_DISABLE_OS_PROBER. It may be commented out with a hash symbol (#) or set to true. You must change this value to false. If the line does not exist, you can add it manually. The final line should look exactly like this:
GRUB_DISABLE_OS_PROBER=false
This setting tells GRUB to allow the os-prober utility to scan for other operating systems despite the default security restrictions. Save the file and exit the editor. It is critical to ensure there are no trailing spaces or syntax errors in this line, as they will prevent GRUB from loading correctly.

Regenerating the GRUB Configuration

After enabling the OS prober, you must apply the changes by regenerating the GRUB configuration file. Simply rebooting will not work because the current running GRUB configuration remains unchanged until explicitly updated. Run the following command in the terminal:
sudo grub-mkconfig -o /boot/grub/grub.cfg
On UEFI systems, the output path might differ slightly depending on your mount points, but /boot/grub/grub.cfg is the standard location for most Arch installations. If your system uses a separate EFI System Partition mounted at /efi, the command would be:
sudo grub-mkconfig -o /efi/grub/grub.cfg
During execution, grub-mkconfig will invoke os-prober. You should see output indicating that it has detected the Debian installation. Look for lines mentioning "Debian GNU/Linux" in the terminal output. If successful, the new GRUB configuration file will contain a section for Debian, complete with the correct kernel paths and initramfs images. If you encounter warnings about secure boot, note that disabling OS prober does not affect Secure Boot status. However, if Secure Boot is enabled, ensure that your Debian kernel is signed or that you have enrolled the necessary keys, although this is less common in dual-boot setups where one OS is primarily used for development. For issues regarding video modes in GRUB, check our guide on Grub Not Showing Support for Possible Video Modes on Debian 12.

Verifying the Installation

Reboot your computer to verify that the Debian entry now appears in the GRUB menu. Select the Debian option to ensure it boots correctly. If Debian fails to boot, the issue is likely related to kernel parameters or filesystem mounting rather than the GRUB entry itself. Check the Debian system logs for errors. In rare cases, os-prober might fail to detect Debian if the partition types are obscure or if the Debian installation is on a logical volume within LVM. In such scenarios, manual entry creation via /etc/grub.d/40_custom might be necessary, but this should be a last resort. Most standard ext4 or btrfs partitions are detected automatically once the prober is enabled.

Frequently Asked Questions

Will enabling os-prober expose my system to security risks?

Yes, theoretically, because it allows the bootloader to execute code from other partitions. However, the risk is minimal on trusted local drives compared to network-exposed services. The security community recommends keeping this disabled unless you actively need multi-boot capabilities, in which case the convenience outweighs the theoretical risk.

How do I update GRUB after installing a new kernel in Arch?

You should always run sudo grub-mkconfig -o /boot/grub/grub.cfg after kernel updates to ensure the new kernel is available in the boot menu. Many users automate this with hooks, but manual execution guarantees that both the Arch and Debian entries reflect the latest system state accurately.

What if os-prober still does not find Debian?

Ensure that the Debian partition is formatted with a supported filesystem like ext4 or btrfs. If Debian is on a logical volume manager (LVM) setup, you may need to activate the volume group first. You can test detection manually by running sudo os-prober to see if it outputs the Debian path before regenerating the full config.

Can I use rEFInd instead of GRUB for dual-booting?

rEFInd is an excellent alternative for dual-booting Arch and Debian because it automatically detects kernels without needing OS prober hacks. It provides a graphical interface and handles multiple operating systems seamlessly. Installing rEFInd replaces the need for manual GRUB configuration entirely.

Does this method work for Windows dual-boot as well?

Yes, enabling GRUB_DISABLE_OS_PROBER=false works for any operating system detected on your disk, including Windows 10 or 11. This is the same fix applied when adding Windows to an existing Linux installation. See our related guide on Dual Boot Windows 10 and Arch Linux on Lenovo T430 with GRUB for similar configurations.

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