Error 14 filesystem compatibility error cannot read whole file

GRUB Error Messages Contents The following is a comprehensive list of error messages for the Stage 1: This error message will occur if the Stage 2 or Stage 1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk fails. This error message will occur […]

Содержание

  1. GRUB Error Messages
  2. Contents
  3. Thread: Dual boot 17.04 fresh install, stuck on grub prompt
  4. Dual boot 17.04 fresh install, stuck on grub prompt
  5. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  6. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  7. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  8. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  9. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  10. Re: Dual boot 17.04 fresh install, stuck on grub prompt
  11. Linux addiktz
  12. Grub re-install

GRUB Error Messages

Contents

The following is a comprehensive list of error messages for the Stage 1:

This error message will occur if the Stage 2 or Stage 1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk fails.

This error message will occur if the Stage 2 or Stage 1.5 is being read from a floppy disk, and the attempt to determine the size and geometry of the floppy disk fails. It’s listed as a different error since the probe sequence is different than for hard disks.

This error message will occur if a disk read error happens while trying to read the Stage 2 or Stage 1.5.

This error message will occur if the location of the Stage 2 or Stage 1.5 is not in the area supported by reading the disk with the BIOS directly. This could occur because the BIOS translated geometry has been changed by the user or the disk is moved to another machine or controller after installation, or GRUB was not installed using itself (if it was, the Stage 2 version of this error would have been seen during that process and it would not have completed the install).

The error numbers correspond to the Errors Reported by the Stage 2 in the listed sequence.

The following is a comprehensive list of error messages for the Stage 2 (error numbers for the Stage 1.5 are listed before the colon in each description):

    1 : «Selected item won’t fit into memory»

This error is returned if a kernel, module, or raw file load command is either trying to load it’s data such that it won’t fit into memory or it is simply too big.

2 : «Selected disk doesn’t exist»

This error is returned if the device part of a device- or full filename refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

3 : «Disk read error»

This error is returned if there is a disk read error when trying to probe or read data from a particular disk.

4 : «Disk write error»

This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.

5 : «Disk geometry error»

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

6 : «Attempt to access block outside partition»

This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it’s a great debugging tool).

7 : «Partition table invalid or corrupt»

This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.

8 : «No such partition»

This error is returned if a partition is requested in the device part of a device- or full filename which isn’t on the selected disk.

9 : «Bad filename (must be absolute pathname or blocklist)»

This error is returned if a filename is requested which doesn’t fit the syntax/rules listed in the Filesystem Description.

10 : «Bad file or directory type»

This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.

11 : «File not found»

This error is returned if the specified filename cannot be found, but everything else (like the disk/partition info) is OK.

12 : «Cannot mount selected partition»

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

13 : «Inconsistent filesystem structure»

This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.

14 : «Filesystem compatibility error, can’t read whole file»

Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

15 : «Error while parsing number»

This error is returned if GRUB was expecting to read a numbur and encountered bad data.

16 : «Device string unrecognizable»

This error is returned if a device string was expected, and the string encountered didn’t fit the syntax/rules listed in the Filesystem Description.

17 : «Invalid device requested»

This error is returned if a device string is recognizable but does not fall under the other device errors.

18 : «Invalid or unsupported executable format»

This error is returned if the kernel image boing loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

19 : «Loading below 1MB is not supported»

This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.

20 : «Unsupported Multiboot features requested»

This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is likely unable to provide.

21 : «Unknown boot failure»

This error is returned if the boot attempt did not succeed for reasons which are unknown.

22 : «Must load Multiboot kernel before modules»

This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of location of such modules to a non-Multiboot-aware kernel.

23 : «Must load Linux kernel before initrd»

This error is returned if the initrd command is used before loading a Linux kernel. Similar to the above error, it only makes sense in that case anyway.

24 : «Cannot boot without kernel loaded»

This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.

25 : «Unrecognized command»

This error is returned if an unrecognized command is entered into the command-line or in a boot sequence section of a config file and that entry is selected.

26 : «Bad or incompatible header on compressed file»

This error is returned if the file header for a supposedly compressed file is bad.

27 : «Bad or corrupt data while decompressing file»

This error is returned the run-length decompression code gets an internal error. This is usually from a corrupt file.

28 : «Bad or corrupt version of stage1/stage2»

This error is returned if the install command is pointed to incompatible or corrupt versions of the stage1 or stage2. It can’t detect corruption in general, but this is a sanity check on the version numbers, which should be correct.

Источник

Thread: Dual boot 17.04 fresh install, stuck on grub prompt

Thread Tools
Display

Dual boot 17.04 fresh install, stuck on grub prompt

Running Windows 10 and Ubuntu on an old Acer 5620 laptop. I’ve been running both on it for years. I did a fresh install of 17.04 over my 16.10. Now when I try to boot into Ubuntu, it hangs with the grub> prompt. How do I get Ubuntu to load?

I like to do fresh installs, but the last few releases of Ubuntu have given me grief, both on my laptop and my desktop. As I recall, 16.10 also sent me to the grub> prompt. I had to reinstall 16.04 LTS and then upgrade to 16.10.

I built the desktop around MSI X58 Pro-E motherboard and Nvidia GeForce GT 220 graphics. I want to figure out how to fix my laptop before tackling the desktop because I use the desktop for my serious work.

Re: Dual boot 17.04 fresh install, stuck on grub prompt

Were you using UEFI with your windows and old Ubuntu? Best to see the details. If you can’t boot the installed Ubuntu, boot the installation DVD/flash drive and go to the site below and download the boot repair software as instructed on that page. If you select the Create BootInfo Summary option, when it finishes it will give you a link which you can post here and that will have enough details for someone to help.

Re: Dual boot 17.04 fresh install, stuck on grub prompt

Re: Dual boot 17.04 fresh install, stuck on grub prompt

You have BIOS/MBR installs.
But it looks like you installed grub to a partition which means it can not be used to boot except by third party tools that suggest installing grub to partition.
But grub says never to install to a partition as then it is forced to use blocklists which are fragile. And then you blame Linux for a third party Windows tool problem when grub does not work.

BIOS systems only boot from drive’s MBR. So you have to install grub to a drive like sda, not to a partition like sda5.
Boot-Repair can reinstall grub to MBR.

Re: Dual boot 17.04 fresh install, stuck on grub prompt

Thank you, oldfred, for taking the time to look at this.

I want to maintain the Windows bootloader because it offers many tools for debugging Windows issues, which grub does not. I have been using the technique of installing grub to a partition since Windows 8 came out in August 2012, and it has always worked just fine. I do realize that Microsoft has made this inconvenient, and that Ubuntu is one of the few (the only?) distros that allow this set up. Perhaps Ubuntu has changed this for 17.04.

