LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-21-2002, 11:54 PM   #1
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Rep: Reputation: 0
Grub help


I'm currently running RH7.3 and Win2k and I would like to use
Grub as my bootloader. I've read up on it a bit but i'm still
hesitant to get deep into it because I don't want to waffle my
system. I did however try to at least install it but i had some
problems.

First, my hard drives are set up as follows:

(Win2k)
/dev/hda
/hda1 (FAT)

(More windows drives, not important)
/dev/hdb
/hdb1 (FAT)
/hdb2 (Extended)
/hdb5 (FAT)
/hdb6 (FAT)

(Linux)
/dev/hdd
/hdd1 (ext3)
/hdd3 (swap)
/hdd2 (extended)
/hdd5 (FAT)

i ran grub-install /dev/hda but got an error msg saying
'/dev/hda does not have any corresponding BIOS drive'

can anyone help me with this?
 
Old 07-22-2002, 04:47 AM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
I believe that it's trying to find your drive in this file /boot/grub/device.map. Apparently, it's not finding it. So, you'll probably have to edit the file. What does the file look like?

<Edit>The command ' grub-install --recheck ' is supposed to recreate the device.map file. So, that might be better than editing the file. I also read that after you add/remove disk drives that you should run that command.</Edit>

Last edited by linuxcool; 07-22-2002 at 05:42 AM.
 
Old 07-22-2002, 07:07 AM   #3
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
i first checked the device.map and you were right, ,the other
drives weren't included.

i then ran <b>grub-install --recheck /dev/hdXX</b> on the device and it probed and added the missing devices to the <b>device.map</b>
file

thanks for your help and your quick response
 
Old 07-22-2002, 07:18 AM   #4
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
unfortunately now i get an 'error 17' during stage 1.5? when
attempting to boot from the MBR.

i have a linux boot disk, however, but no way to get back into
win2k until i fix this problem
 
Old 07-22-2002, 09:29 AM   #5
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
The Grub manual says this about error 17:

17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

If you can post your menu.lst file, it might be helpful in troubleshooting.
 
Old 07-22-2002, 09:41 AM   #6
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
yeah i noticed that in the manual but i was still stumped as to
why it said that....

anyways, here is my menu.lst

default=0
timeout=10
splashimage=(hd2,0)/boot/grub/splash.xpm.gz

title Red Hat 7.3 (Valhalla)
root(hd2, 0)
kernel /boot/vmlinuz-2.4.18-3 ro root=/dev/hdd1
initrd /boot/initrd-2.4.18-3.img

title Windows 2000
rootnoverify (hd0, 0)
chainloader +1


hdd is listed in my device.map file as hd2 btw which is where the
linux partition resides.

the win2k partition is the first partition on the first disc
 
Old 07-22-2002, 01:22 PM   #7
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Quote:
root(hd2, 0)
This would indicate that Grub is trying to run RedHat from your hdc1 partition, yet you stated that it is on hdd1. Try changing root(hd2, 0) to root(hd3, 0).

hd0 = hda
hd1 = hdb
hd2 = hdc
hd3 = hdd

BTW, is hdc your CD-ROM drive?

Last edited by jglen490; 07-22-2002 at 01:24 PM.
 
Old 07-22-2002, 01:51 PM   #8
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
this is my device map:

(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
(hd2) /dev/hdd

/dev/cdrom is the cdrom drive
 
Old 07-22-2002, 01:55 PM   #9
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
i just tried changing it to root (hd3, 0) and i got the same error
msg :-/

strange.....
 
Old 07-22-2002, 01:59 PM   #10
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
/dev/hdc is in fact the cd-rom drive
 
Old 07-22-2002, 02:45 PM   #11
walks
LQ Newbie
 
Registered: Jul 2002
Location: Philadelphia
Distribution: RH7.3
Posts: 10

Original Poster
Rep: Reputation: 0
note:

if i change (hd2) to (hd3) in the device.map for /dev/hdd
and also make sure hd3 is present in the menu.lst, when i boot
and grub loads i get Error 21 which means that some path is
incorrect or doesn't exist.
 
Old 07-22-2002, 04:13 PM   #12
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
I don't know, but it may have something to do with the third physical hard drive (hd2) being related to a fourth device file (hdd) . But I don't know how to fix that, unless it's a PnP thing that can be fixed by de-activating PnP in your BIOS.
 
Old 07-22-2002, 10:14 PM   #13
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Grub doesn't assign anything to cdrom drives. It doesn't consider them bootable. You're device.map file looks ok.

Change these two lines:

root(hd2, 0)
rootnoverify (hd0, 0)

To this:

root (hd2,0)
rootnoverify (hd0,0)

Grub is very picky about spaces. Then try booting again.

Last edited by linuxcool; 07-23-2002 at 11:43 PM.
 
Old 07-25-2002, 06:12 PM   #14
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
walks, did you get it fixed?
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 08:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM


All times are GMT -5. The time now is 01:49 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration