LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-04-2008, 08:26 AM   #1
change_my_way2010
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Rep: Reputation: 0
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 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>
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.
 
Old 08-04-2008, 08:44 AM   #2
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Kubuntu, LFS
Posts: 208

Rep: Reputation: 30
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
 
Old 08-04-2008, 08:45 AM   #3
DropSig
Member
 
Registered: Apr 2004
Location: East of Quebec
Distribution: Kubuntu, LFS
Posts: 208

Rep: Reputation: 30
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.
 
Old 08-04-2008, 08:47 AM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,966

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
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).
 
Old 08-04-2008, 09:25 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,355

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
@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
 
Old 08-04-2008, 07:34 PM   #6
change_my_way2010
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by DropSig View Post
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!
 
Old 08-04-2008, 07:52 PM   #7
change_my_way2010
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
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!

Last edited by change_my_way2010; 08-04-2008 at 08:02 PM.
 
Old 08-04-2008, 11:51 PM   #8
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,966

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
You can also use the Live CD to run the commands suggested by syg00 which would be helpful.
 
Old 08-05-2008, 01:06 AM   #9
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 54
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.

Last edited by jomen; 08-05-2008 at 01:21 AM.
 
Old 08-07-2008, 08:33 AM   #10
change_my_way2010
LQ Newbie
 
Registered: Jan 2008
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 08-07-2008, 09:06 AM   #11
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,966

Rep: Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785Reputation: 785
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.
 
Old 11-25-2009, 09:54 PM   #12
t_kabr
LQ Newbie
 
Registered: Nov 2009
Location: China
Posts: 6

Rep: Reputation: 0
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
 
Old 02-09-2011, 12:42 AM   #13
ariel654
LQ Newbie
 
Registered: Feb 2011
Posts: 1

Rep: Reputation: 0
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 View Post
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.
 
Old 02-09-2011, 01:13 AM   #14
NM04
Member
 
Registered: Jan 2011
Location: Bangalore, India
Distribution: Back Track,Fedora, FreeBSD, Linux
Posts: 132

Rep: Reputation: 13
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
 
Old 03-07-2012, 09:24 AM   #15
sumit08choudhary
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
Angry 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...............
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BASH: read every line in the files and use the line as parameters as another program tam3c36 Programming 10 12-07-2010 01:42 PM
grub error 18: selected cylinder exceeds maximum supported by bios raport Linux - General 3 05-10-2007 01:55 AM
Packard Bell M5..Minimal Bash like line edit Tomcat1965 Linux - Laptop and Netbook 0 10-20-2006 02:10 AM
Minimal Bash-Like Line jlwilso Suse/Novell 1 03-09-2005 12:39 PM
error booting redhat with grub command line shams Linux - Software 0 03-02-2004 07:23 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration