Grub loading error 15 как исправить

What Is GRUB

GRUB or GNU GRUB is short for GRand Unified Bootloader. It is a boot loader used on multi-OS computers that provides users the choice to choose which operating system to boot from on the computer. Different operating systems may need varying boot loaders. For example, NTLDR is the boot loader for Windows NT operating systems, and LILO is the boot loader for Linux. As for GRUB, it is the boot loader for Windows and Linux and is generally used on computers that are with both Windows and Linux installations.

Here’s a quick view of common GRUB loading errors and corresponding solutions. Jump to the part you’re most interested:

Workable Solutions Step-by-step Troubleshooting
Fix 1. GRUB Loading Error 15 boot from the Live CD, and mount/boot depending on your partition…Full steps
Fix 2. GRUB Loading Error 17 use a distribution CD or Live CD to set up Grub as sudo grub > root (hd0,0) > setup (hd0) exit…Full steps
Fix 3. GRUB Loading Error 21 Boot the computer from the Ubuntu installation disc > Run Command Prompt as an administrator…Full steps
Fix 4. GRUB Loading Error 22 Restart the computer and press «F8» until you see the options, go back to the menu…Full steps

Common GRUB Loading Errors

However, it’s not without a problem while using GRUB. Many users have the experience of encountering the GRUB loading error during the computer startup. There are two versions of GRUB, and if you’re using Stage 1.5 or Stage 2.0, you’ll probably encounter grub loading error 15, 17, 21, or 22.

GRUB loading error 15

File not found. This error is displayed when the specified file name cannot be found.

GRUB loading error 17

Cannot mount selected partition. This error is displayed when the partition requested exists, but the file system type is not be recognized by GRUB.

GRUB loading error 21

The selected disk does not exist. This error is displayed if the disk is not recognized by the BIOS in the system.

GRUB loading error 22

No such partition. This error is displayed if a requested partition isn’t on the selected disk.

What Causes GRUB Loading Error 15, 17, 21, 22

When you install Windows and Linux on a computer, you need to configure GRUB correctly to boot from one of the operating systems successfully. Or you may encounter GRUB loading errors, like error 15, 17, 21, and 22. The common GRUB loading errors might be caused by:

  • Improper configuration of GRUB
  • The wrong installation location of GRUB
  • Accidental deletion of GRUB
  • The corruption of MBR

How to Fix GRUB Loading Error 15, 17, 21, 22

The solutions differ based on the error you are faced with. Specify the error message you encounter and carry out the corresponding solution.

Fix GRUB Loading Error 15

Make sure the kernel exists. To find out what the exact kernel name is, boot from the Live CD, and mount /boot depending on your partition and then do the following: cd /boot | ls

Fix GRUB Loading Error 17

Make sure your root(x,y) settings are right in your Grub.conf. You could use a distribution CD or Live CD to set up Grub as shown below. (h0,0) means the first hard drive and the first partition on that drive.

sudo grub

root (hd0,0)

setup (hd0) exit

Fix GRUB Loading Error 21

Step 1. Boot the computer from the Ubuntu installation disc.

Step 2. Run Command Prompt as an administrator.

Step 3. Enter the following command:

$sudo -s
#grub
grub> find /boot/grub/stage1 (then cmd will return something like «hd0,0»)
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Fix GRUB Loading Error 22

Step 1. Restart the computer and press «F8» until you see the options.

Step 2. Go back to the menu where you can choose the operating system.

Step 3. Choose «Microsoft Windows Recovery Console». (You may need your Windows installation disc to access the recovery console.)

Step 4. If you are asked to choose the system drive, enter the number in front of the system drive listed.

Step 5. Enter the account password as required. Run the command fixmbr and enter «y» to confirm the operation.

Step 6. Enter «exit» and restart the computer.

How to Recover Data Lost After Fixing GRUB Loading Error

Applies to: Restore all lost files and data after fixing GRUB loading error in Windows 10/8/7.

Applying the fix for a specific grub loading error in Windows may cause data loss. For example, some operations would format the disk partition or delete hard drive contents. So it’s necessary to learn how to recover data after getting rid of the grub loading error on your computer.

