Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grr... Grub and onboard ata/100!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Jun 04, 2002 4:19 am    Post subject: Grr... Grub and onboard ata/100! Reply with quote

...Actually, it may not be Grub's fault.

OK, here's the deal: did a by-the-book install. I have 2 hard drives, attached to an onboard ATA/100 (Promise controller, Asus A7V mobo). During install, they showed up as /dev/hde and /dev/hdf (and I didn't have any problems with them). /dev/hde is partitioned like so:
/dev/hde1 : /boot
/dev/hde2 : swap
/dev/hde3 : /
/dev/hde4 : FAT32 (Win2k)

/dev/hdf is one big FAT partition, with no programs (only mp3's/video).

So, I can boot to Win2k just fine. The issue comes when I try to load linux. No matter what I tell it to be as root (to the kernel), it can't find it.

For example, right now my menu.lst is...

Quote:

default 0
timeout 10
splashimage....blah, blah

title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hde3

title=Win2k, blah,blah....


When I boot, I get this error:

Quote:

VFS cannot open root device "hde3" or 21:03
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 21:03


If I try changing the paramenter I send to bzImage (tried /dev/hde1, /dev/hda3, /dev/hda1, etc): nothing changes -- it still says it can't find it. I'm pretty sure this isn't Grub's fault, but I can't think of any other problems that might exist. Help! (Please?)
Back to top
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 6:31 am    Post subject: Reply with quote

Quote:

title=Gentoo Linux
root (hd0,0)
kernel /boot/bzImage root=/dev/hde3


Quote:

VFS cannot open root device "hde3" or 21:03
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 21:03


correct "root" doesn't mean to root=/dev/hda3 because its correct
you need to change the root (hd0,0) to root (hd4,0)
why? first zero means 'a', one means 'b' and so on...

READ THE GENTOO DOCS OR GRUB DOCS

Lett me know if I'm wrong
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 6:52 am    Post subject: Reply with quote

pacman wrote:
you need to change the root (hd0,0) to root (hd4,0)
why? first zero means 'a', one means 'b' and so on...

READ THE GENTOO DOCS OR GRUB DOCS

Lett me know if I'm wrong

It's you who should read the docs! You're completely wrong!


Guest, which filesystem is /dev/hde3? Do you have support for it in your kernel?
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 6:54 am    Post subject: Reply with quote

sorry, whats wrong?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 6:58 am    Post subject: Reply with quote

pacman wrote:
sorry, whats wrong?

Follow your own suggestion and read the docs. You will find out what is wrong. You can start by going to Google, typing "grub manual" and following some of the links...
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 7:02 am    Post subject: Reply with quote

Hold a sec, I know to use GRUB very well.
He said that the HD is /dev/hde
If it was /dev/hda then he should write root (hd0,0) :?:
Or root (hd0,0) means MBR part watever /dev/hd* says?
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jun 04, 2002 7:07 am    Post subject: Reply with quote

Yeah, hd(4,0) doesn't work, because when Grub's working it doesn't think there are 5 (4+ the first (ie 0th)) HDD's, just that there are 2 (hd(0) and hd(1), of course, hd(1) isn't bootable, just hd(0)).

I've been over all the FAQ's and the man pages, but it still seems like I'm caught in a no-man's land -- the linux kernel (inexplicabply) doesn't recognize the hde[1|3], and grub doesn't want to deal with hd(0,[0|2]).

I really don't understand what's going wrong or how I can deal with it -- I've pretty much delt with every permutation on what I can do (or so I would think... maybe there is some magic assignment of HD to /dev/, etc., that would work for me).

So, thanks for the thought about the hd(4,0), but Grub doesn't accept that -- it sees my 1st hd as (correctly) being the first hd, and thinks of it as (hd0), rather than skipping over 4 IDE channels and seeing it as (hd4).

Sigh... I really want to get this working, and I'm sure that someone else has run across this problem before...
Back to top
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 7:22 am    Post subject: Reply with quote

pacman wrote:
Hold a sec, I know to use GRUB very well.
He said that the HD is /dev/hde
If it was /dev/hda then he should write root (hd0,0) :?:
Or root (hd0,0) means MBR part watever /dev/hd* says?

Ok, if you really don't want to read the docs, at least search the forums:
https://forums.gentoo.org/viewtopic.php?p=249


Anonymous wrote:
I really want to get this working, and I'm sure that someone else has run across this problem before...

Please boot from the install cd and post the output of fdisk -l /dev/hde here.
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jun 04, 2002 7:24 am    Post subject: Reply with quote

Forget about it, i read the docs
If you're so smart you can explaind it here...anyway
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 7:28 am    Post subject: Reply with quote

pacman wrote:
Forget about it, i read the docs
If you're so smart you can explaind it here...anyway

I won't argue with you... Please follow the link I posted above and let me try to help that guy who started this thread...
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Jun 04, 2002 7:34 am    Post subject: Reply with quote

Quote:
Please boot from the install cd and post the output of fdisk -l /dev/hde here


Sorry that I can't copy and paste, but since my FAT32 drive can't read from my ext3 drive, you'll just have to take it on faith that my fdisk -l /dev/hde outputed exactly what I said -- ie:

/dev/hde1 - 82 - Linux
/dev/hde2 - 83 - Linux Swap
/dev/hde3 - 82 - Linux
/dev/hde4 - - NTFS (don't remember the code, but it works anyway)


I think the issue is that Grub sees my HDD as the first HD existing on my system (which it is), but Linux sees it as number 5 (ie, hde), because it is on an on-board ATA/100 card, which is the 5th possible IDE device (given that the first 2 are taken up by the primary IDE channel, and the 3rd and 4th are taken up by the secondary IDE channel -- this leaves the 5th and 6th devices (ie, hde and hdf), to represent the 5th and 6th channels, respectively).

Sigh... this seems like such a simple thing, and yet it's so complicated. Would LILO work any better (or worse?)?
Back to top
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 7:47 am    Post subject: Reply with quote

Thanks. It looks like grub is ok...

You said your root filesystem is ext3. Do you have support for ext3 compiled into your kernel (not as a module)? It is not included by default...
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
CeTeX
n00b
n00b


Joined: 04 Jun 2002
Posts: 5

PostPosted: Tue Jun 04, 2002 1:11 pm    Post subject: Reply with quote

i know what´s wrong, i had the same problem with my promise ata100.
the problem is in you kernel, you havent got support for your ata100 card so it wont find it and therefore it can´t find your hdd.
during install they have added support for some ata100 cards so if it works to install but not after you reboot the problem resides in your kernel.
now recompile the kernel, add support for you ata100 card, then grub/lilo/whatever will find your hdd
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Tue Jun 04, 2002 2:12 pm    Post subject: Reply with quote

Wow, now I really don't understand Grub. I thought this made perfect sense:
Quote:
In lilo/linux slang,

hda = master on first IDE
hdb = slave on first IDE
hdc = master on second IDE
hdd = slave on second IDE
hde = master on third IDE

While in grub slang,

hd0 = first hard disk
hd1 = second hard disk
hd2 = third hard disk

That is, grub ignores CD/DVD/etc. drives. It only cares about hard disks (or floppies, but those would be fdn).
Which would then continue to suggest that in grub, hde would (4,x). I think I just realized the difference. I was ASSUMING that hda,b,c,d existed as hard disks. So, with hde being the first hard disk, (0,x) would be correct?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Tue Jun 04, 2002 5:05 pm    Post subject: Reply with quote

kanuslupus wrote:
So, with hde being the first hard disk, (0,x) would be correct?

Yes. You can put it wherever you want: if it is the only/first hard disk, it will be called (hd0).
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Vlad
Apprentice
Apprentice


Joined: 09 Apr 2002
Posts: 264
Location: San Diego, California

PostPosted: Wed Jun 05, 2002 7:35 am    Post subject: Reply with quote

To the original poster of this thread (Anonymous):

I, too, have an Asus A7V board (actually A7V133) with a promise raid controller. Your menu.lst file for grub looks exactly as it should - but I'm guessing your errors are due to a misconfigured kernel. Did you remember to compile the kernel with "PROMISE PDC202{46|62|65|67|68|69|70} support" in "IDE, ATA and ATAPI Block devices"? It seems to me that you've forgotten to do that and the kernel can not, therefore, find /dev/hde.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum