Many thanks to
The examples provided are just examples. Be sure to change partition numbers and the like according to your systems specs. Follow the solutions provided by this document at your own risk.
GRUB loading stage 1.5 GRUB loading, please wait...
After this message, the system stops. If you attempt to boot the system using a grub floppy, the problem disappears.
According to
Tell your BIOS to not boot from your floppy first.
# CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grub
12 : Invalid device requested.
This error is returned if the device strings syntax is correct but other than that, an error occurred that isn't defined by any other error.
When you installed grub in your boot record using the interactive commands, did you execute the two lines below in the grub prompt?
grub> root (hd0,0) grub> setup (hd0)
(hd0,0) must be replaced with your boot partition and (hd0) with the HDD you have chosen. Remember that (hd0) will install the bootloader in the Master Boot Record of the first hard disk, the primary master.
This error can occur in two different stages of the GRUB configuration, either during the initial configuration (installing GRUB in the master boot record) or after booting the system and attempting to launch Linux (or any other entry).
grub> root (hd0,0) Filesystem type is xfs, partition type 0x83 grub> setup (hd0) Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 15: File not found
Booting 'gentoo Linux' root (hd0,0) Filesystem type is ext2fs, partition type 0x83 kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/sda3 vga=792 Error 15: File not found Press any key to continue...
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.
Frequently, the error notes a missing kernel image file. Make sure that the file it is referring to exists on your boot partition.
To find out the exact name of your kernel, boot from the installation cd, mount your root and (if applicable) boot partition. Next, chroot into your Gentoo system and do a listing of the available files to see what kernel images you have available:
# cd /boot # ls
This will list all the kernels that you've got on your boot partition.
If your kernel is missing make sure that you compiled a kernel (using
# cd /usr/src/linux/ # make menuconfig # make
And that you copied it to your boot partition:
# cp /usr/src/linux/arch/i386/boot/bzImage /boot
Verify that the name of the kernel is exactly the same as the one mentioned in
your
Another reported mistake is to have the BIOS ignore the disk on which the kernel or grub stages reside. Also, the partition on which grub stores its stages should not use a software RAID-5 (or other striping technology) configuration.
First, verify that the
If you are certain they are valid, then you
(Execute this from within the chrooted environment) # echo "=sys-boot/grub-0.93.20031222" >> /etc/portage/package.mask # emerge grub -p
You could also try to use the
(The --root-directory is needed if you are using a separate boot partition, otherwise you should leave it out) # grub-install --root-directory=/boot /dev/sda
When all this fails, your boot partition may be corrupt. Check the partition for errors:
(Make sure the boot partition, /dev/sda1 in this case, is unmounted) # fsck -y /dev/sda1
root (hd0,0) filesystem type unknown partition type 0x7 Error 17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
Be sure to check your root(x,y) settings in your grub.conf.
Also, if you are trying to boot Windows, make sure that your
kernel (hd1,4)/bzImage root=/dev/sdb7 Error 18: Selected cylinder exceeds max supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).
Try an update for your BIOS and/or move your boot partition to the front (or at least into the appropriate range).
GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB ...
According to
Another possibility is that you had Grub installed on your MBR and tried
reinstalling it (for instance due to hard disk changes) but used the wrong
While trying to install grub, it hangs after displaying the following line:
# grub Probing devices to guess BIOS drives. This may take a long time.
One reported cause was an exotic configuration of disk devices, like ultra/non-ultra DMA disks on one cable.
When installing grub, it hangs:
# grub(At this stage, the installation stops)
If you haven't got a floppy drive, have you used the --no-floppy switch?
# grub --no-floppy
The system hangs after displaying the following line:
Uncompressing Linux... Ok, booting the kernel.
Strictly speaking, this is no grub error. One possible cause is that ACPI is not working correctly but is enabled in the kernel. Try to disable it in your bios or in your kernel.
When booting the system, you receive a grub prompt instead of a list of entries
you have defined in your
Mount your boot partition and verify if the
# mount /dev/sda1 /mnt/gentoo/boot # cat /mnt/gentoo/boot/grub/grub.conf
Also make sure that the
# ls -l /mnt/gentoo/boot/grub/menu.lst lrwxrwxrwx 1 root root 9 Mar 7 14:00 /mnt/gentoo/boot/grub/menu.lst -> grub.conf
If not, recreate the symbolic link:
# cd /mnt/gentoo/boot/grub # ln -snf grub.conf menu.lst
If this is the case, reinstall grub:
(Run from within the chrooted environment) # grub-install --root-directory=/boot /dev/sda
When running
# grub-install --root-directory=/boot /dev/sda Could not find device for /boot/boot: not found or not a block device
Check that you didn't forget the following:
# grep -v rootfs /proc/mounts > /etc/mtab
After hitting Return at the Grub menu during the system boot, the system reboots.
Try disabling framebuffer support in your kernel. If this does not help, disable APM and ACPI.
After hitting Return at the Grub menu during system boot, the screen blanks out, but the system is responsive (for instance, your numlock led is switcheable).
Turn off framebuffer (typically remove
When booting the system, you do not see that spify Gentoo splashscreen.
First of all check if the splashscreen file you are referring to in your
After selecting the Windows entry, the system refuses to boot without any clear reason as to why.
title Windows XP map (hd0) (hd1) map (hd1) (hd0) chainloader (hd1,0)+1
The situation described below is only relevant for grub-0.95.x at the moment of installing grub at the boot sector.
grub> root (hd0,0) grub> setup (hd0) Segmentation fault
This is a known bug related to this problem and has been fixed
in grub 0.96. It is also known that grub 0.94 r1 and grub 0.94 r2
should work correctly. If that fails too, you can try to emerge
grub-static which is currently stable on amd64 and unstable on x86
(~x86). Check out bug