Reliable EaseUS Data Recovery Wizard — EaseUS Data Recovery Wizard specializes in file recovery on all Windows operating systems. It allows you to recover data lost due to the GRUB loading error effectively in only a few simple clicks.

See how to recover the accidentally deleted or formatted hard disk data while fixing GRUB loading error on your computer with ease:

Note: To guarantee a high data recovery chance, install EaseUS data recovery software on another disk instead of the original disk where you lost files. 

Step 1. Launch EaseUS Data Recovery Wizard on your Windows 11, Windows 10, Windows 8, or Windows 7 computer. Select the disk partition or storage location where you lost data and click «Scan».

select the disk on Windows  to scan

Step 2. This recovery software will start scanning the disk to find all lost and deleted files. When the scan process completes, click «Filter» > «Type» to specify lost file types.

choose the recovered data type

Step 3. Preview and restore lost Windows files. You can double-click to preview the scanned files. Then, select the target data and click the «Recover» button to save them to another safe spot in the PC or an external storage device.

recover windows 10 lost data

Besides, you can also apply this data recovery software to recover files and data lost on the desktop, laptop, internal hard drive, external hard drive, removable USB flash disk, pen drive, memory card, and many more storage devices.

The Bottom Line

GRUB loading errors always occur on computers with dual OS, and each error code is informative since it indicates what the possible cause is. Apply the solutions provided to cope with the issue and use EaseUS Data Recovery Wizard to retrieve the data when data loss happens.

I just installed 12.04 to Dual Boot (separate partitions) with an existing Win 7.
Upon reboot after install things freeze after Grub 1.5 with a Grub Error 15 message.

Is there any easy way to fix this? (I am posting this from my second computer)

UPDATE: I managed to boot into both 12.04 and Win7 using BIOS:

  • Selected the disk with the Win7 ‘C’ Partition: resulted in the same error message
  • Rebooted, tried the disk with the Ubuntu Partitions:
    *Grub Menu loaded:
  • Managed to boot 12.04, rebooted, used BIOS again:
  • Managed to boot Win 7

So, I have access to my computer again (thru BIOS), but this has been a pretty crappy install experience.

Garth

I used the the Final release 12.04 Ubuntu install disk, reformatted all Linux partitions, and expected a simple clean install.
Other than specifying the Ubuntu Partitions, I did a basic install of 12.04.
No way I did do anything to get this crap error failure!
I have no idea why my install resulted in a Grub-15 error.

Jorge Castro's user avatar

Jorge Castro

70.6k124 gold badges463 silver badges653 bronze badges

asked May 1, 2012 at 22:37

Garth's user avatar

1

Grub error 15 list that «file not found», because of the wrong table of partitions. You can reconfigure your partitions by editing menu.lst file found in

/boot/grub/menu.lst

For that, you can use live cd to open up terminal and type:

sudo fdisk -l | grep -i linux

This will list out the linux partitions and check the entry if the linux root device and swap device entry are correct. You can use disk monitor to view that in fancy mannar. If they are on the way, then you just have to reboot the system. check more out here if you have problems.

answered May 1, 2012 at 23:54

ashutosh's user avatar

ashutoshashutosh

1,28211 silver badges15 bronze badges

When you boot your computer, you might find that your computer is stuck in Grub Loading Error 15, 17, 21, or 22. Do you know what they are, the causes of these GRUB Load Errors, and how to fix them to make your computer go back to normal? This MiniTool article shows you the answers.

What Is GRUB Loading Error?

GRUB, which is also known as GNU GRUB, stands for GNU GRand Unified Bootloader. It is a boot loader package from the GNU Project. It provides you a choice to boot one of multiple operating systems installed on a computer or choose a specific kernel configuration available on a particular operating system’s partitions.

It is similar to NTLDR or BOOTMGR on Windows. But, it supports both Windows and Linux kernels and has more features. You need to configure GRUB properly when using your computer. If not, you might encounter different kinds of GRUB errors like Grub Loading Error 15, 17, 21, 22….

Tip: If you encounter the BOOTMGR is missing issue, you can refer to this article to solve it: 11 Solutions to «BOOTMGR Is Missing» Error in Windows 10/8/7; If you are facing NTLDR is missing issue, you can read this post to get the solutions: 10 Solutions to Fix NTLDR Is Missing in Windows 10/8/7.

