Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do you install a new kernel?
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
jgombos
n00b
n00b


Joined: 27 Jul 2004
Posts: 64

PostPosted: Mon Sep 05, 2005 1:48 am    Post subject: How do you install a new kernel? Reply with quote

I followed the handbook installation, and had something that booted. Then I recompiled the kernel, and copied the image to the /boot folder, replacing the previous image (using the same filename).

Is there anything else I need to do? After rebooting, I get a "Error 15: File not found". I would expect Grub to look for the same file.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Sep 05, 2005 2:18 am    Post subject: Reply with quote

Did you use genkernel either time, by chance?

Boot KNOPPIX or some other LiveCD that facilitates cut 'n paste, mount your / and/or /boot partition somewhere, cd to the boot directory and paste the exact output of the following commands, wrapped with [ code ] tags:
Code:
ls -alR .
cat grub/grub.conf

_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?


Last edited by Dlareh on Mon Sep 05, 2005 3:23 am; edited 1 time in total
Back to top
View user's profile Send private message
jgombos
n00b
n00b


Joined: 27 Jul 2004
Posts: 64

PostPosted: Mon Sep 05, 2005 3:15 am    Post subject: Reply with quote

Thank you Dlareh!! I was able to resolve the problem from that information. The image filename was mismatched :oops:.

I think what happened was at one point I wasn't sure whether I needed to put the image on the root "/" of the boot partition (/dev/hda1), or on the "/boot" folder of the root partition (/dev/hda3). The image was named something like "kernel-2.6.12-gentoo-r6" in one place, and "kernel-gentoo-2.6.12-r6" in the other place.
Back to top
View user's profile Send private message
gwolf
Guru
Guru


Joined: 05 May 2005
Posts: 374
Location: Estonia

PostPosted: Mon Sep 05, 2005 6:15 am    Post subject: Reply with quote

I suggest you to not overwrite the old kernel before new starts, just write a new section with your new kernel specification and run grub-install <install-device>, i.e. in most common case grub-install /dev/hda. Look at grub-install specifications also.
_________________
War is peace. Freedom is slavery. Ketchup is a vegetable.
Back to top
View user's profile Send private message
eldacar
n00b
n00b


Joined: 22 Feb 2005
Posts: 64
Location: Göteborg, Sweden

PostPosted: Mon Sep 05, 2005 7:09 am    Post subject: Reply with quote

Agree with previous poster although I don't think you need to run grub-install everytime you add a new spec. The only time you need to run grub-install is when you need to reinstall the boot sector. With lilo you need to run lilo when you add a new specification, and that is one of my main reasons for using grub.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Sep 05, 2005 7:20 am    Post subject: Reply with quote

Right, there is no reason to re-run grub-install

Just to give you some idea of the kind of crap that can accumulate in /boot when you use different kernel names:
Code:
$ ls /boot
System.map
boot
config-linux-2.6.11-gentoo-r7-2005-05-08@09:30:04
config-linux-2.6.11-gentoo-r7-2005-05-08@09:57:22
config-linux-2.6.11-gentoo-r9-2005-05-25@13:35:27
config-linux-2.6.12-gentoo-2005-06-19@03:31:41
config-linux-2.6.12-gentoo-2005-07-01@10:28:07
config-linux-2.6.12-gentoo-r3-2005-07-03@08:59:10
config-linux-2.6.12-gentoo-r6-2005-07-22@17:44:22
config-linux-2.6.12-gentoo-r6-2005-07-22@18:31:59
config-linux-2.6.12-gentoo-r7_20050806-1808
config-linux-2.6.12-gentoo-r8_20050814-1433
config-linux-2.6.12-gentoo-r9_20050819-1439
config-linux-2.6.12-gentoo-r9_20050819-1743
config-linux-2.6.12-gentoo-r9_20050824-0021
config-linux-2.6.12-rc5-suspend2-r4-2005-06-03@20:39:06
config-linux-2.6.13-gentoo_20050829-1454
config-linux-2.6.13-gentoo_20050901-0225
config-linux-2.6.13-rc3-2005-07-19@19:13:21
grub
linux-2.6.11-gentoo-r7
linux-2.6.11-gentoo-r7-2005-05-08@09:30:04
linux-2.6.11-gentoo-r7-2005-05-08@09:57:22
linux-2.6.11-gentoo-r9-2005-05-25@13:35:27
linux-2.6.12-gentoo-2005-06-19@03:31:41
linux-2.6.12-gentoo-2005-07-01@10:28:07
linux-2.6.12-gentoo-r3-2005-07-03@08:59:10
linux-2.6.12-gentoo-r6-2005-07-22@17:44:22
linux-2.6.12-gentoo-r6-2005-07-22@18:31:59
linux-2.6.12-gentoo-r7_20050806-1808
linux-2.6.12-gentoo-r8_20050814-1433
linux-2.6.12-gentoo-r9_20050819-1439
linux-2.6.12-gentoo-r9_20050819-1743
linux-2.6.12-gentoo-r9_20050824-0021
linux-2.6.12-rc5-suspend2-r4-2005-06-03@20:39:06
linux-2.6.13-gentoo_20050829-1454
linux-2.6.13-gentoo_20050901-0225
linux-2.6.13-rc3-2005-07-19@19:13:21
lost+found


and my /boot/grub/grub.conf :

Code:
default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz

title=linux-2.6.13-gentoo_20050901-0225
root(hd0,0)
kernel /linux-2.6.13-gentoo_20050901-0225 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.13-gentoo_20050829-1454
root(hd0,0)
kernel /linux-2.6.13-gentoo_20050829-1454 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r9_20050824-0021
root(hd0,0)
kernel /linux-2.6.12-gentoo-r9_20050824-0021 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r9_20050819-1743
root(hd0,0)
kernel /linux-2.6.12-gentoo-r9_20050819-1743 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r9_20050819-1439
root(hd0,0)
kernel /linux-2.6.12-gentoo-r9_20050819-1439 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r8_20050814-1433
root(hd0,0)
kernel /linux-2.6.12-gentoo-r8_20050814-1433 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r7_20050806-1808
root(hd0,0)
kernel /linux-2.6.12-gentoo-r7_20050806-1808 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r6-2005-07-22@18:31:59
root(hd0,0)
kernel /linux-2.6.12-gentoo-r6-2005-07-22@18:31:59 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.13-rc3-2005-07-19@19:13:21
root(hd0,0)
kernel /linux-2.6.13-rc3-2005-07-19@19:13:21 root=/dev/hda6 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r3-2005-07-03@08:59:10
root(hd0,0)
kernel /linux-2.6.12-gentoo-r3-2005-07-03@08:59:10 root=/dev/hda6 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-r3-2005-07-03@08:59:10
root(hd0,0)
kernel /linux-2.6.12-gentoo-r3-2005-07-03@08:59:10 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-2005-07-01@10:28:07
root(hd0,0)
kernel /linux-2.6.12-gentoo-2005-07-01@10:28:07 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-gentoo-2005-06-19@03:31:41
root(hd0,0)
kernel /linux-2.6.12-gentoo-2005-06-19@03:31:41 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.12-rc5-suspend2-r4-2005-06-03@20:39:06
root(hd0,0)
kernel /linux-2.6.12-rc5-suspend2-r4-2005-06-03@20:39:06 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.11-gentoo-r9-2005-05-25@13:35:27
root(hd0,0)
kernel /linux-2.6.11-gentoo-r9-2005-05-25@13:35:27 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.11-gentoo-r7-2005-05-08@09:57:22
root(hd0,0)
kernel /linux-2.6.11-gentoo-r7-2005-05-08@09:57:22 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60 splash=verbose,theme:emergence

title=linux-2.6.11-gentoo-r7-2005-05-08@09:30:04
root(hd0,0)
kernel /linux-2.6.11-gentoo-r7-2005-05-08@09:30:04 root=/dev/hda5 ro video=intelfb:mtrr,ywrap,1024x768-32@60

title=Gentoo Linux 2.6.11-47
root(hd0,0)
kernel /linux-2.6.11-gentoo-r7 root=/dev/hda5 ro video=vesafb:mtrr,ywrap,1024x768-32@60

title=Windows XP
rootnoverify (hd0,3)
makeactive
chainloader +1

Fun, eh?
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
gwolf
Guru
Guru


Joined: 05 May 2005
Posts: 374
Location: Estonia

PostPosted: Mon Sep 05, 2005 7:21 am    Post subject: Reply with quote

eldacar wrote:
Agree with previous poster although I don't think you need to run grub-install everytime you add a new spec. The only time you need to run grub-install is when you need to reinstall the boot sector. With lilo you need to run lilo when you add a new specification, and that is one of my main reasons for using grub.


Hmm. If that's true, grub is even nicer than I expected ;-). I'm probably too used to lilo, and didn't even think of the possibility that the grub-install is not needed after every update. Will check it as soon as i get home.

And big thanks!
_________________
War is peace. Freedom is slavery. Ketchup is a vegetable.
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