Announcement

Collapse
No announcement yet.

Grub Error 15

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Grub Error 15

    I have a 64-bit system.

    After installing Jaunty, and rebooting I got the Error 15. So I boot back with the live cd. And tried various things.

    First of all. fdisk -l gives me
    Code:
    Disk /dev/sda: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000a7ec2           
    
      Device Boot   Start     End   Blocks  Id System
    /dev/sda1  *      1    38913  312568641  7 HPFS/NTFS
    
    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0002a530           
    
      Device Boot   Start     End   Blocks  Id System
    /dev/sdb1  *      1    60801  488384001  83 Linux 
    
    Disk /dev/sdc: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xed9eafe5           
    
      Device Boot   Start     End   Blocks  Id System
    /dev/sdc1  *      1    2611  20972826  7 HPFS/NTFS
    /dev/sdc2  *    2612    24321  174385575  f W95 Ext'd (LBA)
    /dev/sdc5      8096    24321  130335313+  7 HPFS/NTFS   
    /dev/sdc6      2612    3109   4000122  82 Linux swap / Solaris
    /dev/sdc7      3110    8095  40050013+ 83 Linux        
    
    Partition table entries are not in disk order.
    My root partition is sdc7 with ext4 file system.

    So I tried after booting to the live cd, I tried each of the following commands, rebooted, getting the same error and then back to the live cd to try the next command. The commands are the following.
    Code:
    sudo su -
    mkdir tp
    mount /dev/sdc7 tp/
    grub-install --root-directory=tp/boot --recheck /dev/sdc
    Then I thought that I might need to install it in the first disk.
    Code:
     sudo su -
    mkdir tp
    mount /dev/sdc7 tp/
    grub-install --root-directory=tp/boot --recheck /dev/sda
    Nothing again and I tried with the grub command.
    Code:
     sudo su -
    grub
    > find /boot/grub/stage1
    find /boot/grub/stage1
     (hd2,6)
    > root (hd2,6)
    root (hd2,6)
    > setup (hd2)
    setup (hd2)
     Checking if "/boot/grub/stage1" exists... yes
     Checking if "/boot/grub/stage2" exists... yes
     Checking if "/boot/grub/e2fs_stage1_5" exists... yes
     Running "embed /boot/grub/e2fs_stage1_5 (hd2)"... 17 sectors are embedded.
    succeeded
     Running "install /boot/grub/stage1 (hd2) (hd2)1+17 p (hd2,6)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
    Done.
    >quit
    But none of all these times my problem fixed.

    So I would like to ask If I miss something or if you have any idea on how can I fix my problem.
    Thanx in advance for any reply.

    #2
    Re: Grub Error 15

    Looks like you have a Windows installed.
    Looks like you previously also had another Linux installed.
    Doesn't matter, whatever ...

    If it is the case that you want GRUB to handle all the booting, and you don't mind writing GRUB to the MBR of the first BIOS boot drive (the drive BIOS is set to boot from first), then do (from Live CD):

    sudo grub
    grub>find /boot/grub/stage1
    (hd2,6)
    grub>root (hd2,6)
    grub>setup (hd0)
    grub>quit
    $exit
    reboot to test it
    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Grub Error 15

      You must install GRUB to (hd0), assuming you are booting normally (i.e., not intervening in BIOS each time to change the boot order). That will be accomplished from the above post.

      But if that doesn't work to clear the Error 15,
      add this to the mix:

      Edit /boot/grub/menu.lst (in (hd2,6) as root to include

      title Jaunty whatever etcetera
      root (hd2,6) # <= include this root statement
      kernel etc etc -- leave it as is
      initrd etc etc -- leave it as it


      (I've seen one case where the new UUID didn't snap., but the older root statement worked.)
      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

      Comment


        #4
        Re: Grub Error 15

        Thanx for your replies, I fixed it.

        [EDIT]
        I did not mention the way since I was trying various things and I can't say for sure . Sorry about that.

        Comment


          #5
          Re: Grub Error 15

          How?
          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

          Comment


            #6
            Re: Grub Error 15

            I've been banging my head over this problem for a long while, and today found the solution in this thread:


            Cause: existing [K]Ubuntu version is prior to 8.10. Those grub files won't boot from grub in later versions.

            Fix: copy grub files from the new install (mine were in a different partition) to the old directory, along with whatever menu.lst you like. Then reboot. Jaunty!

            In this example, the partition containing the new root install (and boot subdirectory) is mounted as "/new".

            Code:
            $ cd /boot/grub
            $ sudo mkdir grub-files.BAK
            $ sudo cp * grub-files.BAK/
            $ sudo cp /new/boot/grub/* .
            $ sudo cp grub-files.BAK/menu.lst .

            Comment


              #7
              Re: Grub Error 15

              edgarde, nice troubleshooting, nice work you did there.

              An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

              Comment


                #8
                Re: Grub Error 15

                Good job!

                Would you mark it [SOLVED] so it can be a help to others? Thanks!
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment

                Working...
                X