LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-04-2005, 09:56 PM   #1
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Rep: Reputation: 0
GRUB error 17 trouble


I am new to linux and I am having trouble booting for the first time with Fedora Core 4.
I attempt to boot the system and I get:

GRUB Loading stage1.5.


GRUB loading, please wait...
Error 17

I first tried a full re-install but it did not work. Then I tried the rescue cd to see if i can figure out what wsa going on.
I then ran:
sh-3.00# fdisk -l

Disk /dev/hda:40.0 GB, 40020774320 bytes
255 heads, 63 nsectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 13 4865 38973690 8e Linux LVM

sh-3.00# rpm -q grub
grub-0.95-13

sh-3.00# pm -q --filesbypkg grub

grub /boot/grub
grub /sbin/grub
grub /sbin/grub-install
grub /sbin/grub-md5-crypt
grub /sbin/grub-terminfo
grub /usr/bin/mbchk
grub /usr/share/doc/grub-0.95
grub /usr/share/doc/grub-0.95/AUTHORS
grub /usr/share/doc/grub-0.95/COPYING
grub /usr/share/doc/grub-0.95/ChangeLog
grub /usr/share/doc/grub-0.95/NEWS
grub /usr/share/doc/grub-0.95/README
grub /usr/share/doc/grub-0.95/TODO
grub /usr/share/doc/grub-0.95/menu.lst
grub /usr/share/grub
grub /usr/share/grub/i386-redhat
grub /usr/share/grub/i386-redhat/e2fs_stage1_5
grub /usr/share/grub/i386-redhat/fat_stage1_5
grub /usr/share/grub/i386-redhat/ffs_stage1_5
grub /usr/share/grub/i386-redhat/iso9660_stage1_5
grub /usr/share/grub/i386-redhat/jfs_stage1_5
grub /usr/share/grub/i386-redhat/minix_stage1_5
grub /usr/share/grub/i386-redhat/reiserfs_stage1_5
grub /usr/share/grub/i386-redhat/stage1
grub /usr/share/grub/i386-redhat/stage2
grub /usr/share/grub/i386-redhat/stage2_eltorito
grub /usr/share/grub/i386-redhat/ufs2_stage1_5
grub /usr/share/grub/i386-redhat/vstafs_stage1_5
grub /usr/share/grub/i386-redhat/xfs_stage1_5
grub /usr/share/info/grub.info.gz
grub /usr/share/info/multiboot.info.gz
grub /usr/share/man/man1/mbchk.1.gz
grub /usr/share/man/man8/grub-install.8.gz
grub /usr/share/man/man8/grub-md5-crypt.8.gz
grub /usr/share/man/man8/grub-terminfo.8.gz
grub /usr/share/man/man8/grub.8.gz

I don't really know what to do to fix this I am going through the GRUB manual now, but if anyone could help out I'd greatly appreciate it.
-LDR X_x

Last edited by livingdeadraji; 12-04-2005 at 09:57 PM.
 
Old 12-04-2005, 11:37 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Boot into rescue mode and mount/chroot FC4 (i.e., chroot /mnt/sysimage).

Then run grub and enter these commands:
#grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
#exit

That should do it.

This is covered in section 3.2 of the Grub Manual: “Installing GRUB natively” http://www.gnu.org/software/grub/man...-GRUB-natively
 
Old 12-05-2005, 08:24 AM   #3
knifecih
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
/dev/hda1 * 1 13 104391 83 Linux
does /boot mounted on hda1?
you can't put /boot in lv.
i read it from book.^_^

Last edited by knifecih; 12-05-2005 at 08:39 AM.
 
Old 12-05-2005, 02:01 PM   #4
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
I ran these commands and got:
#grub
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no

Error 15: File not found

So my question is how do I make those files? Or did I enter the wrong commands?
-LDR X_x
 
Old 12-05-2005, 03:54 PM   #5
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Are you getting a grub boot selection menu, which appears as “Press any key...” at the initial boot stage?

If you are, it tells us that /boot is properly identified and that the problem is elsewhere.
 
Old 12-06-2005, 12:15 AM   #6
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
I am not getting any boot selection menu. Everytime I boot I get:
GRUB Loading stage1.5


GURB loading, please wait...
Error 17

every time.
 
Old 12-06-2005, 12:34 AM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
From rescue mode after "chroot /mnt/sysimage", run the grub find command:

#grub
grub>find /grub/stage1
grub>find /boot/grub/stage1

Only one “find” should identify a partition (probably the 1st one), which based on your fdisk output, should have been (hd0,0).

If it gives something else, then go through the “root” step again with the new (hd?,?) output from “find” followed by “setup (hd0)”.

