Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NOOB; installing a second kernel and grub settings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
robinBones
n00b
n00b


Joined: 15 Feb 2005
Posts: 22

PostPosted: Sat Feb 19, 2005 6:01 pm    Post subject: NOOB; installing a second kernel and grub settings Reply with quote

Hi guys... I have a new gentoo installation that I want to install gnome on it.
emerging gnome says that I need the 2.6 Kernel. I emerged the newer kernel using 'emerge gentoo-sources', and configured it using 'genkernel all'.
I have the new kernel, and not quite sure what the grub.config should look like.

This is my complete grub.config file
------------------------------------------------------
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

# This section is working
title=Gentoo Linux 2.4.26-r9
root (hd0,0)
kernel /kernel-2.4.28-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_$
initrd /initrd-2.4.28-gentoo-r7

# This is what I added
title=Gentoo Linux kernel-2.6.10
root (hd0,0)
kernel /kernel-2.6.10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_$
initrd /initrd-2.6.10

------------------------------------------------------
boot dir
------------------------------------------------------

drwxr-xr-x 4 root root 1024 Feb 19 06:20 .
drwxr-xr-x 18 root root 4096 Feb 18 07:49 ..
-rw-r--r-- 1 root root 0 Oct 27 17:45 .keep
-rw-r--r-- 1 root root 674034 Feb 18 13:56 System.map-2.4.28-gentoo-r7
-rw-r--r-- 1 root root 907745 Feb 19 06:13 System.map-2.6.10
lrwxrwxrwx 1 root root 1 Feb 18 07:46 boot -> .
drwxr-xr-x 2 root root 1024 Feb 18 16:22 grub
-rw-r--r-- 1 root root 2049644 Feb 18 14:24 initrd-2.4.28-gentoo-r7
-rw-r--r-- 1 root root 1547158 Feb 19 06:20 initrd-2.6.10
-rw-r--r-- 1 root root 1482314 Feb 18 13:56 kernel-2.4.28-gentoo-r7
-rw-r--r-- 1 root root 2002574 Feb 19 06:13 kernel-2.6.10

------------------------------------------------------
When I boot up, I get the new kernel option, but when I select it I get this error.
Mounting Filesystems
Determining root decives
The Root block device is unspecified or not detected. Please specify a device to boot, or "shell" for a shell

Thanks
Robin
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Sat Feb 19, 2005 6:28 pm    Post subject: Reply with quote

Try this:
Code:
title=Gentoo Linux kernel-2.6.10
root (hd0,0)
kernel /kernel-2.6.10 root=/dev/hda1

Substitute /dev/hda1 with the location of your / partition if necessary.
Back to top
View user's profile Send private message
robinBones
n00b
n00b


Joined: 15 Feb 2005
Posts: 22

PostPosted: Sat Feb 19, 2005 6:32 pm    Post subject: Reply with quote

I changed

kernel /kernel-2.6.10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_$
to
kernel /kernel-2.6.10 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hda3

and it worked..
I did get an error at boot time, I'm compiling gnome right now,
when it is done, I'll write down that message and post it..

Also, what exact;y does the root=/dev/ram0 do?
Is it creating a ram disk to store something?

Thanks for the reply.
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Sat Feb 19, 2005 7:22 pm    Post subject: Reply with quote

Yep, /dev/ram0 is a ramdisk. I guess that you could store the kernel in it. You could also write a script that loads your favorite programs in there at startup so they load faster when you open them.
I don't use a ramdisk, and it works just fine.
Back to top
View user's profile Send private message
tkdfighter
Apprentice
Apprentice


Joined: 14 May 2004
Posts: 271
Location: Bludenz, Austria

PostPosted: Sat Feb 19, 2005 7:25 pm    Post subject: Reply with quote

I just found this with google.
Back to top
View user's profile Send private message
angoraspruce
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 193
Location: Minnesota, USA

PostPosted: Sat Feb 19, 2005 7:48 pm    Post subject: Re: NOOB; installing a second kernel and grub settings Reply with quote

robinBones wrote:

kernel /kernel-2.4.28-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_$

Can anyone explain what the 'real_$' is all about? A substitution for 'real_root=/dev/<whatever>', true, but is it some kind of wildcard variable pointing to the ram disk root file system? If so, why didn't it work with the OP's second kernel, whereas the 'real_root=/dev/hda3' did?

TIA :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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