As i've made Arch Linux my Primary OS, i was faced with a task of adding a Menu Entry to GRUB2 so that i could boot into my secondary OS ( Gentoo), by just selecting which one to boot to on Grub2 menu. This will work for any Linux distribution you want to dual boot with Arch Linux.
First check the uuid of the root partition that belong to Linux os you would like to add to grub entry. Use blkid command:
Now mount root partiton for that Linux system and check the name of executable Linux kernel under /boot directory.
Once you have those two information that we need, we can now configure Grub menu entry.
Then update grub to generate new grub.conf file
First check the uuid of the root partition that belong to Linux os you would like to add to grub entry. Use blkid command:
sudo blkidUuid for the root partition of my Gentoo is 242a7abb-3547-4504-a9f8-bfbc479a3f0e
Now mount root partiton for that Linux system and check the name of executable Linux kernel under /boot directory.
Once you have those two information that we need, we can now configure Grub menu entry.
vim /etc/grub.d/40_customThen add the following lines according to your specifications.
menuentry "Gentoo Linux" {Replace 242a7abb-3547-4504-a9f8-bfbc479a3f0e with root partition's uuid for one you're adding, and /boot/vmlinuz-* with the location of your executable linux file.
search --set=root --fs-uuid 242a7abb-3547-4504-a9f8-bfbc479a3f0e
linux /boot/vmlinuz-* root=UUID=242a7abb-3547-4504-a9f8-bfbc479a3f0e rw quiet
}
Then update grub to generate new grub.conf file
grub-mkconfig -o /boot/grub/grub.cfgThat's all. You should see entry on grub menu when you reboot, You may also look at:
How to Setup built-in Fingerprint reader authentication with PAM on any Linux
Installing,Configuring and Customizing Zsh on Linux
How to Auto-mount USB and External storage devices with rw in Arch Linux
How to Install and Configure Fail2ban on CentOS 7, CentOS 6.x and Ubuntu 14.04
Tags
How to add new grub menu in Linux
Configuring grub.conf file to add new menu entry on Arch Linux
How to add Linux meny entry to GRUB2 menu
Arch Linux GRUB2 configuration.