Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Fix Grub???

  1. #1
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default Fix Grub???

    I am trying to fix an install of CentOS 5.2 and it is turning out to be a nightmare. I have reinstalled it a few times and I keep getting the same thing I go through the install process every thing seems to be fine but then I try to boot up the machine I just get “ GRUB: “ so I assumed that for some reason grub didn’t install to the MBR so I put the install cd back in and load it up in “ linux rescue “ and issued the fallowing commands
    Code:
    # chroot /mnt/sysimage
    # grub-install /dev/had
    # reboot
    When it reboots I get some grub interface. So I did some more reasearch and found that there is a menu.lst file, so I went back into linux rescue mode and found that that was missing, so I then went into VI and created this menu.lst file as per one that I found on the net
    Code:
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-92.1.1.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00
            initrd /initrd-2.6.18-92.1.1.el5.img
    title CentOS (2.6.18-92.el5)
            root (hd0,0)
            kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00
            initrd /initrd-2.6.18-92.el5.img
    But when I rebooted the machine I still got to the same grub interface.

    Dose anyone know how I can fix this problem? did I miss a step? Im really hit a brick wall on this one

    Oh and I know that this isn’t remotely related to backtrack, but I find the response time and quality of answers on this forums to be better than others I have been to...

    Cheers

  2. #2
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Gimme a few minutes, let me boot into my CentOS partition and see if I can help ya out.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  3. #3
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    Quote Originally Posted by streaker69 View Post
    Gimme a few minutes, let me boot into my CentOS partition and see if I can help ya out.
    mmm thanks

    I just had a thought, could the fact that i ran the "grub-install /dev/hda" before i created the menu.lst file effect this?

  4. #4
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Here's mine.

    Code:
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /boot/, eg.
    #          root (hd0,1)
    #          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
    #          initrd /initrd-version.img
    #boot=/dev/hda
    default=2
    timeout=5
    splashimage=(hd0,1)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.18-92.1.10.el5xen)
            root (hd0,1)
            kernel /xen.gz-2.6.18-92.1.10.el5
            module /vmlinuz-2.6.18-92.1.10.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
            module /initrd-2.6.18-92.1.10.el5xen.img
    title CentOS (2.6.18-92.el5xen)
            root (hd0,1)
            kernel /xen.gz-2.6.18-92.el5
            module /vmlinuz-2.6.18-92.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
            module /initrd-2.6.18-92.el5xen.img
    title Other
            rootnoverify (hd0,0)
            chainloader +1
    I'm dual booting XP and centOS.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  5. #5
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    That is simmlar to what i have, but the problem i am having is that i dont think that grub is even using the file

  6. #6
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Quote Originally Posted by Dissident85 View Post
    That is simmlar to what i have, but the problem i am having is that i dont think that grub is even using the file
    There is an additional line at the bottom of each section in mine. Let me see what else I can dig up.

    There is a grub.conf that appears to be a duplicate of menu.lst in /boot/grub. Have you looked at that?

    menu.lst is a symbolic link to grub.conf, didn't notice that before.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  7. #7
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    Quote Originally Posted by streaker69 View Post
    There is an additional line at the bottom of each section in mine. Let me see what else I can dig up.

    There is a grub.conf that appears to be a duplicate of menu.lst in /boot/grub. Have you looked at that?

    menu.lst is a symbolic link to grub.conf, didn't notice that before.
    and i dont think there is a grub.conf file on the box i am trying to fix...

    ok... so that might be where my problem is.

    i might copy your file, with out the Other option...

  8. #8
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Quote Originally Posted by Dissident85 View Post
    and i dont think there is a grub.conf file on the box i am trying to fix...

    ok... so that might be where my problem is.

    i might copy your file, with out the Other option...
    I think it might be wiser to rename your file to grub.conf and then make a symbolic link to menu.lst.

    you're welcome to use my file, just make sure it matches up with yours.. That you have the same kernals on the machine and such.
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

  9. #9
    Member Dissident85's Avatar
    Join Date
    Jun 2008
    Posts
    127

    Default

    ok so i changed " menu.lst " to " grub.conf " and made a sym link. i then changed root to /mnt/sysimage and ran "grub-install /dev/hda" and rebooted.

    grub now loads fine. but i think there is an error in my grub.conf file.

    i get the error

    Code:
    kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=/dev/VolGroup00/LogVol00
    
    ERROR 15: File not found
    i then tried to boot up in the second option and got the fallowing error

    Code:
    initrd /initrd-2.6.18-92.el5.img
    
    ERROR 15: File not found
    do you know how to find the location of the correct files and find what are the right kernals

  10. #10
    Senior Member streaker69's Avatar
    Join Date
    Jan 2010
    Location
    Virginville, BlueBall, Bird In Hand, Intercourse, Paradise, PA
    Posts
    3,535

    Default

    Yeah, those files are supposed to be in /boot.

    Here's what should be in /boot

    Code:
    drwxr-xr-x  4 root root    1024 Sep  6 22:29 .
    drwxr-xr-x 25 root root    4096 Oct 16 20:55 ..
    -rw-r--r--  1 root root   65292 Aug  5 09:11 config-2.6.18-92.1.10.el5xen
    -rw-r--r--  1 root root   65287 Jun 10 20:21 config-2.6.18-92.el5xen
    drwxr-xr-x  2 root root    1024 Sep  6 22:29 grub
    -rw-------  1 root root 3112145 Sep  6 22:29 initrd-2.6.18-92.1.10.el5xen.img
    -rw-------  1 root root 3112059 Sep  6 19:39 initrd-2.6.18-92.el5xen.img
    drwx------  2 root root   12288 Sep  6 15:32 lost+found
    -rw-r--r--  1 root root   94600 Jan  8  2007 memtest86+-1.65
    -rw-r--r--  1 root root   80032 Nov 22  2007 message
    -rw-r--r--  1 root root   93266 Aug  5 09:11 symvers-2.6.18-92.1.10.el5xen.gz
    -rw-r--r--  1 root root   93281 Jun 10 20:21 symvers-2.6.18-92.el5xen.gz
    -rw-r--r--  1 root root  908503 Aug  5 09:11 System.map-2.6.18-92.1.10.el5xen
    -rw-r--r--  1 root root  908390 Jun 10 20:21 System.map-2.6.18-92.el5xen
    -rw-r--r--  1 root root 2162426 Aug  5 09:11 vmlinuz-2.6.18-92.1.10.el5xen
    -rw-r--r--  1 root root 2161376 Jun 10 20:21 vmlinuz-2.6.18-92.el5xen
    -rw-r--r--  1 root root  328764 Aug  5 07:35 xen.gz-2.6.18-92.1.10.el5
    -rw-r--r--  1 root root  328755 Jun 10 18:42 xen.gz-2.6.18-92.el5
    -rwxr-xr-x  1 root root  714720 Aug  5 09:56 xen-syms-2.6.18-92.1.10.el5
    -rwxr-xr-x  1 root root  714716 Jun 10 21:07 xen-syms-2.6.18-92.el5
    A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •