LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub Rescue Filesystem Error (https://www.linuxquestions.org/questions/linux-newbie-8/grub-rescue-filesystem-error-4175462494/)

AmRllyGooby 05-18-2013 12:01 PM

Grub Rescue Filesystem Error
 
When I turn on my computer, I usually expect the Grub OS selection menu to pop up. Instead, I got a rescue filesystem error and command line.

This happened yesterday. I installed Crunchbang Linux on my USB via uNetBootin, then plugged it in and boot it. I chose the Graphical Install option, and probably screwed the computer from the partition section. At first, I tried to install to the biggest freespace it could find, but that failed. Then, I tried to install to my USB. Still failed. Then that is when my problem started.

Now, I need a good and fast answer, because my dad will kill me soon. Someone help! :(

TroN-0074 05-18-2013 01:08 PM

What kind of computer do you have? Were you trying to install 64bit OS in a 32bit architecture? is the kernel you where trying to install pae and your processor doesnt support it?

The other thing, did you try to do a full installation in the USB from where you had your computer running in the live session?

you will probably have to reformat that USB and load and ISO image one more time then boot your computer again.

I dont think doing a full installation in the media from where you are running a live session will work.

Good luck to you

AmRllyGooby 05-18-2013 04:14 PM

Quote:

Originally Posted by TroN-0074 (Post 4953861)
What kind of computer do you have? Were you trying to install 64bit OS in a 32bit architecture? is the kernel you where trying to install pae and your processor doesnt support it?

The other thing, did you try to do a full installation in the USB from where you had your computer running in the live session?

you will probably have to reformat that USB and load and ISO image one more time then boot your computer again.

I dont think doing a full installation in the media from where you are running a live session will work.

Good luck to you

Well, I have a 64 bit machine and Crunchbang is 32 bit. My main problem is that Grub won't show the usual OS menu, just an error and command line. And yeah, I tried to install Crunchbang on the USB from where I was running the live session. Pretty stupid of me. Now I want to get a CD or DVD, which I don't have, and install from there to the USB. But once I finally do that, would the OS selection menu come back? I really like Crunchbang so far, but it is the only thing I can access so far, which is bad. I actually NEED Windows 7/8 to show up again. All the system files/etc. are still there.

Erik_FL 05-18-2013 06:05 PM

The Grub rescue prompt means that grub is not starting correctly.

To get Windows to boot again you need to re-install Grub or repair the Windows boot-loader.

Check whether your computer uses a BIOS or UEFI firmware. UEFI firmware may require different steps than I am posting here depending on the exact configuration.

To repair the Windows boot loader, you need a Windows Setup DVD for the correct version of Windows (7 or 8). If you don't have a Windows Setup DVD you should create one before you attempt to install Linux again. You can download Windows 7 Setup discs from the Digital River web site.

Official download links for Windows 7 SP1 ISO

Getting a Windows 8 disc is a little more difficult.

http://www.ghacks.net/2012/11/10/how...windows-8-iso/

You do not need a CD key to repair the Windows boot-loader or boot configuration. You can also use the Home or Professional version to repair either the Home or Professional version. These disks are useful for repairing the Windows boot loader but you SHOULD NOT use them for installing or re-installing Windows. You must use the Windows disc and Windows CD key that came with your computer for installing or re-installing Windows. Also DO NOT repair Windows system files using these CDs.

Boot from the Windows Setup disc. When you see the Windows graphical Setup, press Shift + F10 to get a command prompt.

For a BIOS use this command to repair the Master Boot Record.

Code:

bootrec /fixmbr
If Windows still does not boot, repair the partition boot sector.

Code:

bootrec /fixboot
Finally, if Windows still does not boot, repair the Boot Configuration Database.

Code:

bootrec /rebuildbcd
If you have UEFI firmware instead of a BIOS you can use this command to repair the boot loader.

Code:

bcdboot c:\windows
The above steps should allow you to make Windows boot again without Linux. After Windows boots again, create a Windows System Repair Disk before you attempt to install Linux. That will make it easier to repair Windows in the future.

Create Windows 7 Bootable Emergency Repair Disc - Windows 7 Recovery Tool
How to Create a "System Repair Disc" (CD/DVD) in Windows 8

To re-install Grub you will need a Linux boot disc or USB thumb drive. You will need the Grub files to be on the hard disk in the Linux root partition. If you installed Linux, the required Grub files are probably still there in the Linux root partition. You can install the Grub package or install Linux if the required Grub files are not present.

Boot from the Linux disc or thumb drive. Follow these steps to re-install Grub.
  • Start a command shell
  • Change to the root account
    Code:

    sudo su -
  • Mount your Linux system partition on the hard disk
    Code:

    mkdir /mysys
    mount /dev/sda2 /mysys

    NOTE: Change "/dev/sda2" to the correct device name for your Linux partition.
  • Change the root to your Linux system
    Code:

    mount --bind /dev /mysys/dev
    mount --bind /proc /mysys/proc
    mount --bind /sys /mysys/sys
    chroot /mysys

  • Install GRUB
    Code:

    grub-install /dev/sda
  • Configure GRUB
    Code:

    grub-mkconfig -o /boot/grub/grub.cfg
  • Exit from the root file-system shell
    Code:

    exit
  • Dismount everything
    Code:

    umount /mysys/sys
    umount /mysys/proc
    umount /mysys/dev
    umount /mysys

  • Boot from your hard disk
  • If the OS doesn't load repeat the above steps or repair the MBR to boot Windows

Grub will start first, and you will have to select the menu entry for Windows in order to boot Windows.

EDDY1 05-18-2013 09:07 PM

How many operating systems do you have on internal drive?
A linux & windows + a linux on external.
If you have a wins & linux on internal drive, just boot your external crunchbang run
Quote:

os-prober
update-grub
Which will find your Operating systems on internal drive & make an entry to it's grub.
At that time you can boot your linux installation on internal hdd, unmount usb & reinstall grub.


All times are GMT -5. The time now is 04:38 PM.