Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Help with grub error 2

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 20-03-2009
Member
 
Join Date: May 2008
Posts: 191
Help with grub error 2
  

I have a problem with the Grub bootloader, I have a hard drive (sda) where ubuntu is installed on sda1 and sda3 DSL and the problem I have is that I can only boot on sda3 dsl, when I try to boot with my ubuntu 8.10 goes as follows:

Error 2: bad file or directory type
as meaning? I have proven to reinstall grub on sda1 but remains the same
.
Greetings and thanks

Reply With Quote
  #2  
Old 20-03-2009
Member
 
Join Date: Mar 2008
Posts: 672
Re: Help with grub error 2

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.

You haven't got a good configuration of grub. Remember that (hd0)=hda or sda and (hd0,0) is the first partition of the first recognized drive.
Reply With Quote
  #3  
Old 20-03-2009
Member
 
Join Date: May 2008
Posts: 256
Re: Help with grub error 2

Hi,

I have the same problem with ubuntu and just recently got the error 18 at bootup. Changed the LBA setting in the bios, and now getting "error 2". Anyone know what error 2 actually is?
Reply With Quote
  #4  
Old 20-03-2009
Member
 
Join Date: May 2008
Posts: 308
Re: Help with grub error 2

Hi,

To fix it, download the latest release of Grub, (0.97-29ubuntu45) and remove the two modules e2fs_stage1_5 and stage2 then install them into the old /boot/grub directory of the OS on the SATA drive from which I was trying to boot, then regenerating the MBR on the SATA drive thus:

# sudo grub
grub> device (hd0) /dev/sda
grub> root (hd0,0)
grub> setup (hd0)
grub> quit

Hope this helps someone.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Help with grub error 2"
Thread Thread Starter Forum Replies Last Post
Grub is unable to boot CentOS, hangs at the Grub prompt Man-Than Operating Systems 5 07-05-2011 12:17 PM
Edit grub/defaults/grub file on triple-boot system Hishem-Remashiya Operating Systems 5 14-11-2010 06:44 AM
GRUB load shows unknown filesystem, grub rescue error aFRODITA Operating Systems 4 13-11-2010 07:34 AM
Grub error 22 Halloween Operating Systems 4 15-09-2009 05:42 PM
Grub error 17 Jaslein Operating Systems 3 14-09-2009 07:28 PM


All times are GMT +5.5. The time now is 07:22 AM.