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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-04-2008, 09:26 AM
|
#1
|
LQ Newbie
Registered: Jan 2008
Posts: 10
Rep:
|
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.
|
|
|
08-04-2008, 09:44 AM
|
#2
|
Member
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208
Rep:
|
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
|
|
|
08-04-2008, 09:45 AM
|
#3
|
Member
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208
Rep:
|
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.
|
|
|
08-04-2008, 09:47 AM
|
#4
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,150
|
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).
|
|
|
08-04-2008, 10:25 AM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,311
|
@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
|
|
|
08-04-2008, 08:34 PM
|
#6
|
LQ Newbie
Registered: Jan 2008
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by DropSig
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!
|
|
|
08-04-2008, 08:52 PM
|
#7
|
LQ Newbie
Registered: Jan 2008
Posts: 10
Original Poster
Rep:
|
Quote:
Originally Posted by yancek
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 09:02 PM.
|
|
|
08-05-2008, 12:51 AM
|
#8
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,150
|
You can also use the Live CD to run the commands suggested by syg00 which would be helpful.
|
|
|
08-05-2008, 02:06 AM
|
#9
|
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687
Rep:
|
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 02:21 AM.
|
|
|
08-07-2008, 09:33 AM
|
#10
|
LQ Newbie
Registered: Jan 2008
Posts: 10
Original Poster
Rep:
|
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
|
|
|
08-07-2008, 10:06 AM
|
#11
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,150
|
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.
|
|
|
11-25-2009, 10:54 PM
|
#12
|
LQ Newbie
Registered: Nov 2009
Location: China
Posts: 6
Rep:
|
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
|
|
|
02-09-2011, 01:42 AM
|
#13
|
LQ Newbie
Registered: Feb 2011
Posts: 1
Rep:
|
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
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.
|
|
|
|
02-09-2011, 02:13 AM
|
#14
|
Member
Registered: Jan 2011
Distribution: Back Track,Fedora,centos
Posts: 240
Rep:
|
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
|
|
|
03-07-2012, 10:24 AM
|
#15
|
LQ Newbie
Registered: Mar 2012
Posts: 2
Rep:
|
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 09:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|