Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > Almost installed, problems in GRUB

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-19-2004   #1 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
Almost installed, problems in GRUB

I've been chipping away at this rock best as I can, but I don't know what to do here:

Per instructions, from /root , I start grub. I did 'root (hd0,1)' and got a favorable response. Then I did 'setup (hd0)' and I got this:
Code:
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/`stage1" exists... no
Okay. I think grub is checking the wrong directory, but I don't know if (or how) I should re-direct grub, or if I need to move a directory: /mnt/gentoo/boot/grub/ has files that appear to be where grub should look. This directory includes:

(various filesystems)_stage1_5
grub.conf.sample
menu.lst
splash.xpm.gz
stage1
stage2

Note that I have a /boot partition. I've come too far to screw this up now: any thoughts?
drakebasher is offline  



Reply With Quote
Old 07-19-2004   #2 (permalink)
Linux User
 
Join Date: Jun 2003
Location: Huntington Beach, CA
Posts: 390
Send a message via AIM to Dillinger Send a message via MSN to Dillinger
That's a normal output, don't worry about it. And if you're chrooted into the system, /boot/grub is the correct path, not /mnt/gentoo/boot/grub.
Dillinger is offline   Reply With Quote
Old 07-19-2004   #3 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
I think I see what's up, but my mind is bloown:

I've been doing the install on vc1 while reading the install manual on vc2 and using vc3 and vc4 for finding, cat-ing and ls-ing files, trying to follow what's happening. I just discovered that ls on vc1 is different from that on vc3 and vc4. If I understand, that's because I chroot-ed on vc1 only, so I have a different directory structure. Right? Too wild! Thanks for your help.
drakebasher is offline   Reply With Quote
Old 07-19-2004   #4 (permalink)
Content Team
 
sarumont's Avatar
 
Join Date: Apr 2003
Location: /dev/urandom
Posts: 3,682
Quote:
Originally Posted by drakebasher
If I understand, that's because I chroot-ed on vc1 only, so I have a different directory structure. Right? Too wild! Thanks for your help.
Yes.
__________________
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
sarumont is offline   Reply With Quote
Old 07-23-2004   #5 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
Gotta love GRUB

Quote:
Originally Posted by Dillinger
That's a normal output, don't worry about it. And if you're chrooted into the system, /boot/grub is the correct path, not /mnt/gentoo/boot/grub.
I beg to differ. The response that I called "favorable" was that GRUB told me I had pointed it to an ext2fs. I thought that that meant /boot since I had set-up /boot as ext2 and all other partitions as ext3. I now recognize that ext3 and ext2 are indistinguishable to GRUB. I had erroneously pointed GRUB to /root because I naively believed that what GRUB meant by "root" was "root" and not "boot". I guess I should have taken a clue from hd"first"=hd"one minus one" and that hd"cdrom" doesn't count and sda=hd??

So that's sour grapes. Now (after having followed Gentoo's handbook pretty nearly meticulously) when I boot I do get the pleasure of their splash screen, but I miss the wonder of it all when I'm told that Gentoo can't find the init file. Okay, I wondered what was up when the handbook suggested that users of genkernel needed the initrd line in the grubconf but left it to our imagination for non-genkernel users.

Back to the point: The install is complete except for booting. I have found a file named initrd-2.6.5-gentoo. Note that it lacks the .img extension. It is a binary file. The grub.conf file is complete and, I believe, correct, except for the pointer to initrd. Do I need to do something to process the initrd file which lacks .img? I already tried:
Code:
cp /initrd-2.6.5-gentoo /tmp/boot/initrd-2.6.5-gentoo.img
Note the addition of the .img extension and that the /tmp/boot directory puts it to the correct partition.

In absence of above, if I choose to follow the kernel's instructions:
Code:
Kernel panic: No init found.  Try passing init= option to kernel.
what, exactly would be the phrasing?

Guidance will be greatly appreciated.
drakebasher is offline   Reply With Quote
Old 07-23-2004   #6 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
use the echo command, or declare the variable before you run the line
Code:
USE="kde qt" emerge bob
at least... i think. i could be very wrong, but thats my guess at what it wants
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Old 07-24-2004   #7 (permalink)
Linux Guru
 
loft306's Avatar
 
Join Date: Oct 2003
Location: The DairyLand
Posts: 1,666
i think i had to much to drink.....or did i just read what i did (.img?)? so i will sleep on it.....

I geuss the question is did you use genkernel or not?
__________________
~Mike ~~~ Forum Rules
Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
http://loft306.org
loft306 is offline   Reply With Quote
Old 07-24-2004   #8 (permalink)
Linux Guru
 
Join Date: May 2004
Location: forums.gentoo.org
Posts: 1,814
I did not use genkernel. In the installation manual, section 9.b. on installing grub, they show different grubs depending on whether genkernel was used or not and if not, they don't show a line for initrd. I guess that means that starting from stage 1 or 2 will include all of the initrd instructions in the kernel? So that's why I'm confused as to why the kernel panic message says that init can't be found.... Any background you can offer will be welcomed.
drakebasher is offline   Reply With Quote
Old 07-24-2004   #9 (permalink)
Linux Guru
 
kkubasik's Avatar
 
Join Date: Mar 2004
Location: Lat: 39:03:51N Lon: 77:14:37W
Posts: 2,397
Send a message via AIM to kkubasik
do yuo know what the variable is supposed to contaoin? you could use echo to give it a value ,
Code:
echo bob >> /mnt/gentoo/myname
this would sety myname equal to bob. thats the only thing i can really offer
__________________
Avoid the Gates of Hell. Use Linux
A Penny for your Thoughts

Formerly Known as qub333
kkubasik is offline   Reply With Quote
Old 08-26-2004   #10 (permalink)
Just Joined!
 
Join Date: Aug 2004
Posts: 21
Send a message via AIM to gnuageux
Can you boot from the livecd, chroot in, and post your grub.conf?
gnuageux is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:43 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1