LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   When GRUB fails then command prompt appears then what to do (https://www.linuxquestions.org/questions/linux-newbie-8/when-grub-fails-then-command-prompt-appears-then-what-to-do-737687/)

sumeet inani 07-04-2009 06:26 AM

When GRUB fails then command prompt appears then what to do
 
Hi I am using openSUSE 10.3.Sometimes GRUB fails & usual green screen with option for booting into openSUSE,windows does not appear instead the message is 'minimal bashline command supported'.How can I boot into my OS using command prompt without executing 'reboot'.

peacenik 07-04-2009 03:47 PM

I am not specifically familiar with openSUSE, since I use mostly Slackware, but in general the grub command line is made easier to use because it has an autocomplete function (use the "tab" key).

As you'll find in your /boot/grub/menu.lst, in general (and most likely openSUSE is the same), to boot in grub you need:

root (hdnum designationsometimes letter - but this is more often for BSD variants)
kernel /path/to/kernel
initrd /path/to/filesystem.image

so type boot and tab -> grub will give you a choice of possibilities for your computer. Remember that in grub the numbering system starts at 0, so you drive "hda" will be "hd0";"hdb" will be "hd1" and so on.
After choosing a number you do tab again, then grub will offer you the choices for partitions on that drive i,e hd0,0 will be hda1, etc

Do the same for kernel and initrd and then enter the command "boot"
If your entries are right, then you will boot into your OS, if not try again.

Grub "failure" that allows you to go to the command line is usually a problem with the entries on /boot/grub/menu.lst so after you do get into your OS, check that file and edit it. The use of a live distro can make this a lot easier.

Hope this helps . .


All times are GMT -5. The time now is 09:03 PM.