If “find” identifies (hd0,0), then it’s time to look at /boot/grub/grub.conf. Output the contents of grub.conf by using these steps:

#cd /boot/grub
#cat grub.conf

You can also open grub.conf with the vi editor (e.g., vi grub.conf) if you are familiar with its commands.

Verify that one line is “default=0" and then go to the first line that starts “title...”. On the next line, there should be a line “root...”. What is the full text of the line?

On the following line, you should see a line starting with “kernel...”. What is the full text of that line?
 
Old 12-06-2005, 01:29 AM   #8
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
OK.
I ran
#grub
grub>find /grub/stage1
(hd0,0)
grub>find boot/grub/stage1
Error 15: File not found

I went to:
#cd /boot/grub
but there is no "grub.conf" file
-LDR X_x
 
Old 12-06-2005, 01:38 AM   #9
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
It sounds like /boot has not been mounted in rescue mode. Follow these commands in rescue mode to mount it:

mkdir /mnt/temp
mount /dev/hda1 /mnt/temp

cd /mnt/temp/grub
cat grub.conf
cd /
umount /mnt/temp
 
Old 12-06-2005, 02:16 AM   #10
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
humm I tried that and I got as far as:
mkdir /mnt/temp
mount /dev/hda1 /mnt/temp
mount: /dev/hda1 already mounted or /boot busy
mount: according to mtab, /dev/hdaq is already mounted on /boot
 
Old 12-07-2005, 02:31 AM   #11
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
Curses!!!!

*BUMP*
Running out of ideas.
Getting disappointed with red hat, I loved 9, but FC4 is not being very newb friendly.
If this would boot once I'd be happy.
...grrrr....
-LDR X_x
 
Old 12-07-2005, 10:21 AM   #12
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
You still need to have a look in grub.conf as per post #7.

That may tell you what “not found” is related to. Is root (hd?,?) wrong? Is the grub kernel command pointing to the wrong location for the kernel? Is root= properly defined on the kernel command line?

From your post #8, grub stage1 is clearly pointing to the correct location, so the next step is to see if there is a problem in grub.conf. Problems that occur beyond grub.conf usually result in kernel panic, which you are not seeing.
 
Old 12-07-2005, 11:58 AM   #13
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
I still can not find grub.conf file under /boot or anywhere else for that matter.

Well hda1 on fdisk is hd0 in the grub naming convention and I set root:
>grub root (hd0,0)
and that goes without a hitch.
What is the grub command to see what location the grub kernel is pointing?
How do you tell if root is properly defined on the kernel command line?

I am sure /grub/state1 is pointing to the correct location, but I know /boot/grub/stage1 does not exist.
-LDR X_x
PS Thank you, you have been the only person who has helped me on this.

Last edited by livingdeadraji; 12-07-2005 at 12:00 PM.
 
Old 12-07-2005, 12:37 PM   #14
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46
Quote:
Originally Posted by livingdeadraji
...What is the grub command to see what location the grub kernel is pointing?...
You need to look inside grub.conf to determine that.

Quote:
Originally Posted by livingdeadraji
...How do you tell if root is properly defined on the kernel command line?...
By looking in grub.conf and comparing it to the actual partition/logical volume and folder structure.

Quote:
Originally Posted by livingdeadraji
...I am sure /grub/state1 is pointing to the correct location, but I know /boot/grub/stage1 does not exist...
From grub’s point of view, only /grub/stage1 exists, because /boot is a separate partition. If you mount /dev/hda1, you will find /grub inside, not /boot/grub, because the mountpoint represents /boot.


You should try starting linux rescue without searching for/mounting the FC4 installation. That way, nothing is mounted and it should be easy to mount /dev/hda1.

As some point, you may need to look at /etc/fstab to verify that nothing odd is going on there, but those problems often result in kernel panic, not “file not found”.
 
Old 12-08-2005, 01:37 AM   #15
livingdeadraji
LQ Newbie
 
Registered: Dec 2005
Location: Fairfax, VA
Distribution: Fedora Core 4, Knoppix 4
Posts: 14

Original Poster
Rep: Reputation: 0
OK, it looks like my main problem is that I can not find grub.conf anywhere. I've even used Knoppix to search and I still can't find it anywhere. I have looked at several ohter threads on the missing grub.conf file but am still not able to locate that file.
Any ideas?
 
  


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM
GRUB trouble laubster Linux - General 2 01-05-2005 04:47 AM
Grub trouble p1az Linux - General 4 10-03-2003 01:20 PM
Trouble with GRUB SilverSnake Linux - Software 16 12-06-2002 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration