Saturday, October 10, 2015

How to boot into BOSS from the Grub Rescue prompt?

This guide will detail how to boot from the "grub rescue>" prompt for grub2 users.
Boot Procedure:
1. Locate the BOSS partition and the folder containing the Grub modules.
The Grub folder containing the modules must be located so the correct modules can be loaded. This folder was created during BOSS installation and should be located in the BOSS partition. This folder would be located at either (hdX,Y)/boot/grub or (hdX,Y)/usr/lib/grub/i386-pc.
ls                               # List the known drives (hdX) and partitions  (hdX,Y).

ls (hdX,Y)/                      # List the contents of the partition's root.

ls (hdX,Y)/boot/grub             # Normal location of the Grub 2 modules.

ls (hdX,Y)/usr/lib/grub/i386-pc  # Alternate location of the Grub 2 modules.

2. Load the modules
set prefix=(hdX,Y)/boot/grub
insmod linux
 set prefix=(hd0,1)/boot/grub 
 insmod linux
3. Load the Linux kernel and initrd image using the following commands.
 set root=(hd0,1)
 linux /boot/vmlinuz-2.6.32-5-686 root=/dev/sda1
 initrd /boot/initrd.img-2.6.32-5-686