Now, we will introduce these common GRUB Loading Errors in the following content.

Common Grub Loading Errors

Usually, there are no error codes in Grub Stage 1. You might just receive the error message saying Hard Disk Error, Floppy Error, Read Error, or Geom Error. The GRUB loading error code always appears in Grub Stage 1.5 or Stage 2.0.

There are 4 common GRUB Loading Errors:

  1. Grub Loading Error 15: File not found. This GRUB Loading Error always appears when a specified file name cannot be found by the system.
  2. Grub Loading Error 17: Cannot mount selected partition. This GRUB Loading Error always appears when the required partition exists, but the type of file system is not recognized by GRUB.
  3. Grub Loading Error 21: Selected disk does not exist. This GRUB Loading Error always appears when the disk is not recognized by the BIOS in the system.
  4. Grub Loading Error 22: No such partition. This GRUB Loading Error always appears when a required partition is not on the selected disk.

Top Reasons for GRUB Loading Errors

Why do the GRUB Loading Errors occur when you boot your computer? Here, we collect some reasons and show them as follows:

  • The configuration of GRUB is improper.
  • GRUB is installed in a wrong location.
  • GRUB is deleted by mistake.
  • mbr is corrupted.

Now, you know what GRUB is, the common GRUB Loading Error codes, and the top main causes of these errors. Then, if you are bothered by the GRUB Loading Error, you must want to get rid of it immediately because you still need to use your computer to deal with your work. Keep reading to get the solutions.

How to Fix GRUB Loading Errors?

Focusing on these 4 GRUB Loading Errors, we will introduce 4 different solutions. You just need to select a suitable solution according to the error code you receive.

How to Fix GRUB Loading Errors?

  1. How to fix GRUB Loading Error 15?
  2. How to fix GRUB Loading Error 17?
  3. How to fix GRUB Loading Error 21/22?

How to Fix GRUB Loading Error 15?

If you are bothered by Grub Loading Error 15, you need to make sure that the kernel file exists on your computer. Here, you need to shut down your PC and then boot it from the live CD. Then, you can mount /boot on your partition and then do the following: cd /boot | ls to check the exact name of the kernel file.

It is quite possible that the kernel file is missing from your computer. If so, you can still use the live CD to perform a system reinstallation to get rid of the issue.

How to Fix GRUB Loading Error 17?

If you are facing Grub Loading Error 17, you need to make sure that your root(x,y) settings are right in your Grub.conf. You still need to use a live CD to set up Grub as follows:

1. Boot your computer from a live CD.

2. Execute this command: sudo fdisk –l.

3. You are likely to get the following results:

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x62ff371f

Device Boot Start End Blocks Id System

/dev/sdb1 2048 206847 102400 7 HPFS/NTFS/exFAT

/dev/sdb2 206848 174082047 86937600 7 HPFS/NTFS/exFAT

/dev/sdb3 174082110 976771071 401344481 f W95 Ext’d (LBA)

Partition table entries are not in disk order.

The cause of the problem appears on the last line: Partition table entries are not in disk order.

4. You can fix the problem by executing the following command: sudo fdisk /dev/hda. hda means the whole hard disk.

5. If you are an expert, you can select x and press Enter. If you are not an expert, just skip to the next step.

6. Select f and press Enter to fix the partition order.

7. Select w and press Enter to write table to disk.

8. Then, you need to finalize these command one by one in GRUB:

sudo grub

root (hd0,1)

setup (hd0)

quit

Here, (h0, 1) stands for the first hard drive and the second partition on that drive.

Of course, the above hd0,1 and hd0 are just examples. You need to know which hard disk houses your OS and then replace the numbers according to your actual situations.

When all these steps are done, you can restart your computer to check whether it can work as normal.

How to Fix GRUB Loading Error 21/22?

If you are bothered by GRUB Loading Error 21/22, you can follow these steps to fix the problem.

  1. Boot your computer from the live CD.
  2. Open a terminal and then run sudo grub. This can lead you to a GRUB command line.
  3. Run find /boot/grub/stage1.
  4. Then, run root (hd0, 1). Here, (h0, 1) stands for the first hard drive and the second partition on that drive. You can replace these two numbers according to your own situation.
  5. Next, run setup (hd0).
  6. At last, run quit to complete the operation.

