How to Configure Grub2 to Dual-boot Both Windows and UbuntuBSD

The community behind the Ubuntu flavor that looks to bring together both the FreeBSD Kernel and Ubuntu Linux has been continuously vying for its claim to be an official Ubuntu flavor with the launch of its first forum few weeks ago.
The reason behind the creation of the forum is to have a discussion platform where users are given free reign to share their knowledge and suggest the route they would want the upcoming operating system to take as it attempts to merge the renowned Ubuntu Debian with the FreeBSD kernel.
The forum is up and running and users already have it populated with questions, suggestion, and guides on how to accomplish numerous tasks. A post that got many hits is the one that instructs users on how to install the Ubuntu BSD alongside Microsoft’s Windows operating system by configuring the Grub2 bootloader.

UbuntuBSD

The method can be implemented on not the just Windows but any other operating that users want to use side by side with Ubuntu BSD.
The post reads: “As you may know already, os-prober with grub2 is currently not working, as a result we have no auto detection in dual booting various operating systems with ubuntuBSD’s GRUB2 implementation. So we had to manually specify the grub2 configuration to boot for example.: Windows,”

ubuntuBSD logo
The steps are pretty basic for those familiar with commands on Linux and other Unix-like systems but would be a bit tricky for those new to it.
What you first need to do is open the /etc/grub.d/40_custom file as root or use the sudo command to open a nano text editor. For example, sudo nano /etc/grub.d/40_custom, after which add the following the lines to it.
Code: Select all
menuentry “Windows”{
set root=(hd0,1)
chainloader +1}
It is important to forget to change the default Grub configuration behaviour in /etc/default/grub, if done correctly, it should look like this:
Code: Select all
GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false
GRUB_TIMEOUT=10
The last thing you need to do is to generate a Grub configuration file by executing the following command
grub-mkconfig -o /boot/grub/grub.cfg

About The Author
Lamin Kanteh
Lamin loves smartphones and was introduced to the world of mobile devices with Android. Ubuntu is new to him, but he is enjoying writing about it so far.

Leave a Response