Page 1 of 4 123 ... LastLast
Results 1 to 10 of 37

Thread: Boot failure after GRUB 2.0 installation

  1. #1
    Join Date
    Dec 2012
    Beans
    42

    Boot failure after GRUB 2.0 installation

    I have been dual booting Win 7 and Linux for a while. Recently I updated to Win 8 Pro keeping Win 7. As a result, GRUB bootloader was replaced with Windows bootloader. So I couldn't get into Ubuntu.

    I found this app it's called BOOTICE. I used it to change my MBR which replaced Windows NT 6.x to GRUB 2.0 hoping to get Ubuntu back working.

    Now the PC won't boot. I get the following:
    Code:
    error: file not found
    grub rescue>
    And I get a command line in which I can move around.

    So the only USB drive I have is this 256MB drive. GParted Live is installed on it. I looked up my drive by booting on the GParted Live USB and my files/partitions are still there. Since the drive is 256MB, installing Boot-Repair or Ubuntu Live is no option.

    So is there a way to fix the boot sector/MBR and write GRUB on it? GParted Live also has TestDisk but I don't know which type of MBR to choose, when both Windows and Linux are installed.
    Last edited by dorruk; February 4th, 2013 at 02:58 PM.

  2. #2
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,756
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot failure after GRUB 2.0 installation

    You don't have your ubuntu cd at hand? It should always be at hand.

    Grub is not just the small part of code on the MBR, it has to "know" where to look for the rest of the files, to connect to them. Installing grub2 only on the MBR can rarely help (it can help only if the other files are present correctly and you tell it where they are during the install to the MBR).

    If there is REALLY no way to make an ubuntu cd/usb, you can try Sustem Rescue CD. It's smaller than ubuntu but not sure if there is a version that fits on 256MB. I think it's 300+MB.

    If you can boot the system rescue you can chroot into your installation and install grub2 properly from within.

    Other options that should fit on 256MB and have live mode option could be Damn Small Linux or Puppy Linux if I remember correctly.

    Once you get any linux that can boot you to command prompt or terminal in live mode, if you are not sure about the chroot procedure ask.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  3. #3
    Join Date
    Dec 2012
    Beans
    42

    Re: Boot failure after GRUB 2.0 installation

    Is there any way of doing the same from GParted Live's terminal? It's a Linux terminal after all, right?

    Thing is, is another distro than GParted Live required? Because I'm not comfortable with installing new live usb operating systems while the one on my USB is already working, I always screw it up . Just that I don't want to lose the one that I have at hand, while trying to install another OS.

  4. #4
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Boot failure after GRUB 2.0 installation

    You can try to boot from the grub prompt:
    Code:
    grub rescue> search.file /boot/grub/grub.cfg root
    grub rescue> set prefix=($root)/boot/grub
    grub rescue> configfile /boot/grub/grub.cfg
    grub rescue> boot

  5. #5
    Join Date
    Dec 2012
    Beans
    61

  6. #6
    Join Date
    Dec 2012
    Beans
    42

    Re: Boot failure after GRUB 2.0 installation

    How do I identify the boot partition?
    This is what I get when I type "ls":
    Code:
    (hd0) (hd0, msdos7) (hd0, msdos6) (hd0, msdos5) (hd0, msdos3) (hd0, msdos2) (hd0, msdos1)

  7. #7
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,756
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot failure after GRUB 2.0 installation

    Quote Originally Posted by dorruk View Post
    Is there any way of doing the same from GParted Live's terminal? It's a Linux terminal after all, right?

    Thing is, is another distro than GParted Live required? Because I'm not comfortable with installing new live usb operating systems while the one on my USB is already working, I always screw it up . Just that I don't want to lose the one that I have at hand, while trying to install another OS.
    You might be able to use it, I have never tried using Gparted live. I assume you know which one is your root partition, if you don't you can check with Gparted.
    Also, I guess Gparted live will load as root so you don't need to run sudo in front of commands (sudo is for ubuntu anyway).

    As stated above, you might be able to boot from the rescue prompt too. There are many options. If the procedure above to boot from the prompt doesn't work, tell me which is your root partition and I can help with the chroot.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  8. #8
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,756
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Boot failure after GRUB 2.0 installation

    Quote Originally Posted by dorruk View Post
    How do I identify the boot partition?
    This is what I get when I type "ls":
    Code:
    (hd0) (hd0, msdos7) (hd0, msdos6) (hd0, msdos5) (hd0, msdos3) (hd0, msdos2) (hd0, msdos1)
    Well, which one is your root partition? You don't know?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  9. #9
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Boot failure after GRUB 2.0 installation

    Search for some file that you know is on it
    Code:
    grub rescue> help search.file

  10. #10
    Join Date
    Dec 2012
    Beans
    42

    Re: Boot failure after GRUB 2.0 installation

    Quote Originally Posted by darkod View Post
    Well, which one is your root partition? You don't know?
    Well I know it is dev/sda2 but what I get from "ls" is not likely close to it?

Page 1 of 4 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
  •