After these 6 steps, you still need to reboot your computer to see whether the GRUB Loading Error 21 or GRUB Loading Error 22 is disappeared.

Click to Tweet

If You Lose Your Data Due to GRUB Loading Errors

After the GRUB Loading Errors are solved, you can use your computer as usual. However, you may find that some important files are missing from your device by accident due to the error. In a situation like this, you can use a professional data recovery software to get back your data. Here, we suggest using MiniTool Power Data Recovery.

This free file recovery tool is specially designed to rescue your lost and deleted files from your computer hard drives, SD cards, memory cards, pen drives, CDs, DVDs, and more. It has 4 recovery modules that are designed for different situations.

For example, if you want to recover data from a partition on the hard drive, you can use the This PC module. But, if you have repartitioned the hard drive after missing files, you’d better use the Hard Disk Drive module because it enables you to scan the entire drive at once.

This software is designed for Windows computers. However, if your computer is dual-boot (Windows and Linux), you can choose to recover your Linux data under Windows.

MiniTool Power Data Recovery has a trial edition and you can use it to scan the drive that has saved your lost files and then check whether it can find the files you want to restore. If you are interested in it, you can press the following button to download and then install it on your computer to have a try.

Free Download

After installing MiniTool Power Data Recovery on your device, you can use these steps to retrieve your data.

1. Open this software and you will enter the This PC interface directly.

2. Suppose that you want to recover data from a partition, you can just stay at this recovery module. Then, you need to select the target partition and press Scan to start the scanning process.

select the target partition to scan

3. The whole scanning process will last for a while. To make sure that you can get the best data recovery effect, you need to wait until the whole process ends. Then, this software will show you the scan results by path.

Here, you can click each path and unfold the folders in it to find your needed files. However, you may find that it is not easy and fast to find the target items using this method. If so, you can use other features of this software to perform a quick search.

For example:

  • Type: The Type feature can enable the software to show the scan results by type. You must know which type of data you want to recover. So, you can select that type to find your needed files quickly.
  • Show Lost Files: After scanning, this software will show you all the data on the drive including existing and deleted files. If you only need to restore the deleted files, you can use this feature to make the software only show you the lost files. This can narrow down the search range.
  • Find: If you still remember the name of the file you want to recover, you can use this feature to directly locate that file. However, if the name of the file is damaged, you will be unable to use this method to find your data.
  • Preview: This feature enables you to preview up to 70 types of files. So, if you are not sure whether it is the file you want to restore, you can just preview it to make a confirmation.

Type, Show Lost Files, Find, and Preview

4. You are not allowed to use this trial edition to recover the scanned files. However, you can update this software to a full edition and then recover your needed files without limits. If you are a personal user, the Personal Ultimate edition can fully meet your need and you can even enjoy a lifetime free update.

Here, you need to know that you should not select the files’ original path to save these data. Otherwise, the deleted files will be overwritten and become unrecoverable.

Click to Tweet

Bottom Line

Now, you should know what GRUB is, the GRUB Loading Errors you may encounter when booting your PC, and how to get rid of these errors. At the same time, we also recommend a data recovery software for recovering your lost and deleted files that are caused by these GRUB Loading Errors. We hope this article is helpful to you.

Should you have any related issues, you can contact us via [email protected] or let us know in the comment.

GRUB Loading Error FAQ

What is a GRUB Loading Error?

A GRUB Loading Error always happens when you boot the computer. It can be caused by improper GRUB configuration, a wrong location of GRUS, missing GRUB, corrupted MBR, etc.

How do I fix grub loading errors?

There are different kinds of GRUB Loading Errors like GRUB Loading Error 15, 17, 21, and 22. This current article shows you the corresponding solutions. You can scroll up to find them.

How to fix Error No Such Partition Grub Rescue?

Бывают такие BIOS и такие приводы, что нужно, чтобы в момент, когда BIOS пытается читать CD-ROM, он был уже раскручен, но ещё не остановлен. То есть современные приводы раскручивают диск, крутят его секунд 5, потом останавливают. И когда BIOS обращается к CD-ROM, который остановил диск, то он сразу не получает ответ, и считает, это ошибкой. Я в таких случаях включал длинный тест памяти и подбирал момент времени, когда нужно нажать кнопку лотка CD-ROM чтобы диск заехал и раскрутился как раз к нужному моменту времени. Получалось, с 3-5 попыток.