To be clear, I’m not trying to place «blame» here. I fully appreciate the volunteer work that goes into all Linux distros, and it would be wrong of me to complain about anything that does not suit me. I am simply trying to determine if I’m doing something wrong, or if I need to change the way I do things.

And there is the possibility that the Ubuntu maintainers did not intend to make whatever change is causing my problems, in which case they would want to know about it. I volunteer a fair amount of time to create things to help others (http://bob.cs.sonoma.edu), and I appreciate any feedback that helps me to improve my work.

Re: Dual boot 17.04 fresh install, stuck on grub prompt

Another piece of information here. When I boot into the grub> prompt, the ls command gives me » Error 14: Filesystem compatibility error, cannot read whole file «

Re: Dual boot 17.04 fresh install, stuck on grub prompt

Grub2 does not use error codes. That was last used with grub legacy.

If using Neosmart, it uses the ancient grub4dos which is based on grub legacy, so error is probably from grub4dos.
Lost link to old error codes (he stopped posting those pages as so obsolete) and do not know what error 14 is.
Found another source.
https://www.gnu.org/software/grub/ma. roubleshooting

Some old BIOS or BIOS settings if not AHCI may cause grub boot issues if boot files or grub files are beyond an very old BIOS limit of 137GB. Where on drive are boot files. Some have not had issue as files were located inside 137 even if partition went past 137, but then update put new files beyond limit.

Источник

Linux addiktz

Grub re-install

Problem

Solution

You have to install GRUB on the MBR (Master Boot Record). To do this just follow this steps:

First you will need to know what Grub calls the hard disk drive partition that holds the required files.

A quick aside :- There are three ways of defining hard disk drives and their partitions. The first, that you’re most probably familiar with, is Windows/MS-DOS letters (such as C: or D: ).

The second is Linux’s method, which is to give the first device (hard disk drive or CD-ROM drive) on the first IDE (ribbon) cable the name /dev/hda, the second device (hard disk drive or CD-ROM drive) on the first cable is called /dev/hdb, the first device (hard disk drive or CD-ROM drive) on the second cable is called /dev/hdc and the second device on the second cable is called /dev/hdd .

So, you’ve got the names hda, hdb, hdc, and hdd for all of your four possible IDE/SCSI attached devices, although you probably only have a hard disk on hda and a CD ROM / DVD drive on hdb.

The hard disks are, probably, cut up into partitions that are numbered from one. So the first partition on the first hard disk attached to the first IDE cable will be called /dev/hda1, while the second will be called /dev/hda2 and, for further example, the fifth partition on the second hard disk on the second IDE cable would be called /dev/hdd5.

Now to the third way of naming a hard disk and partition. Grub uses the letters “hd” followed by a number starting at zero to name the hard disks. To denote a particular partion a comma and a further number, again starting at zero is added. All of this is surrounded by brackets ().

So to Grub, the first hard disk drive attached to the first IDE/SCSI cable is called (hd0) , and to specify the first partition on that drive you would need to type (hd0,0)

(First of all, enter your BIOS setup and in BOOT Sequence window choose to boot with CDROM first.) Once the server is up in the live CD, you need to find out which is the correct partition containing the boot directory.

Issue the below command to find this.

and you’ll get returned the hard disk name and partition that has that file (see above for how Grub names these). However, if you have a separate /boot partition, remove /boot from the above command.

You can see (hd0,0). The output of this command is the name of the hard disk and partition that holds the stage1 file.

So, when you tried this, you got (hd0,0) returned to you. This tells me that your /boot/ folder lives on the first partition on hard disk on the first IDE cable. If it had returned (hd0,1) instead, that would have shown you that the /boot/ folder lived on the second partition of the first hard disk on the first IDE cable.

Once we have found this out we need to give Grub this in the next commands.

The root command tells Grub where to base all of its file path searches from. We take the hard disk and partition, given by the find command and use it with the root command, like so :-

Next comes the kernel command. This tells Grub the name of the kernel (core part of Linux) that you want to load when, later, you do the boot command.

As there is no way that you can remember the full name of the kernel, you can use the tab key facility in Grub (the tab key is that one with two opposite facing horizontal arrows that sit above the Caps Lock key on most keyboards).

Let me explain the root command with example. If I did nor give root hd0,0) and pressed tab after typing kernel, you can see no output fro grub. This happens as we have not specified to grub a base harddisk and partition where it can look for kernel files.

Now I am giving root (hd0,0) to grub. Now grub can suggest you options as grub now know where to look for possible files.

Thats enough for root stuff. Carry on below.

Load the kernel. If you dont know with which kernel the server was up, follow the steps below.

Mount the harddrive partition to get the /boot partition. If the /boot is separate partition, mount it, otherwise mount / partition. In the below example, its separate partition.

How to confirm which is the /boot partition? Look for the * in the “Boot” coloumn in the fdisk output. Now mount it.

Note the default loaded kernel grub lines. Eg :

Go back to grub prompt and pass the kernel

If with “root=LABEL=/” the kernel failed to boot, then get the / partition and supply it as root=/dev/sda5. You can check it by using e2label.

Now pass the initrd

Boot the passed kernel

Linux will now boot.

Re-installing Grub from within Linux

Once the server is up, ssh into the server. From command prompt you will need to enter the grub-install command. This takes one parameter – the name of the hard disk whose master boot record (mbr) will be having grub installed on it.

If you’re still having boot problems

Grub errors messages

The complete list of error messages are at the end of this HowTo.

The two that I’ve bumped into are

Which normally means that you have mistyped the file name. Try using the tab key to help you fill in Grub commands.

This may be that you have mistyped the number (remember, Grub counts from zero and not one), or that the partition that you pointed at does not have a valid file system.

Kernel panics If you get an error message, while booting, along these lines :-

Your kernel needs something called an “initrd” and can’t find one. There are a number of reasons that this can happen.

Easy one to fix, just make sure that you have the correct (and correctly spelt) initrd for Grub to pass to the kernel. Have a look at the “All I get is either a “grub>” prompt or just “grub” when I try and boot” section of this HowTo.

The “root=” parameter on the kernel statement often says “root=LABEL=/”, which often works just fine, but sometimes you have to be more exact. I’ve only found this to be a problem when I’m using a separate /boot and root (/) partition, or when Mandrake is involved. So change the “LABEL=/” bit to the partition that contains your root (/) folder. If your root (/) partition is on /dev/hda6, for example, then make the root statement look like “root=/dev/hda6”.

You’ll need to get a Linux up using either a distribution/rescue CD or a rescue diskette. Then change the root to your hard disk drive by entering, from the shell command prompt, chroot /dev/hdxy . Where the “x” is the letter of the hard disk and the “y” is the number of the partition. So, if your normal /boot folder is on /dev/hda2 , then enter chroot /dev/hda2/

Then change directory to the /boot folder, move the old .img file out of the way – assuming it’s still there – by renaming it to *.img.old , and then create a new initrd by typing mkinitrd -v -f initrd-KERNEL-VERSION.img KERNEL-VERSION . Replace “KERNEL-VERSION” with the version of the kernel that you are trying to load. If you do a full listing of the /boot folder you’ll see the same numbers and letters in the full kernel file’s name (eg. for the kernel called “vmlinuz-2.4.22-10mdk” , you would want to create an initrd called “initrd-2.4.22-10mdk.img” and the kernel version would be “2.4.22-10mdk” ).

Footnote: – Search order at boot up time. Your PC will look for an operating system in a number of places, in an order set out in the BIOS. If you find that your PC refuses to look for an operating system in either your floppy diskette drive (if you are attempting to boot from a rescue diskette) or from your CD-ROM / DVD drive (if you are trying to boot from an installation CD / DVD), then you’ll need to enter your BIOS setup.

To enter the BIOS setup screens you will need to press either the Del key or the F2 key during the POST checks (which one is dependent on your PC). So, turn your PC on and while it is giving you all of those messages about how much RAM you have and what disks it knows about, press the relevant key for your PC. Keep pressing until you are presented with either a blue or grey BIOS screen.

Using a combination of the cursor arrow keys, the tab key and the enter key, navigate your way to the option to change the boot order.

On an AMIBIOS (grey) screen, you will need to move right to the Boot option, press Enter and then move down to the Boot Device Priority option and press Enter , then select the first device, press Enter and select from the list. When you’ve picked the correct boot device (Floppy or CDROM), press the Esc key to exit up the levels, then move across to Exit and select Exit saving changes .

On an Award BIOS (blue) screen, move down to the Advanced BIOS Features, press Enter, then move down to the First Boot Device, again press Enter and select from the list. Once done, press the Esc key to move back up levels and then across and down to the Save & Exit Setup option.
There are other BIOSs out there , but these are to only two that I have access to. Hopefully, though, you’ll have got the idea of what to do, from the above description. And you can always escape out of trouble by repeatedly pressing the Esc key.

Grub Error messages :-

1 : Filename must be either an absolute filename or blocklist This error is returned if a file name is requested which doesn’t fit the syntax/rules listed in the Filesystem.

2 : Bad file or directory type This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.

3 : Bad or corrupt data while decompressing file This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.

4 : Bad or incompatible header in compressed file This error is returned if the file header for a supposedly compressed file is bad.

5 : Partition table invalid or corrupt This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.

6 : Mismatched or corrupt version of stage1/stage2 This error is returned if the install command points to incompatible or corrupt versions of the stage1 or stage2. It can’t detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
7 : Loading below 1MB is not supported This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.

8 : Kernel must be loaded before booting This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.

9 : Unknown boot failure This error is returned if the boot attempt did not succeed for reasons which are unknown.

10 : Unsupported Multiboot features requested This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is probably unable to provide.

11 : Unrecognized device string This error is returned if a device string was expected, and the string encountered didn’t fit the syntax/rules listed in the Filesystem.
12 : Invalid device requested This error is returned if a device string is recognizable but does not fall under the other device errors.

13 : Invalid or unsupported executable format This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

14 : Filesystem compatibility error, cannot read whole file Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

15 : File not found This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

16 : Inconsistent filesystem structure This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.

17 : Cannot mount selected partition This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

18 : Selected cylinder exceeds maximum 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).

19 : Linux kernel must be loaded before initrd This error is returned if the initrd command is used before loading a Linux kernel.

20 : Multiboot kernel must be loaded before modules This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of such modules to a non-Multiboot-aware kernel.

21 : Selected disk does not exist This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

22 : No such partition This error is returned if a partition is requested in the device part of a device- or full file name which isn’t on the selected disk.

23 : Error while parsing number This error is returned if GRUB was expecting to read a number and encountered bad data.

24 : Attempt to access block outside partition This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it’s a great debugging tool).

25 : Disk read error This error is returned if there is a disk read error when trying to probe or read data from a particular disk.

26 : Too many symbolic links This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.

27 : Unrecognized command This error is returned if an unrecognized command is entered on the command-line or in a boot sequence section of a configuration file and that entry is selected.

28 : Selected item cannot fit into memory This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won’t fit into memory or it is simply too big.

29 : Disk write error This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.

30 : Invalid argument This error is returned if an argument specified to a command is invalid.

31 : File is not sector aligned This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command `install’). In this case, you should mount the partition with the `-o notail’ option.

32 : Must be authenticated This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.

33 : Serial device not configured This error is returned if you try to change your terminal to a serial one before initializing any serial device.

34 : No spare sectors on the disk This error is returned if a disk doesn’t have enough spare space. This happens when you try to embed Stage 1.5 into the unused sectors after the MBR, but the first partition starts right after the MBR or they are used by EZ-BIOS.

