LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-03-2003, 02:04 AM   #1
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Rep: Reputation: 15
Grub trouble


long story short: I had XP. Tried RH9 on spare hd. Decided to forever use it. Formatted [former] XP hd and installed RH9 on it. Now have both hd's hooked up so I can boot into the test RH9 to look at all my happy custom configurations.

Heres the problem: I can't boot into my test RH9 hd (set as slave).

If I disconnect my new RH9 hd, and set the test RH9 back to master, it boots just fine. The new RH9 boots fine alone and with the test RH9 hd... I just cant boot into my test RH9 thru grub.

This is the error I get: "Error 23: Error while parsing number"

according to my new RH9 the second hd is dev/hdb and this is its entry in my grub.conf file:

title Red Hat 1st Install
rootnoverify (hdb,0)
chainloader +1

I've played around with the hdb,0 parameter to no success. Whatever the problem is its not linux... so it would be awesome if someone could tell me what im doing wrong. Thanks!
 
Old 10-03-2003, 11:14 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Quote:
(hdb,0)
Should be (hd1). Grub uses a different naming convention. The ',0' is not needed because you are chainloading from a disk, not a partition.
 
Old 10-03-2003, 11:55 AM   #3
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Original Poster
Rep: Reputation: 15
When i replace hdb,0 with hd1 I end up going right back into the same boot menu on my primay hd. I tried (hd1,0) and (hd1,1) and that doesnt work. Keep in mind the test install of RH9 is still intact and fully functioning (when as a single drive). I also didn't do anything abnormal with partitioning (standard /boot, /, /swap) for both drives.
 
Old 10-03-2003, 12:01 PM   #4
p1az
Member
 
Registered: Jul 2003
Location: State College, PA
Distribution: Slackware 10.0
Posts: 40

Original Poster
Rep: Reputation: 15
I should probably mention that when I first tried (hd1) there were no other parameters added by me. My reply made it look like i ignored some info in aaa's post.
 
Old 10-03-2003, 12:20 PM   #5
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Mount your test Red Hat's '/' partition in your primary one.

'mount /dev/hdbx /mnt/hd -t auto'

'x' is partition number, /mnt/hd is the mount point, make sure the /mnt/hd folder exists, if '-t auto' doesn't work, replace it with the filesystem type your test Red Hat was (ex: '-t ext2').
Then check your /etc/grub.conf for the test Rh. It should be in /mnt/hd/etc/grub.conf . Take a look at it with your favorite editor (pico, kedit, etc..), and copy/paste the entries you want to your primary Rh's grub.conf, which is /etc/grub.conf . You will have to edit them slightly, because the test Rh thinks it's on Master. In the entries you copy/paste from your test to your new, change al references to 'hd0' to 'hd1'. For example, if you saw a line in your test grub.conf that said 'root (hd0,0)', you'd change it to 'root (hd1,0). Keep the numbers after the commas as is. You'll also have to edit the test Rh's /etc/fstab file (from your new Rh it would be /mnt/hd/etc/fstab) to reflect the fact that the test Rh will be on a slave hard drve.
 
  


Reply



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 Trouble RedNovember Linux - Software 13 02-20-2006 10:09 PM
GRUB trouble laubster Linux - General 2 01-05-2005 03:47 AM
Trouble with GRUB technician Linux - Software 5 02-16-2004 10:37 PM
Grub trouble mcm8327 Linux - General 2 07-04-2003 08:00 AM
Trouble with GRUB SilverSnake Linux - Software 16 12-06-2002 12:00 PM

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

All times are GMT -5. The time now is 01:31 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