Но не факт, что у вас такой случай, может привод умер, может CD-диск не загрузочный или умер от времени (если это CD-R или CD-RW).

mky ★★★★★

(02.05.10 21:54:25 MSD)

  • Ссылка

The objective of this article is to list problems and errors that may occur in certain situations when using the GRUB Legacy bootloader. All these solutions have been acquired through the cooperation of users on the Gentoo Forums.

Starting notes

Acknowledgements

Many thanks to Earthwings, penetrode, loyaltonone, pilla, airhead, nephros, yamakawa and all the others for the suggestions on the original thread.

Disclaimer warning

The examples provided are just examples. Be sure to change partition numbers and the like according to the specific systems specs. Follow the solutions provided by this document at the readers own risk.

GRUB loading, please wait…

Situation

GRUB loading stage 1.5
GRUB loading, please wait...

After this message, the system stops. If attempting to boot the system using a GRUB floppy, the problem disappears.

Solution

According to The_Bell, changing the boot order in the BIOS can solve the problem.

Tell the BIOS to not boot from the floppy first.

[1] took hard disks off the system one-by-one until found out the problem was caused by the SiI3512A SATA RAID-controller.

penetrode wrote that this may also be due to bad CFLAGS settings. Although the current GRUB ebuild filters out-fstack-protector, it can’t hurt to recompile GRUB with clean CFLAGS if nothing else helps.

root #CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grub:0 --ask

This problem appeared on a dell r320 server, caused by having serial and terminal options in grub.conf, problem disappeared after removing those options.

FILE grub.confoptions to remove

#serial --unit=1 --speed=19200  
#terminal --timeout=10 serial

GRUB Error 12

Situation

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.

Solution

When GRUB was installed in the boot record using the interactive commands, were the two lines below executed in the GRUB prompt?

grub>root (hd0,0)

grub>setup (hd0)

(hd0,0) must be replaced with the boot partition and (hd0) with the HDD that was chosen. Remember that (hd0) will install the bootloader in the Master Boot Record of the first hard disk, the primary master.

GRUB error 15

Situation

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).

Initial configuration:

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 an entry:

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...

Solution — Initial configuration

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 the boot partition.

To find out the exact name of the kernel, boot from the installation cd, mount the root and (if applicable) boot partition. Next, chroot into the Gentoo system and do a listing of the available files to see what kernel images there are available:

This will list all the kernels that there are on the boot partition. If the kernel is missing make sure to have compiled a kernel (using genkernel or manually):

root #cd /usr/src/linux/

root #make menuconfig

root #make

And that it has been copied to the boot partition:

root #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 the grub.conf file. Also make sure that the kernel line in the grub.conf file is referring to that partition (either explicitly or implicitly).

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.

Solution — Booting an entry

First, verify that the root and setup lines that were used are correct.

If it is certain they are valid, then there is the possibility of using a flawed GRUB version (0.93.20031222). Upgrade the Portage tree or mask this version of GRUB:

root #echo "=sys-boot/grub-0.93.20031222" >> /etc/portage/package.mask

root #emerge --ask sys-boot/grub:0

Another option is using the grub-install script as is recommended by the GRUB authors. The --root-directory option is needed if there is a separate boot partition, otherwise it should be left out.

root #grub-install --root-directory=/boot /dev/sda

When all this fails, the boot partition may be corrupt. Check the partition for errors:

GRUB error 17

Situation

root (hd0,0)
filesystem type unknown partition type 0x7
  
Error 17 : Cannot mount selected partition

Solution

This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

Be sure to check the root(x,y) settings in grub.conf.

Also, when trying to boot Windows, make sure that the grub.conf file has the root (hdX,Y) (or rootnoverify (hdX,Y) ) and chainloader (hdX,Y)+1 in it.

GRUB error 18

Situation

kernel (hd1,4)/bzImage root=/dev/sdb7
  
Error 18: Selected cylinder exceeds max supported by BIOS

Solution

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 the disk is larger than the BIOS can handle (512 MB for (E)IDE disks on older machines or larger than 8 GB in general).

Try an update for the BIOS and/or move the boot partition to the front (or at least into the appropriate range).

GRUB GRUB GRUB GRUB GRUB …

Situation

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
...

Solution

According to airhead this can be caused by having the BIOS detect the disks automatically. Try to set the BIOS entry to User Type HDD.

Another possibility is that Grub was installed on the MBR and then reinstalled (for instance due to hard disk changes) but using the wrong setup and root commands.

Probing devices to guess BIOS drives. This may take a long time

Situation

While trying to install GRUB, it hangs after displaying the following line:

root #grub

Probing devices to guess BIOS drives. This may take a long time.

Solution

One reported cause was an exotic configuration of disk devices, like ultra/non-ultra DMA disks on one cable.

When installing GRUB, it just hangs

Situation

When installing GRUB, it hangs:

At this stage, the installation stops.

Solution

If there is no floppy drive, was the --no-floppy switch used?

Uncompressing Linux… Ok, booting the kernel

Situation

The system hangs after displaying the following line:

Uncompressing Linux... Ok, booting the kernel.

Solution

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 the BIOS or in the kernel. Another possible cause is that the kernel has been compressed to a format it does not support for decompression, such as LZO requiring LZO_DECOMPRESS.

GRUB just shows a GRUB prompt

Situation

When booting the system, a GRUB prompt appears instead of a list of entries that were defined in the grub.conf file.

Solution

Mount the boot partition and verify if the grub/grub.conf file exists.

root #mount /dev/sda1 /mnt/gentoo/boot

root #cat /mnt/gentoo/boot/grub/grub.conf

Also make sure that the menu.lst symbolic link exists:

root #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:

root #cd /mnt/gentoo/boot/grub

root #ln -snf grub.conf menu.lst

If this is the case, reinstall GRUB:

(chroot) #grub-install --root-directory=/boot /dev/sda

Could not find device for /boot/boot: not found or not a block device

Situation

When running grub-install during the GRUB installation, the following error appears:

root #grub-install --root-directory=/boot /dev/sda

Could not find device for /boot/boot: not found or not a block device

Solution

Check that the following wasn’t forgotten:

root #grep -v rootfs /proc/mounts > /etc/mtab

Situation

After hitting the Enter (Return) key at the GRUB menu during the system boot, the system reboots.

Solution

Try disabling framebuffer support in the kernel. If this does not help, disable APM and ACPI.

Situation

After hitting Enter (Return) at the GRUB menu during system boot, the screen blanks out, but the system is responsive (for instance, the numlock LED is switchable).

Solution

Turn off framebuffer (typically remove vga=XYZ from grub.conf) and check the processor architecture in the kernel config.

Missing GRUB image

Situation

When booting the system, the spiffy Gentoo splash screen is not seen.

Solution

First of all check if the splash screen file that is being are referred to in grub.conf really exists. If that is the case, go and check the GRUB ebuild. Maybe the patch for the splash image is commented out in the version that is being used.

Failing To boot Windows from a second hard drive

Situation

After selecting the Windows entry, the system refuses to boot without any clear reason as to why.

Solution

cyrillic provides information that it is possible to «map» the disks in a different order by changing grub.conf‘s Windows entry like so:

FILE grub.confMapping disks

title Windows XP
  map (hd0) (hd1)
  map (hd1) (hd0)
  chainloader (hd1,0)+1

GRUB segfaults when trying to install

Situation

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

Solution

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, try to emerge grub-static which is currently stable on amd64 and unstable on x86 and (~x86). Check out bug #79378 for additional information.


This page is based on a document formerly found on our main website gentoo.org.
The following people contributed to the original document: Hartwig Brandl, Ioannis Aslanidis
They are listed here because wiki history does not allow for any external attribution. If you edit the wiki article, please do not add yourself here; your contributions are recorded on each article’s associated history page.

Понравилась статья? Поделить с друзьями:
  • Как найти только что пропавшую вкладку
  • Как найти площадь полученных прямоугольников
  • Как найти лучшего главного бухгалтера
  • Как найти партнера для секса без обязательств
  • Как найти хорошие тосты