LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-23-2005, 03:03 AM   #1
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
grub got error with no code


Hi
I'm using Windows XP and Fedora 2, I installed XP first, then installed FC in logical partition. I use boot loader FC into XP by dd command.
I didn't remember what i do yesterday. So now, when I boot into FC, I see it in monitor
Quote:
GRUB _
It don't have error code anymore, and I can't use keyboard. I only restart my pc by reset button

So, what thing I should do ?
 
Old 09-23-2005, 05:11 AM   #2
sijisunny
LQ Newbie
 
Registered: Sep 2005
Location: Mumbai
Posts: 6

Rep: Reputation: 0
reload the grub

Hi,
Boot from any version of live cd (Knoppix) and goto the root ,then type on the command level grub.Then grub editor will be display.
type
root(hd0,partion no-1-In which partion that you installed fedora-1.eg-if your partion is hda3 enter 2)
setup (hd0)
quit

Then reboot the machine.Now i think that grub will work
 
Old 09-24-2005, 04:16 AM   #3
TruongAn
Member
 
Registered: Dec 2004
Location: Vietnam (Việt Nam)
Distribution: Gentoo (desktop), Arch linux (laptop)
Posts: 728

Rep: Reputation: 33
Re: grub got error with no code

Quote:
Originally posted by caspervn

I use boot loader FC into XP by dd command.

It don't have error code anymore, and I can't use keyboard. I only restart my pc by reset button

So, what thing I should do ?
I dont' know what do you mean when you say you use boot loader FC into XP.
When you see the grub command prompt, it means you 've spoiled the grub config file and grub ask you to manually order it.
But I was surprised to hear that you cannot use your keyboard. If your keyboard still refuse to work, I think, you 'll have to reinstall grub by the way sijisunny point out. If you can use keyboard, try these command:

Code:
root(hd0,n)
when n is the number of the partition where FC2 is installed.
If you don't know what 's n, just press the tab key, grub will give
some hint then
Code:
kernel /boot/ kernel image
In FC, kernel image is a file with the name like vmlinuz-kernel version
and again press tab key to get hint, then

Code:
 init /boot/initial ramdisk path
initial ramdisk is a program file in /boot folder, its name start with initrd...
press tab key to get hint.
Finally type:
Code:
boot
 
Old 09-25-2005, 10:20 AM   #4
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Original Poster
Rep: Reputation: 15
Re: Re: grub got error with no code

Quote:
Originally posted by TruongAn
I dont' know what do you mean when you say you use boot loader FC into XP.
when I installed FC, I boot from CD with recuse mode in FC. And then I type
Quote:
mkdir /tmp/c
mount -vt vfat /dev/hda1 /tmp/c
dd bs=512 count=1 if=/dev/hda8 of=/tmp/c/fedora
Afterward, I use vim to edit file /tmp/c/boot.ini

Now, I have fixed it

Thank you
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM
whats wrong with this code in grub? HmmLinux Linux - General 2 11-12-2004 03:50 AM
LPRng error 'NONZERO RFC1179 ERROR CODE FROM SERVER' ivanscheers Linux - Networking 0 10-11-2004 02:50 AM
Can you check my grub boot loader code and correct? Bensoft Kill MS Linux - Newbie 1 10-07-2003 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration