Announcement

Collapse
No announcement yet.

Help with grub.

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

    Help with grub.

    hello guys, it's been nearly 2 weeks now since i have managed to boot directly to Kubuntu. I've had 3 different grub errors over this period (15, 17 +22) I am now back to error: 15 file not found.

    i have searched the forum and tried to follow the howto's, i also have the SuperGrubDisk which tells me it's repaired Grub, yet in a week of using that disk i have only managed to boot once.

    i have 2 hard drives, one with 3 partitions, the other has a single partition. i don't have windows installed, i made a complete switch about 2 months ago.

    if anybody can help me fix this problem I'd really appreciate the time and effort. thanks

    #2
    Re: Help with grub.

    You should post your boot menu for us to see. That will be the file /boot/grub/menu.lst in your “main” OS—the one that controls the boot menu, and the one from which you installed GRUB lastly.

    Where did you install GRUB to? The MBR of the first bootable hard drive?

    For now ---

    “File not found” is many times caused by a typo or an incorrect device reference.
    So, in that “main” /boot/grub/menu.lst, look at the boot entries – look at the boot entry corresponding to the OS you tried to boot when you got that Error 15.
    Now, examine 3 statements there:
    root
    kernel
    initrd

    Look for typos, misspellings, and look at the root (hdx,y) statement—Does it look right? Is that the proper device reference where the kernel and initrd statements are to be found?

    GRUB is looking for one of those files (kernel or initrd), based on what the menu.lst says, and GRUB can’t find it exactly where the menu.lst says it should be.

    To get more help, try to give us more information.
    What OS did you install lastly?
    What’s your menu.lst look like, especially the “bad” statement causing the error?

    I’ll be in an out this p.m.., but many of us have been down this road!

    (P.S. This is a very solvable problem, so not to worry (too much)!)

    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: Help with grub.

      Hello mike. here is my menu.lst

      ## ## End Default Options ##

      title Ubuntu, kernel 2.6.20-15-generic
      root (hd0,0)
      kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro quiet splash
      initrd /boot/initrd.img-2.6.20-15-generic
      quiet
      savedefault

      title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
      root (hd0,0)
      kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro single
      initrd /boot/initrd.img-2.6.20-15-generic

      title Ubuntu, memtest86+
      root (hd0,0)
      kernel /boot/memtest86+.bin
      quiet

      ### END DEBIAN AUTOMAGIC KERNELS LIST
      i think kubuntu should be installed on hd0.1. not hd0.0 as menu.lst says.. (is there a way to check this using the LiveCD?)

      my last install that booted was kubuntu 7.04 - which i upgraded to 7.10 using Adept, rebooted and everything was fine. after shutting my computer down normally, i returned from work the following day and that's when my grub problem first started. I have reinstalled kubuntu 7.04 another 4 or 5 times since then.

      Comment


        #4
        Re: Help with grub.

        here is the result of fdisk if it helps -
        ubuntu@ubuntu:~$ sudo fdisk -lu

        Disk /dev/hda: 60.0 GB, 60040544256 bytes
        255 heads, 63 sectors/track, 7299 cylinders, total 117266688 sectors
        Units = sectors of 1 * 512 = 512 bytes

        Device Boot Start End Blocks Id System
        /dev/hda1 63 19615364 9807651 83 Linux
        /dev/hda2 19615365 22539194 1461915 82 Linux swap / Solaris
        /dev/hda3 22539195 117258434 47359620 83 Linux

        Disk /dev/hdb: 122.9 GB, 122942324736 bytes
        255 heads, 63 sectors/track, 14946 cylinders, total 240121728 sectors
        Units = sectors of 1 * 512 = 512 bytes

        Device Boot Start End Blocks Id System
        /dev/hdb1 63 240107489 120053713+ 83 Linux

        Comment


          #5
          Re: Help with grub.

          Please post your /etc/fstab file as well.
          Windows no longer obstructs my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #6
            Re: Help with grub.

            Is that the whole of your menu.lst file or just the end of it? Because if that is the whole file then there are huge chunks missing.

            Comment


              #7
              Re: Help with grub.

              Your “main” Kubuntu is the one on sda1? – The first hard drive, the first partition?
              If so, that is (hd0,0), so that looks OK.
              (GRUB counts hard drivse hdx and partitions starting from zero; so (hd0,0) is hard drive 0, partition 0 – the first hard drive, the first partition.)

              This one, right? – Is this your “main” Kubuntu? On hda1? This is the one that gives you “File not found”? --

              title Ubuntu, kernel 2.6.20-15-generic
              root (hd0,0)
              kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro quiet splash
              initrd /boot/initrd.img-2.6.20-15-generic
              quiet
              savedefault

              I’m assuming we do not have to re-install GRUB here.
              If we do, and if THAT (above) is your “main” Kubuntu, then it will NOT hurt to do so, and so do it as follows:

              Open K-Menu > System > Konsole (use a Live CD if necessary)
              then type
              sudo grub
              press <Enter>
              type at the grub> each of these, followed by <Enter> after each:

              grub> root (hd0,0)
              grub> setup (hd0)
              grub> quit
              $ exit

              then re-boot to test it.


              If this is your Kubuntu giving you problems:

              title Ubuntu, kernel 2.6.20-15-generic
              root (hd0,0)
              kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro quiet splash
              initrd /boot/initrd.img-2.6.20-15-generic
              quiet
              savedefault

              then, as Snowhog is getting at, you need to make sure that the UUID string 19572df0-c05d-422f-bc3f-851e65c00ad7 is correct.
              You can check your UUIDs as follows (commands to type at Konsole):
              UUIDs, listing:
              From Live CD and HDD: ls /dev/disk/by-uuid/ -alh # these are “ell’s” as in the word “list”
              From HDD only: blkid # same here, “l” as in “list”


              You are using 2.6.20-15-generic and not using 2.6.20-16-generic, right? (I’m thinking I have -16?) If you look under /boot in Kubuntu, do you see that kernel (vmlinuz-2.6.20-15-generic)?

              I don’t see a misspelling or a comma that should be a period (or reverse), dashes are in place, etc. Sometimes people spell vmlinuz as vmlinux (I have before), but not in your case here. Looks OK to me.


              You can "tag" or identify your Kubuntu by writing something catchy in the title line -- you edit menu.lst as root then File > Save and File > Exit.
              For example, you might change it as follows:
              title My naughty Kubuntu -- Ubuntu, kernel 2.6.20-15-generic



              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: Help with grub.

                /etc/fstab -
                # /etc/fstab: static file system information.
                #
                # <file system> <mount point> <type> <options> <dump> <pass>
                proc /proc proc defaults 0 0
                # /dev/hda1
                UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 / ext3 defaults,errors=remount-ro 0 1
                # /dev/hda3
                UUID=bf45cb71-2a59-4098-a56e-c718b2548011 /home/hda3 ext3 defaults 0 2
                # /dev/hdb1
                UUID=1f71d2e3-466e-4383-98cb-50fae0fc227a /home/hdb1 ext3 defaults 0 2
                # /dev/hda2
                UUID=7a284e22-95fd-45a4-a8b7-669d58d4d674 none swap sw 0 0
                /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
                /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
                /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
                that is just the end of menu.lst which contained the root,kernel,initrd enteries. if the rest is needed i can post that too

                Comment


                  #9
                  Re: Help with grub.

                  We really only need the boot entries for any naughty OSs that are not booting.
                  An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                  Comment


                    #10
                    Re: Help with grub.

                    You have just the one Linux OS -- Kubuntu -- on the first hard drive the first partition?
                    I notice you have a 2nd HDD hdb that looks like it could be partitioned for an OS at hdb1?

                    I also notice that perhaps you have both SATA and IDE hard drives?
                    If so, it really would not hurt (and might help) to re-install GRUB as explained in my post above -- ASSUMING your main Kubuntu is the one shown on sda1.
                    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                    Comment


                      #11
                      Re: Help with grub.

                      And the UUID looks right.
                      (Of course, you might check it at Konsole, using the commands I gave above, but, chances are that it is correct...)
                      An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                      Comment


                        #12
                        Re: Help with grub.

                        I'm using a purchased livecd with no updates, so me running version 2.6.20-15-generic rather than 2.6.20-16-generic sounds correct.

                        ubuntu@ubuntu:~$ ls /dev/disk/by-uuid/ -alh
                        total 0
                        drwxr-xr-x 2 root root 120 2007-11-10 17:31 .
                        drwxr-xr-x 5 root root 100 2007-11-10 17:31 ..
                        lrwxrwxrwx 1 root root 10 2007-11-10 17:31 19572df0-c05d-422f-bc3f-851e65c00ad7 -> ../../hda1
                        lrwxrwxrwx 1 root root 10 2007-11-10 17:31 1f71d2e3-466e-4383-98cb-50fae0fc227a -> ../../hdb1
                        lrwxrwxrwx 1 root root 10 2007-11-10 17:31 7a284e22-95fd-45a4-a8b7-669d58d4d674 -> ../../hda2
                        lrwxrwxrwx 1 root root 10 2007-11-10 17:31 bf45cb71-2a59-4098-a56e-c718b2548011 -> ../../hda3
                        ubuntu@ubuntu:~$
                        hda1 - UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 is where i have installed kubuntu.

                        yes, just the one installation on the first partition.
                        hdb has one partition, but there's no OS installed there, i have it mounted now and there are just a few of my personal files.

                        also i have no sata drives. i have the connections but only ide drives

                        Comment


                          #13
                          Re: Help with grub.

                          Definitely, then, first try re-installing grub before we look at any of this some more
                          (see post above about that)
                          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                          Comment


                            #14
                            Re: Help with grub.

                            Okay, I think now is the time to take a look at the complete /boot/grub/menu.lst file. Please post for a review.
                            Windows no longer obstructs my view.
                            Using Kubuntu Linux since March 23, 2007.
                            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                            Comment


                              #15
                              Re: Help with grub.

                              okay, i just completed -
                              grub> root (hd0,0)
                              grub> setup (hd0)
                              grub> quit
                              $ exit
                              which made no change, still error: 15

                              full menu.lst -
                              # menu.lst - See: grub(8), info grub, update-grub(8)
                              # grub-install(8), grub-floppy(8),
                              # grub-md5-crypt, /usr/share/doc/grub
                              # and /usr/share/doc/grub-doc/.

                              ## default num
                              # Set the default entry to the entry number NUM. Numbering starts from 0, and
                              # the entry number 0 is the default if the command is not used.
                              #
                              # You can specify 'saved' instead of a number. In this case, the default entry
                              # is the entry saved with the command 'savedefault'.
                              # WARNING: If you are using dmraid do not change this entry to 'saved' or your
                              # array will desync and will not let you boot your system.
                              default 0

                              ## timeout sec
                              # Set a timeout, in SEC seconds, before automatically booting the default entry
                              # (normally the first entry defined).
                              timeout 3

                              ## hiddenmenu
                              # Hides the menu by default (press ESC to see the menu)
                              hiddenmenu

                              # Pretty colours
                              #color cyan/blue white/blue

                              ## password ['--md5'] passwd
                              # If used in the first section of a menu file, disable all interactive editing
                              # control (menu entry editor and command-line) and entries protected by the
                              # command 'lock'
                              # e.g. password topsecret
                              # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
                              # password topsecret

                              #
                              # examples
                              #
                              # title Windows 95/98/NT/2000
                              # root (hd0,0)
                              # makeactive
                              # chainloader +1
                              #
                              # title Linux
                              # root (hd0,1)
                              # kernel /vmlinuz root=/dev/hda2 ro
                              #

                              #
                              # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

                              ### BEGIN AUTOMAGIC KERNELS LIST
                              ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
                              ## by the debian update-grub script except for the default options below

                              ## DO NOT UNCOMMENT THEM, Just edit them to your needs

                              ## ## Start Default Options ##
                              ## default kernel options
                              ## default kernel options for automagic boot options
                              ## If you want special options for specific kernels use kopt_x_y_z
                              ## where x.y.z is kernel version. Minor versions can be omitted.
                              ## e.g. kopt=root=/dev/hda1 ro
                              ## kopt_2_6_8=root=/dev/hdc1 ro
                              ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
                              # kopt=root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro

                              ## Setup crashdump menu entries
                              ## e.g. crashdump=1
                              # crashdump=0

                              ## default grub root device
                              ## e.g. groot=(hd0,0)
                              # groot=(hd0,0)

                              ## should update-grub create alternative automagic boot options
                              ## e.g. alternative=true
                              ## alternative=false
                              # alternative=true

                              ## should update-grub lock alternative automagic boot options
                              ## e.g. lockalternative=true
                              ## lockalternative=false
                              # lockalternative=false

                              ## additional options to use with the default boot option, but not with the
                              ## alternatives
                              ## e.g. defoptions=vga=791 resume=/dev/hda5
                              # defoptions=quiet splash

                              ## should update-grub lock old automagic boot options
                              ## e.g. lockold=false
                              ## lockold=true
                              # lockold=false

                              ## Xen hypervisor options to use with the default Xen boot option
                              # xenhopt=

                              ## Xen Linux kernel options to use with the default Xen boot option
                              # xenkopt=console=tty0

                              ## altoption boot targets option
                              ## multiple altoptions lines are allowed
                              ## e.g. altoptions=(extra menu suffix) extra boot options
                              ## altoptions=(recovery) single
                              # altoptions=(recovery mode) single

                              ## controls how many kernels should be put into the menu.lst
                              ## only counts the first occurence of a kernel, not the
                              ## alternative kernel options
                              ## e.g. howmany=all
                              ## howmany=7
                              # howmany=all

                              ## should update-grub create memtest86 boot option
                              ## e.g. memtest86=true
                              ## memtest86=false
                              # memtest86=true

                              ## should update-grub adjust the value of the default booted system
                              ## can be true or false
                              # updatedefaultentry=false

                              ## ## End Default Options ##

                              title Ubuntu, kernel 2.6.20-15-generic
                              root (hd0,0)
                              kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro quiet splash
                              initrd /boot/initrd.img-2.6.20-15-generic
                              quiet
                              savedefault

                              title Ubuntu, kernel 2.6.20-15-generic (recovery mode)
                              root (hd0,0)
                              kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=19572df0-c05d-422f-bc3f-851e65c00ad7 ro single
                              initrd /boot/initrd.img-2.6.20-15-generic

                              title Ubuntu, memtest86+
                              root (hd0,0)
                              kernel /boot/memtest86+.bin
                              quiet

                              ### END DEBIAN AUTOMAGIC KERNELS LIST

                              Comment

                              Working...
                              X