Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: help with grub rescue> error

  1. #11
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    I got through the grub prompt part but it would not boot. I wrote down everything that was on the screen because I wasn't sure if you would want/need all of it or not.

    (After what I BELIEVE is basic info on my computer) it said this:
    Begin: Running/scripts/local-premount...
    done
    [3.220646] EXT4-fs(sda1): mounted filesystem with ordered data mode
    Begin: running/scripts/local-bottom...
    Done
    Done
    Begin: running/scripts/init-bottom...
    Done
    /sbin/init; error while loading shared libraries: /lib/libnih.so.1: cannot read file data: Error 21

    (times in [ ] at the front of each line)

    [ ] kernel panic-not syncing: attempted to kill init!
    [ ] Pid:1, comm: init Not tainted 2.6.32-27-generic #49-Ubuntu
    [ ] Call Trace:
    [ ] [<c058b313>] ? print k+0x1d/0x22
    [ ] [<c058b249>] panic+0x48/0xf5
    [ ] [<c014efed>] forget_original_parent+0x2bd/0x2c0
    [ ] [<c014f003>] exit_notify+0x13/0x170
    [ ] [<c0150911>] do_exit+0x181/0x310
    [ ] [<c00ade>] do_group_exit+0x3e/0xa0
    [ ] [<c0150b58>] sys_exit_group+0x18/0x20
    [ ] [<c01033ec>] syscall_call+0x7/0x6
    [ ] [<c0590000>] ? do_page_fault+0x270/0x3o0

  2. #12
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: help with grub rescue> error

    munnster,

    The kernel panic could be caused by files actually missing or Grub2 just looking in the wrong location. Since we can't be sure I would suggest is completely purging and removing Grub2. That will either allow you to boot or Grub as a problem.

    You would boot from the LiveCD and then run the 'chroot' procedure from the following guide. The partition to mount would be sda1.
    HOWTO: Purge and Reinstall Grub 2 from the Live CD
    GRUB2

    Retired.

  3. #13
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    I must be doing something wrong. I got this:

    cp: cannot create regular file `/mnt/temp/etc/resolv.conf': No such file or directory

  4. #14
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: help with grub rescue> error

    Quote Originally Posted by munnster View Post
    I must be doing something wrong. I got this:

    cp: cannot create regular file `/mnt/temp/etc/resolv.conf': No such file or directory
    Not every system has or needs that file. If you can connect to the Internet without it just proceed to the next command.
    GRUB2

    Retired.

  5. #15
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    Sorry Drs305, the next command gives me this:

    chroot: cannot change root directory to /mnt/temp: Operation not permitted

  6. #16
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: help with grub rescue> error

    Quote Originally Posted by munnster View Post
    Sorry Drs305, the next command gives me this:

    chroot: cannot change root directory to /mnt/temp: Operation not permitted
    Without seeing the preceding terminal output I can't be sure what happened. The most likely thing would be that you didn't use 'sudo' at the start of the command. The next would be that the partition wasn't mounted correctly.

    If you want to try it again I would reboot (to clear anything that is currently mounted) and copy the commands from the guide (except changing 'sdXY' to 'sda1' ). To copy into the terminal, you should be able to highlight the command with your mouse, then click in the terminal to make it active and finally middle click to paste the command.
    GRUB2

    Retired.

  7. #17
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    You were right of course, missed the sudo when I was cutting and pasting but now I get this:
    ubuntu@ubuntu:~$ sudo chroot /mnt/temp
    /bin/bash: error while loading shared libraries: /lib/libncurses.so.5: invalid ELF header

  8. #18
    psusi is offline Ubuntu addict and loving it
    Join Date
    Sep 2005
    Location
    Orlando, FL
    Beans
    3,980
    Distro
    Ubuntu Development Release

    Re: help with grub rescue> error

    You've made it past grub and now it appears that you have some hard disk corruption. Fire up the disk utility on the livecd and check the SMART statistics. Make sure there aren't any pending, reallocated, or offline_uncorrectable sectors. Then check the filesystem:

    Code:
    sudo e2fsck -f /dev/sda1

  9. #19
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    I had restarted my system to clear the terminal and when I went to Disk Utility, SMART Status says "Not Supported" I have looked at this status previously (during this issue) so I know it was working. What exactly does this message mean? Do I have to do something to make it start up?

    Never mind, I ran a benchmark and it now says it's healthy. How would I know if something is pending? I don't see anything like that on the list at the bottom of that screen.
    Last edited by munnster; January 7th, 2011 at 11:00 PM.

  10. #20
    Join Date
    Nov 2009
    Beans
    65

    Re: help with grub rescue> error

    Sorry!
    Pending sector count(?) says N/A
    Reallocated sector count says "Good"
    Uncorrectable sector count says N/A

    Do I have to run the self-test to see if those things are "Good" or should it already be registered as good or bad?

Page 2 of 3 FirstFirst 123 LastLast

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
  •