Results 1 to 4 of 4

Thread: Help with grub error 2

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

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

  3. #3
    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?

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

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,250,382.07293 seconds with 16 queries