Источник

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Installation & Upgrades
  • [SOLVED] Dual boot 17.04 fresh install, stuck on grub prompt

  1. Dual boot 17.04 fresh install, stuck on grub prompt

    Running Windows 10 and Ubuntu on an old Acer 5620 laptop. I’ve been running both on it for years. I did a fresh install of 17.04 over my 16.10. Now when I try to boot into Ubuntu, it hangs with the grub> prompt. How do I get Ubuntu to load?

    I like to do fresh installs, but the last few releases of Ubuntu have given me grief, both on my laptop and my desktop. As I recall, 16.10 also sent me to the grub> prompt. I had to reinstall 16.04 LTS and then upgrade to 16.10.

    I built the desktop around MSI X58 Pro-E motherboard and Nvidia GeForce GT 220 graphics. I want to figure out how to fix my laptop before tackling the desktop because I use the desktop for my serious work.

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


  2. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Were you using UEFI with your windows and old Ubuntu? Best to see the details. If you can’t boot the installed Ubuntu, boot the installation DVD/flash drive and go to the site below and download the boot repair software as instructed on that page. If you select the Create BootInfo Summary option, when it finishes it will give you a link which you can post here and that will have enough details for someone to help.

    https://help.ubuntu.com/community/Boot-Repair


  3. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Thank you, yancek. I ran Boot-Repair, which generated http://paste2.org/Cjv3ywmh

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


  4. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    You have BIOS/MBR installs.
    But it looks like you installed grub to a partition which means it can not be used to boot except by third party tools that suggest installing grub to partition.
    But grub says never to install to a partition as then it is forced to use blocklists which are fragile. And then you blame Linux for a third party Windows tool problem when grub does not work.

    BIOS systems only boot from drive’s MBR. So you have to install grub to a drive like sda, not to a partition like sda5.
    Boot-Repair can reinstall grub to MBR.


  5. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Thank you, oldfred, for taking the time to look at this.

    I want to maintain the Windows bootloader because it offers many tools for debugging Windows issues, which grub does not. I have been using the technique of installing grub to a partition since Windows 8 came out in August 2012, and it has always worked just fine. I do realize that Microsoft has made this inconvenient, and that Ubuntu is one of the few (the only?) distros that allow this set up. Perhaps Ubuntu has changed this for 17.04.

    To be clear, I’m not trying to place «blame» here. I fully appreciate the volunteer work that goes into all Linux distros, and it would be wrong of me to complain about anything that does not suit me. I am simply trying to determine if I’m doing something wrong, or if I need to change the way I do things.

    And there is the possibility that the Ubuntu maintainers did not intend to make whatever change is causing my problems, in which case they would want to know about it. I volunteer a fair amount of time to create things to help others (http://bob.cs.sonoma.edu), and I appreciate any feedback that helps me to improve my work.

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


  6. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Another piece of information here. When I boot into the grub> prompt, the ls command gives me «Error 14: Filesystem compatibility error, cannot read whole file»

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


  7. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Grub2 does not use error codes. That was last used with grub legacy.

    If using Neosmart, it uses the ancient grub4dos which is based on grub legacy, so error is probably from grub4dos.
    Lost link to old error codes (he stopped posting those pages as so obsolete) and do not know what error 14 is.
    Found another source.
    https://www.gnu.org/software/grub/ma…roubleshooting

    14 : Filesystem compatibility error, cannot read whole file
    Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

    http://neosmart.net/wiki/display/EBCD/Linux
    http://neosmart.net/wiki/display/EBCD/Ubuntu

    Some old BIOS or BIOS settings if not AHCI may cause grub boot issues if boot files or grub files are beyond an very old BIOS limit of 137GB. Where on drive are boot files. Some have not had issue as files were located inside 137 even if partition went past 137, but then update put new files beyond limit.


  8. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    Quote Originally Posted by oldfred
    View Post

    Some old BIOS or BIOS settings if not AHCI may cause grub boot issues if boot files or grub files are beyond an very old BIOS limit of 137GB. Where on drive are boot files. Some have not had issue as files were located inside 137 even if partition went past 137, but then update put new files beyond limit.

    This should not be the problem I’m having since the entire root partition (‘/’ is withing the first 110 GB of the disk. My ‘/home’ partition comes after that.

    I guess I’ll try installing 16.04 and then updating that to 17.04. I think that’s what I ended up doing when I went from 16.04 to 16.10. Sigh.

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


  9. Re: Dual boot 17.04 fresh install, stuck on grub prompt

    I did a fresh 17.04 install by first doing a fresh 16.04 LTS install. It would not allow me to update directly to 17.04. I had to do 16.10 then 17.04. As I recall, I had to do this when I went from 16.04 to 16.10. Aside from taking a long time, all went well. Must be some sort of problem with the installer on older machines. I’ve done my laptop, a several year old Acer 5620. Next I will do my home built desktop, which is also several years old. Both machines use BIOS.

    Intel i7-920; Nvidia GT 220, 1GB; MSI X58 Pro-E; 6GB DDR; 64-bit mode.


Bookmarks

Bookmarks


Posting Permissions

пока сюда положу, надо как-нибудь перевести

GRUB error codes

Загрузка Grub, пожалуйста, подождите…

Ситуация
GRUB loading stage 1.5
GRUB loading, please wait...

Система останавливается после вывода этого сообщения. При попытке загрузки с дискеты grub проблема исчезает.
Решение

Согласно The_Bell, вы могли бы изменить порядок загрузки в вашем BIOS.

Уберите в BIOS первоочередную загрузку с дискеты.

penetrode написал, что такое поведение также может быть вызвано неправильной установкой CFLAGS. Несмотря на то, что текущий ebuild grub фильтрует -fstack-protector, хуже не будет, если перекомпилировать grub с чистыми CFLAGS, когда ничего другое не помогает.

# CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe" emerge grub

ERRORS REPORTED BY THE STAGE 1[/b]
The general way that the Stage 1 handles errors is to print an error string and then halt. Pressing CTRL-ALT-DEL will reboot.

The following is a comprehensive list of error messages for the Stage 1:
«Hard Disk Error»
This error message will occur if the Stage 2 or Stage 1.5 is being read from a hard disk, and the attempt to determine the size and geometry of the hard disk fails.
«Floppy Error»
This error message will occur if the Stage 2 or Stage 1.5 is being read from a floppy disk, and the attempt to determine the size and geometry of the floppy disk fails. It’s listed as a different error since the probe sequence is different than for hard disks.
«Read Error»
This error message will occur if a disk read error happens while trying to read the Stage 2 or Stage 1.5.
«Geom Error»
This error message will occur if the location of the Stage 2 or Stage 1.5 is not in the area supported by reading the disk with the BIOS directly. This could occur because the BIOS translated geometry has been changed by the user or the disk is moved to another machine or controller after installation, or GRUB was not installed using itself (if it was, the Stage 2 version of this error would have been seen during that process and it would not have completed the install).

ERRORS REPORTED BY THE STAGE 1.5

The general way that the Stage 1.5 handles errors is to print an error number in the form «Error: » and then halt. Pressing Ctrl-Alt-Del will reboot.

The error numbers correspond to the Errors Reported by the Stage 2 in the listed sequence.

ERRORS REPORTED BY THE STAGE 2

The general way that the Stage 2 handles errors is to abort the operation in question, print an error string, then (if possible) either continue based on the fact that an error occurred or wait for the user to deal with the error.

The following is a comprehensive list of error messages for the Stage 2 (error numbers for the Stage 1.5 are listed before the colon in each description):
Error 1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn’t fit the syntax/rules listed in the Filesystem.
Error 2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
Error 3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.
Error 4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed file is bad.
Error 5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.
Error 6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command points to incompatible or corrupt versions of the stage1 or stage2. It can’t detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
Error 7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.
Error 8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.
Error 9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons which are unknown.
Error 10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is probably unable to provide.
Error 11 : Unrecognized device string
This error is returned if a device string was expected, and the string encountered didn’t fit the syntax/rules listed in the Filesystem.

———

Error 12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.

Ошибка Grub 12

Ситуация
12 : Invalid device requested.

Эта ошибка выдается, если синтаксис команд верен, и несмотря на это происходит ситуация, не описанная в других ошибках.

Решение

Запускали ли вы две приведенные ниже строки, когда установливали grub в свою загрузочную запись интерактивными командами?

grub> root (hd0,0)
grub> setup (hd0)

Вместо (hd0,0) должен быть указан ваш загрузочный раздел, а вместо (hd0) — выбранный жесткий диск. Помните, что (hd0) устанавливает начальный загрузчик в главную загрузочную запись (MBR) первого жесткого диска (первичный ведущий — primary master).

————

Error 13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
Error 14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

————-

Error 15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

Ошибка Grub 15

Cитуация

Эта ошибка может возникать на двух различных этапах настройки GRUB: во время начальной настройки (при установке в главную загрузочную запись), и после загрузки системы при попытке запустить Linux (или любой другой раздел).

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/hda3 vga=792

Error 15: File not found
Press any key to continue...

Решение: проблема при начальной настройке

Эта ошибка выдается, если невозможно найти указанный файл, при этом все остальное (диск, раздел) указано верно.

Довольно часто эта ошибка обозначает отсутствие файла образа ядра. Убедитесь, что необходимый файл находится на загрузочном разделе.

Чтобы выяснить точное имя вашего ядра, загрузитесь с установочного компакт-диска и смонтируйте свой корневой раздел (root), а при необходимости и загрузочный раздел (boot). Потом переключитесь (chroot) в свою систему Gentoo и выведите на экран список имеющихся файлов, чтобы увидеть доступные образы ядер:

Это перечислит все ядра на вашем загрузочном разделе. Если ваше ядро отсутствует, обеспечьте, чтобы оно было скомпилировано (с помощью genkernel или вручную):

# cd /usr/src/linux/
# make menuconfig

А так его скопировать в загрузочный раздел:

# cp /usr/src/linux/arch/i386/boot/bzImage /boot

Проверьте, что имя ядра точно совпадает с указанным в файле grub.conf. Также, убедитесь, что строчка kernel в вашем файле grub.conf (menu.lst) явно или неявно указывает на нужный раздел.

Еще замечена ошибка, когда BIOS игнорирует диск, на котором находится ядро или стадии grub. Кроме того, на разделе, на котором grub хранит свои стадии, не должна использоваться настройка программного RAID-5 (или другой технологии деления на полосы).

Решение: проблема загрузки раздела

Прежде всего, убедитесь в правильности используемых строк root и setup.

Если вы уверены, что они правильные, тогда возможно, вы используете дефектную версию GRUB (0.93.20031222). Обновите свое дерево портежей или замаскируйте эту версию grub:
(Выполните это из изолированной среды)

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

Также можно попробовать сценарий grub-install, как рекомендовано авторами GRUB:
(Параметр —root-directory необходим, если вы используете отдельный
загрузочный раздел. В других случаях его следует опустить)

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

Если ничего из этого не помогает, возможно, ваш раздел поврежден. Проверьте раздел на наличие ошибок:
(Убедитесь, что загрузочный раздел, здесь /dev/hda1, не смонтирован)

—————

Error 16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.

————

Error 17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

Ошибка Grub 17

Ситуация

root (hd0,0)
filesystem type unknown partition type 0x7

Error 17 : Cannot mount selected partition

Решение

Эта ошибка выдается, если требуемый раздел существует, но тип файловой системы не опознается GRUB.

Убедитесь в правильности настройки root(x,y) в своем grub.conf.

Кроме того, если вы пытаетесь загрузить Windows, обеспечьте, чтобы в вашем файле grub.conf были строки root (hdX,Y) (или rootnoverify (hdX,Y)) и chainloader (hdX,Y)+1.

————

Error 18 : Selected cylinder exceeds maximum 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).

Ошибка Grub 18

Ситуация

kernel (hd1,4)/bzImage root=/dev/hdb7

Error 18: Selected cylinder exceeds max supported by BIOS

Решение

Эта ошибка возникает при попытке чтения по линейному адресу блока за пределами транслируемой BIOS области. Обычно это случается, если размер вашего диска больше, чем BIOS может обработать (512МБ для дисков IDE на старых компьютерах, или больше 8ГБ вообще).

Попробуйте обновить свой BIOS и/или перенести загрузочный раздел в начало (или хотя бы в пределы соответствующей области).

—————

Error 19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a Linux kernel.
Error 20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of such modules to a non-Multiboot-aware kernel.
Error 21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
Error 22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn’t on the selected disk.
Error 23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
Error 24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it’s a great debugging tool).
Error 25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
Error 26 : Too many symbolic links
This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.
Error 27 : Unrecognized command
This error is returned if an unrecognized command is entered on the command-line or in a boot sequence section of a configuration file and that entry is selected.
Error 28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won’t fit into memory or it is simply too big.
Error 29 : Disk write error
This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.
Error 30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
Error 31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command install). In this case, you should mount the partition with the `-o notail’ option.
Error 32 : Must be authenticated
This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.
Error 33 : Serial device not configured
This error is returned if you try to change your terminal to a serial one before initializing any serial device.
Error 34 : No spare sectors on the disk
This error is returned if a disk doesn’t have enough spare space. This happens when you try to embed Stage 1.5 into the unused sectors after the MBR, but the first partition starts right after the MBR or they are used by EZ-BIOS.

——-

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

Решение

Согласно этой теме, это может быть вызвано автоматическим определением дисков вашим BIOS. Попробуйте установить в BIOS тип диска User Type HDD.

Другая возможная причина: в вашу главную загрузочную запись (MBR) был установлен Grub, и вы попытались переустановить его (например, из-за замены жестких дисков), но использовали неправильные команды setup и root.

8.  Опрос устройств для поиска дисков, обслуживаемых BIOS. Может занять длительное время.

Ситуация

При попытке установки grub зависает, выдав следующую строку:

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

Решение

Одной названной причиной была экзотическая конфигурация дисков, типа установки на одном шлейфе дисков ультра/не-ультра DMA.

9.  При установке Grub он просто зависает

Ситуация

При установке grub зависает:

(на этом установка останавливается)

Решение

Если у вас нет привода для дискет, указали ли вы параметр —no-floppy?

10.  Распаковка Linux…выполнено, загрузка ядра.

Ситуация

Систем зависает после вывода следующей строки:

Uncompressing Linux... Ok, booting the kernel.

Решение

Строго говоря, это не ошибка Grub. Одна из возможных причин — неверная работа ACPI, при включенной поддержке в ядре. Попробуйте отключить его в своем BIOS или ядре.

11.  Grub просто выдает свою командную строку

Ситуация

При загрузке системы выводится командная строка grub вместо списка вариантов загрузки, определенного в вашем файле grub.conf.

Решение

Смонтируйте свой загрузочный раздел и убедитесь в существовании файла grub/grub.conf.

# mount /dev/hda1 /mnt/gentoo/boot
# cat /mnt/gentoo/boot/grub/grub.conf

Так же удостоверьтесь, что символьная ссылка menu.lst существует:

# 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

Если нет, заново создайте ее:

# cd /mnt/gentoo/boot/grub
# ln -snf grub.conf menu.lst

Если необходимо, переустановите grub:
(запускайте изнутри изолированной среды (chroot) )

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

12.  Невозможно обнаружить устройство для /boot/boot: отсутствует или не блочное устройство

Ситуация

При запуске grub-install в процессе установки GRUB выдается следующая ошибка:

# grub-install --root-directory=/boot /dev/hda
Could not find device for /boot/boot: not found or not a block device

Решение

Убедитесь, что вы не забыли следующее:

# cp /proc/mounts /etc/mtab

13.  После нажатия на ENTER в меню Grub система перезагружается

Ситуация

При загрузке после нажатия на ENTER в меню Grub система перезагружается.

Решение

Попробуйте отключить поддержку кадрового буфера в своем ядре. Если это не поможет, отключите APM и ACPI.

14.  После нажатия на ENTER в меню Grub экран становится чистым

Ситуация

Во время загрузки, после нажатия клавиши ENTER в меню Grub экран очищается, но система отзывается (например, можно помигать светодиодом клавиши numlock).

Решение

Отключите кадровый буфер (обычно требуется удалить запись vga=XYZ из файла grub.conf) и проверьте выбранную архитектуру процессора в конфигурации ядра.

15.  Исчезновение картинки Grub

Ситуация

При загрузке системы вы лишены нарядной заставки Gentoo.

Решение

Прежде всего, проверьте, существует ли файл заставки, указанный в вашем grub.conf. Если причина в этом — проверьте сценарий ebuild grub. Возможно, заставочная картинка в используемой версии закомментирована.

16.  Отказ при загрузке Windows со второго жесткого диска

Ситуация

После выбора раздела Windows система отказывается загружаться без видимой причины.

Решение

cyrillic сообщает нам, что можно «отобразить» (map) ваши диски в другом порядке, изменив запись для Windows в файле grub.conf таким образом:

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

17.  При попытке установить Grub появляется ошибка сегментации

Ситуация

Ситуация, описанная ниже, касается только grub-0.95.x в момент установки Grub в загрузочный сектор.

grub> root (hd0,0)
grub> setup (hd0)
Segmentation fault

Решение

Ошибка, вызывающая данную проблему, известна и исправлена в grub версии 0.96. Также известно, что grub 0.94 r1 и grub 0.94 r2 должны работать правильно. Если и они дают сбой, можно попытаться установить grub-static, который на текущий момент стабилен на amd64 и нестабилен на x86 (~x86). Для получения дополнительно информации обратитесь к ошибке #79378.

 

14.3 Errors reported by the Stage 2

The general way that the Stage 2 handles errors is to abort the
operation in question, print an error string, then (if possible) either
continue based on the fact that an error occurred or wait for the user to
deal with the error.

The following is a comprehensive list of error messages for the Stage 2
(error numbers for the Stage 1.5 are listed before the colon in each
description):

1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn’t fit the
syntax/rules listed in the Filesystem.
2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but
something like a symbolic link, directory, or FIFO.
3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an
internal error. This is usually from a corrupt file.
4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed
file is bad.
5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the
partition table fail. This is a bad sign.
6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command points to incompatible
or corrupt versions of the stage1 or stage2. It can’t detect corruption
in general, but this is a sanity check on the version numbers, which
should be correct.
7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the
1MB boundary. The Linux zImage format is a special case and can be
handled since it has a fixed loading address and maximum size.
8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence
without having a kernel to start.
9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons
which are unknown.
10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot
header requires a feature that is not recognized. The point of this is
that the kernel requires special handling which GRUB is probably
unable to provide.
11 : Unrecognized device string
This error is returned if a device string was expected, and the string
encountered didn’t fit the syntax/rules listed in the Filesystem.
12 : Invalid device requested
This error is returned if a device string is recognizable but does not
fall under the other device errors.
13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not
recognized as Multiboot or one of the supported native formats (Linux
zImage or bzImage, FreeBSD, or NetBSD).
14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of
the files it can read. This error is returned when the user runs into
such a limit.
15 : File not found
This error is returned if the specified file name cannot be found, but
everything else (like the disk/partition info) is OK.
16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal
error caused by the sanity checks of the filesystem structure on disk
not matching what it expects. This is usually caused by a corrupt
filesystem or bugs in the code handling it in GRUB.
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the
filesystem type cannot be recognized by GRUB.
18 : Selected cylinder exceeds maximum 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).
19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a
Linux kernel.
20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading
a Multiboot kernel. It only makes sense in this case anyway, as GRUB has
no idea how to communicate the presence of such modules to a
non-Multiboot-aware kernel.
21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name
refers to a disk or BIOS device that is not present or not recognized by
the BIOS in the system.
22 : No such partition
This error is returned if a partition is requested in the device part of
a device- or full file name which isn’t on the selected disk.
23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and
encountered bad data.
24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk
partition. This generally happens because of a corrupt filesystem on the
disk or a bug in the code handling it in GRUB (it’s a great debugging
tool).
25 : Disk read error
This error is returned if there is a disk read error when trying to
probe or read data from a particular disk.
26 : Too many symbolic links
This error is returned if the link count is beyond the maximum
(currently 5), possibly the symbolic links are looped.
27 : Unrecognized command
This error is returned if an unrecognized command is entered on the
command-line or in a boot sequence section of a configuration file and
that entry is selected.
28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is
either trying to load its data such that it won’t fit into memory or it
is simply too big.
29 : Disk write error
This error is returned if there is a disk write error when trying to
write to a particular disk. This would generally only occur during an
install of set active partition command.
30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by
block-lists (e.g. the command install). In this case, you
should mount the partition with the `-o notail‘ option.
32 : Must be authenticated
This error is returned if you try to run a locked entry. You should
enter a correct password before running such an entry.
33 : Serial device not configured
This error is returned if you try to change your terminal to a serial
one before initializing any serial device.
34 : No spare sectors on the disk
This error is returned if a disk doesn’t have enough spare space. This
happens when you try to embed Stage 1.5 into the unused sectors after
the MBR, but the first partition starts right after the MBR or they are
used by EZ-BIOS.

