getting grub working right again

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

getting grub working right again

Postby dhdurgee on Wed Nov 14, 2012 4:09 pm

I had some fun getting grub to work properly with maya on one of my systems, but once I got it working it was fine...until earlier today.

Earlier today I hit a freeze that appears to have been a cinnamon crash of some sort. I ultimately wound up restarting the system, when to my surprise I found myself at the sh:grub> prompt instead of booted to maya! The top line identifes this as "GNU GRUB version 1.97~beta4" and set shows some environment variables set, so it appears to have gone partway through my grub.cfg file. After looking a few things up, I finally tried to use the configfile command with the following results:

sh:grub> configfile /boot/grub/grub.cfg
<screen cleared>
error: Invalid mode: auto
<blank line>
Syntax error
Incorrect command

looking at my grub.cfg shows "auto" only one place:

set gfxmode=auto

Some searching shows that this is the default, so I edited grub.cfg to remark this line out with the following results:

sh:grub> configfile /boot/grub/grub.cfg
error: No suitable mode found.
syntax error
Incorrect command

I have also tried replacing "auto" with some specific modes, but I still get the "No suitable mode found." message

This is of course annoying, but I can boot maya manually by specifying:

sh:grub>linux /boot/vmlinux.... root=/dev/sda14 ro
sh:grub>initrd /boot/init....

Any suggestions what I need to do to get my menu back? Any idea why it disappeared? Any further diagnostics I can run?

If it were another system I would likely simply try to regenerate/reinstall grub, but given all the "fun" I had getting grub to work here at all I would prefer another approach.

Level 4
Level 4
Posts: 208
Joined: Thu Jul 02, 2009 7:56 pm

Linux Mint is funded by ads and donations.

Re: getting grub working right again

Postby cwsnyder on Thu Nov 15, 2012 8:39 am

I would recommend using your Live CD/DVD to do a grub-install to your hard drive.
LMDE Mate 64-bit, LM16 Mate 64-bit
Debian Xfce 64-bit, Xubuntu 13.10 64-bit, Xubuntu Trusty Tahr 64-bit, Antergos Xfce 64-bit, PCLinuxOS LXDE 64-bit
Level 6
Level 6
Posts: 1039
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: getting grub working right again

Postby usbtux on Fri Nov 16, 2012 9:06 am

Boot and run from Live DVD
open a terminal, type these commands

1. sudo os-prober

see a list of OSes first.

here is a possible output:

mint@mint ~ $ sudo os-prober
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sdb1:Linux Mint 13 Maya (13):LinuxMint:linux
/dev/sdd1:Linux Mint Debian Edition (1):LinuxMint1:linux


sudo mount /dev/sdb1 /mnt


sudo grub-install --root-directory=/mnt /dev/sda

Where sda is the harddisk used to boot LinuxMint tutorials.
Running LinuxMint 17 Cinnamon/KDE/XFCE Installing Mint - the screen cast videos.
linuxcounter #368850
User avatar
Level 5
Level 5
Posts: 969
Joined: Tue Dec 28, 2010 10:37 am

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 14 guests