LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error of GRUB: Minimal BASH-like line editing is supported................. (https://www.linuxquestions.org/questions/linux-newbie-8/error-of-grub-minimal-bash-like-line-editing-is-supported-660334/)

change_my_way2010 08-04-2008 08:26 AM

Error of GRUB: Minimal BASH-like line editing is supported.................
 
After installed Redhat Fedora Code 8,last week I boot my computer and the GRUB display the error:(and I can't boot Linux)
GNU GRUB version 0.97(502k Lower/496556K upper memory)
[Minimal BASH-like line editing is supported
For the first world, TAB lists possible command completions.Anywhere else TAB lists the possible completions of a device/filename]
grub>
I google and find some people who met this error, and they gave the solution for this error that I should code the command like this:
root(hd0,2)
setup(hd0)
quit
But when I coded that command,the computer said that:Command not found.
Please help me to solve the problems.

DropSig 08-04-2008 08:44 AM

those command are to setup grub, but you first have to enter grub
the rest of the command depends on which partition your linux is installed.
But first, do you see the grub boot loader at boot time?
if so, what is the error message shown when trying to boot linux.
and again, if so, post the content of your /boot/grub/menu.lst

DropSig 08-04-2008 08:45 AM

sorry i did read your post to fast, grub is installed, post the content of your /boot/grub/menu.lst.
This is where your problem resides.

yancek 08-04-2008 08:47 AM

What is your partition structure? Do you have one drive with only Fedora on it. When you installed Fedora, did you install Grub to the mbr of the first drive? The solution you used (from your first post) would mean Fedora is on the third partition of your first drive, is that correct?

Use the CD and load it, enter command "fdisk -l" and post the results here so we know your partition structure (the command is a lower case letter L).

syg00 08-04-2008 09:25 AM

@change_my_way2010, you will not be able to enter those commands if you are stuck at the grub command line. Type these in
Code:

find /grub/stage2
find /boot/grub/stage2

One should work, and return something like "(hd0,0)" or "(hd0,1)" ...
Use whatever is return in the following command - note the space before the bracket in each of the first 2 commands.
Code:

root (hd0,0) <<<=== inset returned value here
setup (hd0)
boot


change_my_way2010 08-04-2008 07:34 PM

Quote:

Originally Posted by DropSig (Post 3236222)
sorry i did read your post to fast, grub is installed, post the content of your /boot/grub/menu.lst.
This is where your problem resides.

How can I post the content?(where I can find the content if I can't boot to Linux?)
In any way thank you for your help!

change_my_way2010 08-04-2008 07:52 PM

Quote:

Originally Posted by yancek (Post 3236224)
What is your partition structure? Do you have one drive with only Fedora on it. When you installed Fedora, did you install Grub to the mbr of the first drive? The solution you used (from your first post) would mean Fedora is on the third partition of your first drive, is that correct?

Use the CD and load it, enter command "fdisk -l" and post the results here so we know your partition structure (the command is a lower case letter L).

*Yes,I installed window XP and then installed the Fedora code 8.
*GRUB was installed while Linux was installed,and I didn't see anything a bout the MBR.
Thank you,I will try!

yancek 08-04-2008 11:51 PM

You can also use the Live CD to run the commands suggested by syg00 which would be helpful.

jomen 08-05-2008 01:06 AM

From what you wrote I thought you could not even boot - that you are stuck on the grub prompt.
If that is the case - you would however never see a respose to your commands such as the one you told here:
Quote:

But when I coded that command,the computer said that:Command not found.
If you are at the grub prompt and the system does not boot - you can do that from the grub command line.
You need to eighter know which partition linux is on - or be prepared to try a little...
When the grub screen appears: hit "c"
This will get you a command prompt.

First you tell grub where to find the kernel.
type:
kernel (hd0,1)/boot/vmlinuz

Of course you can now take the advice and make heavy use of TAB to autocomplete that command line. It is only an example, (hd0,1) is the second partition on the first harddisk (elsewhere referred to as /dev/hda2 - grub starts to count from 0, so 0 is first, 1 is second...)

If your system uses an initrd to boot - that is the next grub needs to know:
initrd (hd0,1)/boot/initrd

then you tell grub where your / partition is
root (hd0,2)
..example (hd0,2) when / is on hda3 - I have a separate /boot partition

all set - now type:
boot
and the machine should boot up.

change_my_way2010 08-07-2008 08:33 AM

Why I just get result from the command:find /grub/stage2 ,the result is:hd0,6.
I didn't get anything from other command:The command not found

yancek 08-07-2008 09:06 AM

I assume you were able to get to the grub prompt (grub>), correct? You need to do this as root, obviously. If you are at a Grub prompt you are logged in as root and I can't think of any reason you would get a "command not found" result? You said the result from find /grub/stage2 is (hd0,6) which means that stage2 (the main part of grub bootloader) in on partition 7 of your first (only?) drive.

The commands jomen gave were only examples and you would have to change them to fit your computer. If you are still unable to boot but can get to the grub prompt, enter these commands to get information to post so someone can help. Enter only the part in red:

grub> geometry (hd0)[/COLOR](hit the enter key)
grub> find /boot/grub/stage1(hit the enter key)
grub> find /sbin/init(hit the enter key)
grub> find /boot/vmlinuz(hit the enter key)
grub> find /boot/grub/grub.conf(hit the enter key)

Post these results. Do you still have your installation CD for Fedora? You should be able to load that and get information also.

t_kabr 11-25-2009 09:54 PM

Kernel can't load
 
thanks jomen for your effort,

i had the same problem and i cant do anything, i am new to linux i have installed Ubuntu and when i updated grub i got the same message...([Minimal BASH-like line editing is supported
For the first world, TAB lists possible command completions.Anywhere else TAB lists the possible completions of a device/filename]


And because i have read a lot about it searching for solution i know how to do all of your steps BUT one isn't working :::: KERNEL I FOUND THE KERNEL BUT NOT THE LOCATION OF FILE SYSTEM /DEV/HDA

WHEN I TAB ON /DEV/ IT GIVES ME A LOT OF MEANINGLESS NAMES OF FILE BUT NOT hda sda3 ..... etc AS I SEEN IN WEBSITES....

SO PLEASE HELP ME TO LOAD THE KERNEL .... AND BY THE WAY I GOT THIS MESSAGE EACH TIME I ENTER KERNEL COMMAND UNKNOWN COMMAND 'KERNEL'

THIS TOPIC MIGHT BE DEAD BECAUSE IT IS OLD SO FORGIVE ME ,,,, HHHHHH

ariel654 02-09-2011 12:42 AM

please help me
 
I have typed the part in read.
but the answers are
drive 0x80(LBA) : C/H/S=16383/255/63, Sector Count/Size=263192895/512
Partition num:0, Filesystem type is ntfs, partition type 0x7
Partition num:1, Filesystem type is ntfs, partition type 0x7
Partition num:2, Filesystem type is ntfs, partition type 0x7
Partition num:3, Filesystem type is ntfs, partition type 0x7

then others answer are Error 15:File not found

please help me and thank you very much.


Quote:

Originally Posted by yancek (Post 3239878)
I assume you were able to get to the grub prompt (grub>), correct? You need to do this as root, obviously. If you are at a Grub prompt you are logged in as root and I can't think of any reason you would get a "command not found" result? You said the result from find /grub/stage2 is (hd0,6) which means that stage2 (the main part of grub bootloader) in on partition 7 of your first (only?) drive.

The commands jomen gave were only examples and you would have to change them to fit your computer. If you are still unable to boot but can get to the grub prompt, enter these commands to get information to post so someone can help. Enter only the part in red:

grub> geometry (hd0)[/COLOR](hit the enter key)
grub> find /boot/grub/stage1(hit the enter key)
grub> find /sbin/init(hit the enter key)
grub> find /boot/vmlinuz(hit the enter key)
grub> find /boot/grub/grub.conf(hit the enter key)

Post these results. Do you still have your installation CD for Fedora? You should be able to load that and get information also.


NM04 02-09-2011 01:13 AM

Code:

ariel654,
 
i guess you have only windows in your HDD. Can you print the output of following commands
 
cat /boot/grub/menu.lst ---- if this don't works then next one--

cat /boot/grub/grub.conf

Regards,
NM04


sumit08choudhary 03-07-2012 09:24 AM

Please help
 
After installed Redhat Fedora Code 8,last week I boot my computer and the GRUB display the errorand I can't boot Linux)
GNU GRUB version 0.97(502k Lower/496556K upper memory)
[Minimal BASH-like line editing is supported
For the first world, TAB lists possible command completions.Anywhere else TAB lists the possible completions of a device/filename]
grub>


When i entered: find /grub/stage2 and find /boot/grub/stage2

it gave a "file not found"


when i entered : root (hdo,1) and other as well,
error "file system unknown , partition type 0xf"



when i entered : kernel (hd0,1)/boot/umlinuz


error : cannot mount selected partition (this is happening for all partitions)




Please help...............


All times are GMT -5. The time now is 08:31 AM.