Ezoic

 

Problem

All I get is "grub" or a "grub>" prompt when I try and boot

Solution

You have to install GRUB on the MBR (Master Boot Record). To do this just follow this steps:

READ THIS FIRST !!

First you will need to know what Grub calls the hard disk drive partition that holds the required files.

A quick aside :- There are three ways of defining hard disk drives and their partitions. The first, that you’re most probably familiar with, is Windows/MS-DOS letters (such as C: or D: ).

The second is Linux’s method, which is to give the first device (hard disk drive or CD-ROM drive) on the first IDE (ribbon) cable the name /dev/hda, the second device (hard disk drive or CD-ROM drive) on the first cable is called /dev/hdb, the first device (hard disk drive or CD-ROM drive) on the second cable is called /dev/hdc and the second device on the second cable is called /dev/hdd .

So, you’ve got the names hda, hdb, hdc, and hdd for all of your four possible IDE/SCSI attached devices, although you probably only have a hard disk on hda and a CD ROM / DVD drive on hdb.

The hard disks are, probably, cut up into partitions that are numbered from one. So the first partition on the first hard disk attached to the first IDE cable will be called /dev/hda1, while the second will be called /dev/hda2 and, for further example, the fifth partition on the second hard disk on the second IDE cable would be called /dev/hdd5.

Get the idea?

Now to the third way of naming a hard disk and partition. Grub uses the letters “hd” followed by a number starting at zero to name the hard disks. To denote a particular partion a comma and a further number, again starting at zero is added. All of this is surrounded by brackets ().

So to Grub, the first hard disk drive attached to the first IDE/SCSI cable is called (hd0) , and to specify the first partition on that drive you would need to type (hd0,0)

(First of all, enter your BIOS setup and in BOOT Sequence window choose to boot with CDROM first.) Once the server is up in the live CD, you need to find out which is the correct partition containing the boot directory.

Issue the below command to find this.

grub> find /boot/grub/stage1

and you’ll get returned the hard disk name and partition that has that file (see above for how Grub names these). However, if you have a separate /boot partition, remove /boot from the above command.

grub> find /grub/stage1
(hd0,0)

You can see (hd0,0). The output of this command is the name of the hard disk and partition that holds the stage1 file.

So, when you tried this, you got (hd0,0) returned to you. This tells me that your /boot/ folder lives on the first partition on hard disk on the first IDE cable. If it had returned (hd0,1) instead, that would have shown you that the /boot/ folder lived on the second partition of the first hard disk on the first IDE cable.

Once we have found this out we need to give Grub this in the next commands.

The root command tells Grub where to base all of its file path searches from. We take the hard disk and partition, given by the find command and use it with the root command, like so :-

grub> root (hd0,0)

Next comes the kernel command. This tells Grub the name of the kernel (core part of Linux) that you want to load when, later, you do the boot command.

As there is no way that you can remember the full name of the kernel, you can use the tab key facility in Grub (the tab key is that one with two opposite facing horizontal arrows that sit above the Caps Lock key on most keyboards).

HOLD ON !!

Let me explain the root command with example. If I did nor give root hd0,0) and pressed tab after typing kernel, you can see no output fro grub. This happens as we have not specified to grub a base harddisk and partition where it can look for kernel files.

grub> find /grub/stage1
 (hd0,0)

grub> kernel /
Error 12: Invalid device requested

Now I am giving root (hd0,0) to grub. Now grub can suggest you options as grub now know where to look for possible files.

grub> root (hd0,0)
 Filesystem type is ext2fs, partition type 0x83

grub> kernel /
 Possible files are: grub symvers-2.6.9-100.ELsmp.gz boot symvers-2.6.9-89.35.1.ELsmp.gz vmlinuz-2.6.9-89.35.1.ELsmp initrd-2.6.9-100.ELsmp.img grub.OLD System.map-2.6
.9-023stab053.2-enterprise System.map-2.6.9-89.35.1.ELsmp initrd-2.6.9-89.35.1.ELsmp.img config-2.6.9-89.35.1.ELsmp System.map-2.6.9-100.ELsmp message config-2.6.9-100
.ELsmp initrd-2.6.9-023stab053.2-enterprise.img vmlinuz-2.6.9-100.ELsmp lost+found message.ja vmlinux-2.6.9-023stab053.2-enterprise vmlinuz-2.6.9-023stab053.2-enterpri
se

Thats enough for root stuff. Carry on below.

Load the kernel. If you dont know with which kernel the server was up, follow the steps below.

Mount the harddrive partition to get the /boot partition. If the /boot is separate partition, mount it, otherwise mount / partition. In the below example, its separate partition.

[root@vps9 grub]# fdisk  -l

Disk /dev/sda: 139.9 GB, 139978604544 bytes
255 heads, 63 sectors/track, 17018 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          65      522081   83  Linux
/dev/sda2              66         587     4192965   82  Linux swap
/dev/sda3             588        1109     4192965   82  Linux swap
/dev/sda4            1110       17018   127789042+   5  Extended
/dev/sda5            1110        1370     2096451   83  Linux
/dev/sda6            1371       17018   125692528+  83  Linux

How to confirm which is the /boot partition? Look for the * in the “Boot” coloumn in the fdisk output. Now mount it.

mkdir /oldboot
mount /dev/sda1 /oldboot
cat /oldboot/grub/grub.conf

Note the default loaded kernel grub lines. Eg :

title Virtuozzo (2.6.9-023stab053.2-enterprise)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-023stab053.2-enterprise ro root=LABEL=/ console=ttyS0,57600 console=tty debug
        initrd /initrd-2.6.9-023stab053.2-enterprise.img

Go back to grub prompt and pass the kernel

grub> kernel /vmlinuz-2.6.9-023stab053.2-enterprise ro root=LABEL=/

NOTE:-

If with “root=LABEL=/” the kernel failed to boot, then get the / partition and supply it as root=/dev/sda5. You can check it by using e2label.

[root@vps9 grub]# e2label /dev/sda5
/

Now pass the initrd

grub> initrd /initrd-2.6.9-023stab053.2-enterprise.img

Boot the passed kernel

grub> boot

Linux will now boot.

Re-installing Grub from within Linux

Once the server is up, ssh into the server. From command prompt you will need to enter the grub-install command. This takes one parameter – the name of the hard disk whose master boot record (mbr) will be having grub installed on it.

[root@vps9 grub]# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

# this device map was generated by anaconda
(fd0)     /dev/fd0
(hd0)     /dev/sda

That will do.


If you’re still having boot problems

Grub errors messages

The complete list of error messages are at the end of this HowTo.

The two that I’ve bumped into are

Error 15
File note found.

Which normally means that you have mistyped the file name. Try using the tab key to help you fill in Grub commands.

Error 17
Unable to mount (use) the partition.

This may be that you have mistyped the number (remember, Grub counts from zero and not one), or that the partition that you pointed at does not have a valid file system.

Kernel panics If you get an error message, while booting, along these lines :-

Kernel panic: No init found. Try passing init= option to kernel

Your kernel needs something called an “initrd” and can’t find one. There are a number of reasons that this can happen.

-> You haven't put an initrd statement in your Grub.conf or while at the Grub prompt.

Easy one to fix, just make sure that you have the correct (and correctly spelt) initrd for Grub to pass to the kernel. Have a look at the “All I get is either a “grub>” prompt or just “grub” when I try and boot” section of this HowTo.

-> The "root=" parameter on the kernel statement does not point to the correct hard disk and partition.

The “root=” parameter on the kernel statement often says “root=LABEL=/”, which often works just fine, but sometimes you have to be more exact. I’ve only found this to be a problem when I’m using a separate /boot and root (/) partition, or when Mandrake is involved. So change the “LABEL=/” bit to the partition that contains your root (/) folder. If your root (/) partition is on /dev/hda6, for example, then make the root statement look like “root=/dev/hda6”.

-> The initrd file has become corrupted or been deleted.

You’ll need to get a Linux up using either a distribution/rescue CD or a rescue diskette. Then change the root to your hard disk drive by entering, from the shell command prompt, chroot /dev/hdxy . Where the “x” is the letter of the hard disk and the “y” is the number of the partition. So, if your normal /boot folder is on /dev/hda2 , then enter chroot /dev/hda2/

Then change directory to the /boot folder, move the old .img file out of the way – assuming it’s still there – by renaming it to *.img.old , and then create a new initrd by typing mkinitrd -v -f initrd-KERNEL-VERSION.img KERNEL-VERSION . Replace “KERNEL-VERSION” with the version of the kernel that you are trying to load. If you do a full listing of the /boot folder you’ll see the same numbers and letters in the full kernel file’s name (eg. for the kernel called “vmlinuz-2.4.22-10mdk” , you would want to create an initrd called “initrd-2.4.22-10mdk.img” and the kernel version would be “2.4.22-10mdk” ).

Footnote: – Search order at boot up time. Your PC will look for an operating system in a number of places, in an order set out in the BIOS. If you find that your PC refuses to look for an operating system in either your floppy diskette drive (if you are attempting to boot from a rescue diskette) or from your CD-ROM / DVD drive (if you are trying to boot from an installation CD / DVD), then you’ll need to enter your BIOS setup.

To enter the BIOS setup screens you will need to press either the Del key or the F2 key during the POST checks (which one is dependent on your PC). So, turn your PC on and while it is giving you all of those messages about how much RAM you have and what disks it knows about, press the relevant key for your PC. Keep pressing until you are presented with either a blue or grey BIOS screen.

Using a combination of the cursor arrow keys, the tab key and the enter key, navigate your way to the option to change the boot order.

On an AMIBIOS (grey) screen, you will need to move right to the Boot option, press Enter and then move down to the Boot Device Priority option and press Enter , then select the first device, press Enter and select from the list. When you’ve picked the correct boot device (Floppy or CDROM), press the Esc key to exit up the levels, then move across to Exit and select Exit saving changes .

On an Award BIOS (blue) screen, move down to the Advanced BIOS Features, press Enter, then move down to the First Boot Device, again press Enter and select from the list. Once done, press the Esc key to move back up levels and then across and down to the Save & Exit Setup option.
There are other BIOSs out there , but these are to only two that I have access to. Hopefully, though, you’ll have got the idea of what to do, from the above description. And you can always escape out of trouble by repeatedly pressing the Esc key.

Grub Error messages :-

1 : Filename must be either an absolute filename or blocklist This error is returned if a file name is requested which doesn’t fit the syntax/rules listed in the Filesystem.

2 : Bad file or directory type This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.

3 : Bad or corrupt data while decompressing file This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.

4 : Bad or incompatible header in compressed file This error is returned if the file header for a supposedly compressed file is bad.

5 : Partition table invalid or corrupt This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.

6 : Mismatched or corrupt version of stage1/stage2 This error is returned if the install command points to incompatible or corrupt versions of the stage1 or stage2. It can’t detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
7 : Loading below 1MB is not supported This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.

8 : Kernel must be loaded before booting This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.

9 : Unknown boot failure This error is returned if the boot attempt did not succeed for reasons which are unknown.

10 : Unsupported Multiboot features requested This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is probably unable to provide.

11 : Unrecognized device string This error is returned if a device string was expected, and the string encountered didn’t fit the syntax/rules listed in the Filesystem.
12 : Invalid device requested This error is returned if a device string is recognizable but does not fall under the other device errors.

13 : Invalid or unsupported executable format This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).

14 : Filesystem compatibility error, cannot read whole file Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.

15 : File not found This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.

16 : Inconsistent filesystem structure This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.

17 : Cannot mount selected partition This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

18 : Selected cylinder exceeds maximum 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).

19 : Linux kernel must be loaded before initrd This error is returned if the initrd command is used before loading a Linux kernel.

20 : Multiboot kernel must be loaded before modules This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of such modules to a non-Multiboot-aware kernel.

21 : Selected disk does not exist This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.

22 : No such partition This error is returned if a partition is requested in the device part of a device- or full file name which isn’t on the selected disk.

23 : Error while parsing number This error is returned if GRUB was expecting to read a number and encountered bad data.

24 : Attempt to access block outside partition This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it’s a great debugging tool).

25 : Disk read error This error is returned if there is a disk read error when trying to probe or read data from a particular disk.

26 : Too many symbolic links This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.

27 : Unrecognized command This error is returned if an unrecognized command is entered on the command-line or in a boot sequence section of a configuration file and that entry is selected.

28 : Selected item cannot fit into memory This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won’t fit into memory or it is simply too big.

29 : Disk write error This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.

30 : Invalid argument This error is returned if an argument specified to a command is invalid.

31 : File is not sector aligned This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command `install’). In this case, you should mount the partition with the `-o notail’ option.

32 : Must be authenticated This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.

33 : Serial device not configured This error is returned if you try to change your terminal to a serial one before initializing any serial device.

34 : No spare sectors on the disk This error is returned if a disk doesn’t have enough spare space. This happens when you try to embed Stage 1.5 into the unused sectors after the MBR, but the first partition starts right after the MBR or they are used by EZ-BIOS.

Понравилась статья? Поделить с друзьями:
  • Error 1406 mysql
  • Error 1406 22001 data too long for column
  • Error 1405 mysql
  • Error 1404 parsec
  • Error 1396 hy000 operation create user failed for zabbix localhost