Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub booting Problem
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
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Wed Feb 25, 2004 7:10 pm    Post subject: Grub booting Problem Reply with quote

Ok..

Here my first boot with gentoo and also my first error...
when i boot i received this beatifull error

Grub error 15
After hitting return in the grub prompt you get something similar to this one?
Code:

Booting 'gentoo Linux'

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.20 root=/dev/hda3 vga=792

Error 15: File not found
Press any key to continue...


in the sticky post of the forum there's an answer for this.
it tells this
[/code]
If it's the kernel that it's missing (bzImage, kernel...):make sure that the file it is referring to exists on your boot partition.

To find out what the exact name of your kernel is, first boot from the live-cd or into your existing linux installation. Then mount /boot if you've got a seperate partition, or mount / if you don't. Then do the following:
Code:

cd /boot
ls

This will list all the kernels that you've got on your boot partition. [/code]

but when i do this i received this results

first i mount my boot (/) partition
mkdir /mnt/tmp
mount /dev/hda1 /mnt/tmp
ls /mnt/tmp

and i received this
Code:

   grub
    lost&found


so, i umount this partition and mount the root

mount /dev/hda3 /mnt/tmp
ls /mnt/tmp
and i received this
Code:

bin dev boot etc home lib mnt opt proc root sbin usr var stage1-xxx

and if i give the ls to the boot folder in that partition

i received this

System.map  System.map-2.6.3 boot config-2.6.3 kernel-2.6.3


so what i must do to fix this ???

[/code]
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Dr Gonzo
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 276
Location: Austin, TX

PostPosted: Wed Feb 25, 2004 7:27 pm    Post subject: Reply with quote

I think you should mount your boot partition (the one with the grub directory and lost&found only in it) and copy the grub directory to the boot directory of your root partition.

Next, change grub.conf to read:
Code:
root(hd0,2)
kernel (hd0,2)/boot/kernel-2.4.20 root=/dev/hda3 vga=791


It looks like you somehow mixed having/not having a /boot partition. As it stands, most of your booting stuff is on your root partition, /dev/hda3, and only the grub stuff is on /dev/hda1.

