Grub installer hangs with error 2

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
herman

Re: Grub installer hangs with error 2

Post by herman »

The ubiquity error you mentioned could be the same as this Ubuntu launchpad bug, Bug #260001:https://bugs.launchpad.net/bugs/260001

There are several different possible causes of GRUB Error 17.
If it occurs when trying to boot Linux in a computer with only one hard disk, it most often means the partition needs a file system check.
You can run a file system check by booting your Live CD and opening Gnome Partition Editor, right-click on the partition, and click 'check', followed by 'confirm', and 'confirm for the second time in the confirmation box that pops up.

When GRUB Error 17 occurs in a computer with more than one hard disk, especially if there are one or more SCSI (SATA) discs and one or more IDE (PATA) discs, it most often means there is some miscommunication between GRUB and the BIOS as to the order the hard disks should be numbered in. (All SCSI disks first, or all IDE discs first).
The simplest way to overcome that is to go into your BIOS and switch the hard drive order around until GRUB is happy.
Otherwise, you can re-install GRUB to a different hard disk and edit some configuration files, that's the traditional way, but it's rather slow and laborious.

GRUB Error 15 used to indicate a typo in the menu.lst file, but recently it has also started to come up when you try to boot an operating system by a menu.lst file containing a uuid command from an older version of GRUB that doesn't yet have the patch for uuid support. If that seems like it could be true, then try re-installing that operating system's GRUB to the partition boot sector and using the chainloader command to it it's own boot loader and let it's own boot loader boot it. Normally that's the best way to set up a multi-boot anyway.

I hope something here will be useful to you.
Regards, Herman :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
viking777

Re: Grub installer hangs with error 2

Post by viking777 »

Quoted from the GNU/GRUB manual2 : 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.

Grub Error 2 seems to be a rare one.

Here's a link to the first instance of it I've noticed, [ubuntu] GRUB error 2... I want to kill my laptop.
Note the explanation by caljohnsmith in post #6 there, quote:The reason why is because Intrepid now formats its partitions to use a 256 byte inode file system size, whereas previous Ubuntu verions used 128 bytes. The older Grub versions choke on the newer ext3 partitions that use 256 byte inode sizes, and Grub returns an error 2
Dunno if that helps. At least you can be pleased that you are suffering from a rare disease not a common one :lol:

Here is the link to the post they mentioned, it didn't come out in the quote.

http://ubuntuforums.org/showthread.php?t=1019755
Locked

Return to “Installation & Boot”