After you copy the grub directory and change grub.conf (make sure it's the one in /boot/grub on /dev/hda3), you're going to have to set grub up again so that it knows where to look for the stage files it needs. Otherwise, you'll be SOL.

Code:
grub

Now, in the grub console:
Code:
root (hd0,2)
setup (hd0)
quit


Looks like you're going to have an extra small partition on /dev/hda1 after it's all over, though. Do with it whatever you feel like.

Hope this helps.
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Wed Feb 25, 2004 7:54 pm    Post subject: Reply with quote

The same problem..

except that now tell me rerering me to (hd0,2) instead of (hd0,0) and also the vga display is very poor, but the vga display i know how to change it now..

somebody with something diferent????
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Wed Feb 25, 2004 7:59 pm    Post subject: Reply with quote

docGonzo2000 wrote:


Next, change grub.conf to read:
Code:
root(hd0,2)
kernel (hd0,2)/boot/kernel-2.4.20 root=/dev/hda3 vga=791



why 2.4.20???
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Feb 25, 2004 8:21 pm    Post subject: Reply with quote

Painkiller wrote:
docGonzo2000 wrote:


Next, change grub.conf to read:
Code:
root(hd0,2)
kernel (hd0,2)/boot/kernel-2.4.20 root=/dev/hda3 vga=791



why 2.4.20???
I believe that was a type-o
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Feb 25, 2004 8:23 pm    Post subject: Reply with quote

I believe somehow during your original install, you didn't have /boot mounted when you did the make install for you kernel compile. If you chroot in, and then mount your /boot partition, re-run make install.
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Wed Feb 25, 2004 8:39 pm    Post subject: Reply with quote

MighMoS wrote:
I believe somehow during your original install, you didn't have /boot mounted when you did the make install for you kernel compile. If you chroot in, and then mount your /boot partition, re-run make install.


Could you please tell me how exactly i must do this???

i believe that is in that way...

boot with the live cd ..
first change the password for the root
later i mount the /boot partition (mount /dev/hda1 /mnt/boot ???..is this right?
later
make install
or
make && dep modules modules_install
or
make modules_install

later i must re edit again de Grub.conf file now to (hd0,0)
later do i have to make a symlink???

how exactly i must do this???

Thanx guys
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
MighMoS
Guru
Guru


Joined: 24 Apr 2003
Posts: 416
Location: @ ~

PostPosted: Wed Feb 25, 2004 8:45 pm    Post subject: Reply with quote

I'm sorry. Yes, first boot off the gentoo CD, and mount your root partition to /mnt/gentoo. Then mount your boot partition to /mnt/gentoo/boot. Then:
Code:
# chroot /mnt/gentoo
# mount -a
# cd /usr/src/linux
# make install
# make modules_install
# exit

Then reboot. The mount -a command runs through your fstab file mounting anything that may need to be mounted.
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Wed Feb 25, 2004 9:16 pm    Post subject: Reply with quote

after these steps...

this is the result
Code:

GRUB loading Stage1.5

GRUB loading, please wait


and then a black screen, let me boot again with the live cd and check the grub.conf file...
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Catach
Apprentice
Apprentice


Joined: 06 Nov 2003
Posts: 268
Location: Australia

PostPosted: Thu Feb 26, 2004 12:24 am    Post subject: Reply with quote

you may want to check a new post of mine detailing problems with multiple hard disks and GRUB. Search for "(SOLVED) grub and multiple hard disks", or posts by me, Catach. Do you have an ASUS motherboard?
_________________
Zak: Luke's making a 3D interface for Linux"
Jon G: "Yeah, Luke's making a 3D user interface with Logowriter"
Jon H: "He's only got 99 shapes to work with"
Jon G: "And they're all turtles."
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Thu Feb 26, 2004 2:00 am    Post subject: Reply with quote

Catach wrote:
you may want to check a new post of mine detailing problems with multiple hard disks and GRUB. Search for "(SOLVED) grub and multiple hard disks", or posts by me, Catach. Do you have an ASUS motherboard?


is not a asus board..
Is intel

Is a GX1 Dell machine with a 450mhz pentium 3 and a 6Gb maxtor hard disk
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Thu Feb 26, 2004 2:56 am    Post subject: Reply with quote

It looks like you have your kernel and some other files in your root partition, not boot partition (where they should be).

When you
Code:
mount /dev/hda3 /mnt/gentoo
ls /mnt/gentoo/boot
/mnt/gentoo/boot should be empty (because the boot partition is not mounted). If there are files in there, move them out, then mount boot, then copy them back. This will get them off the root partition and into boot partition where they belong.

Example: (with root mounted at /mnt/gentoo)
Code:
mkdir /mnt/gentoo/tmp/boot
cp -av /boot/* /mnt/gentoo/tmp/boot
rm /boot/*
mount /dev/hda1 /mnt/gentoo/boot
cp -av /mnt/gentoo/tmp/boot/* /boot
rm -r /mnt/gentoo/tmp/boot


Btw, I just looked at my systems, and one of them has some files in /boot when boot isn't mounted.. so files don't interfere if you leave them there, but they will be inaccessible once you mount boot. Most importantly make sure to have boot mounted before you copy over the kernel or emerge grub.

Also if your boot is /dev/hda1 then you are correct with (hd0,0) in grub. Make sure that your kernel line refers to the actual name of your kernel, and remember that (hd0,0) refers to /boot since that's where it's mounted.

This (should) be close in your case:
Code:
root (hd0,0)
kernel (hd0,0)/kernel-2.6.3 root=/dev/hda3

(Replace kernel-2.6.3 with kernel-x.x.xx or bzImage as appropriate.)

Also refer to configuring grub in the gentoo handbook.
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Thu Feb 26, 2004 5:01 pm    Post subject: Reply with quote

no,no,,,no result...

Anyway, i will reinstall again,,,

Now i will print the handbook for read it at home, i just will print the X86 part..
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Thu Feb 26, 2004 5:11 pm    Post subject: Reply with quote

Hmmm.

One thing here..

Right now i'm making my handbook of gentoo..

and i see this part (the which i know is really very important for the instalation and with my grub case)..

i can see that when i installing i must mounting the proc in two diferents way, one of this is for me...
the handbook say this

Code:

If you are installing Gentoo from a LiveCD, you just need to mount proc:

Code listing 42: Mounting proc

# mount -t proc none /mnt/gentoo/proc

If you are not installing Gentoo from a Gentoo LiveCD, you need to bindmount /proc:

Code listing 43: Bind-mounting proc

# mount -o bind /proc /mnt/gentoo/proc



But i'm booting with a 2004 cd (the last beta) and i will install it from the stage 1 (i will choose the experimental 2.6 kernel) the which i will download from the site , so what command for mount the proc i must choose

Thanx as always...
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
Back to top
View user's profile Send private message
Painkiller
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 167
Location: Valhalla

PostPosted: Thu Feb 26, 2004 6:51 pm    Post subject: Reply with quote

Somebody could tell me something about the last question???

Thanx...
_________________
"Whoever Fights Monsters Should See To It That In The Process He Does Not Become A Monster And When You Look Into The Abyss, The Abyss Also Look Into You".

Friedrich Wilhelm Nietzsche
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