View previous topic :: View next topic |
Author |
Message |
ASpott n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey2.gif)
Joined: 23 Sep 2004 Posts: 33 Location: California
|
Posted: Tue Dec 28, 2004 5:47 am Post subject: upgrading kernel |
|
|
I currently use kernel 2.6.8-r4.
I am trying to upgrade to kernel 2.6.10-r1.
In compiling the new kernel I basically copied over my kernel configuration the long way from my 2.6.8 kernel config that does work.
When I boot up with my newly compiled 2.6.10 kernel I get the error:
Code: |
VFS: cannot open root device "sda5" or unknown-block (8,5)
Please append a correct "root=" boot option
Kernel Panic - not syncing: VFS: unable to mount root FS on unknown-block (8,5)
|
This originally sounded to me like I mistyped something in grub, but sda5 is my root partition, and should have no trouble loading. I then thought it might be a problem with my hard drive being a sata hdd but I have checked many times and the kernel is compiled with correct options for sata loading, which are identical to those of the 2.6.8 kernel configuration which had no trouble booting from this sata. I had a the same problem when I at one point tried to boot 2.6.9. Any suggestions? _________________ "Amidst the numerous processors and network cards I have sacrificed for their sake, why is that the computer gods still continue to hate me?" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54849 Location: 56N 3W
|
Posted: Tue Dec 28, 2004 11:37 am Post subject: |
|
|
ASpott,
Did you run in the new kernel tree? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Trust No One n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/120246121941ca921aee454.gif)
Joined: 14 Oct 2004 Posts: 53 Location: Firenze,Italy
|
Posted: Tue Dec 28, 2004 12:33 pm Post subject: |
|
|
This happens to me every time i try to use a new kernel
i usually use "genkernel all" , and with kernel version i have tried , except for the one i'm using ( 2.6.7-r14) , it says the same thing of ASpott
My question : does genkernel do "make oldconfig" by itself or not?
PS sorry for my poor english ![Confused :?](images/smiles/icon_confused.gif) _________________ Abit KV7 Barton 2500@2800+ , 1gb Ram 333mhz
WinXP/Gentoo 2004.3 - 2.6.7-r14
NPTL - stage3 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54849 Location: 56N 3W
|
Posted: Tue Dec 28, 2004 12:41 pm Post subject: |
|
|
Trust No One,
I have never used genkernel. I suspect it disregards the .config file if there is one and makes all the modules known. It certainly makes some lean kernels with very bloated /lib/modules/<kernel_name>. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Trust No One n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/120246121941ca921aee454.gif)
Joined: 14 Oct 2004 Posts: 53 Location: Firenze,Italy
|
Posted: Tue Dec 28, 2004 12:47 pm Post subject: |
|
|
Why then if also i compile my kernel without using genkernel but with the same working .config file , the root cannot be mounted ? i can only use the kernel of each release in fact now i have 2.6.7-r14 , but i cannot compile a different version.. i also configure 2 different kernel by running two "make menuconfig" on two shells ... but it doesn't work even with the same identical options _________________ Abit KV7 Barton 2500@2800+ , 1gb Ram 333mhz
WinXP/Gentoo 2004.3 - 2.6.7-r14
NPTL - stage3 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54849 Location: 56N 3W
|
Posted: Tue Dec 28, 2004 3:07 pm Post subject: |
|
|
Trust No One,
I hope you do that in two seperate kernel trees because each tree can contain at most one .config file _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ASpott n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey2.gif)
Joined: 23 Sep 2004 Posts: 33 Location: California
|
Posted: Tue Dec 28, 2004 7:42 pm Post subject: |
|
|
I did not use make oldconfig ...that makes the kernel based on the config file of the currently running kernel right? I made a completely new config file and ran make && make modules_install. I will try make oldconfig though.
Trust No One: As far as I've been able to tell with my experience with it, genkernel does it's own thing apart from manual configs. I try and stay away from it. _________________ "Amidst the numerous processors and network cards I have sacrificed for their sake, why is that the computer gods still continue to hate me?" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54849 Location: 56N 3W
|
Posted: Tue Dec 28, 2004 8:03 pm Post subject: |
|
|
ASpott,
When you run make oldconfig in a new kerenl tree with no .config file, the config file is created with with all the default options.
When you want to migrate a .config file which you like, to a new kernel tree, you copy the existing .config to the new tree, then run make oldconfig. Make oldconfig takes the .config as input and pauses only to ask you about new options. The output is a legal .config file for the new kernel tree.
The .config you start with can be taken from anywhere but using a 2.4 .cconfig in a 2.6 kernel is a big change, it works but you have a lot of questions to answer.
If you made a whole new .config and now its broken, you must have made an error in your kernel configuration.
I'm not a genkernel fan either. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ASpott n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey2.gif)
Joined: 23 Sep 2004 Posts: 33 Location: California
|
Posted: Tue Dec 28, 2004 8:17 pm Post subject: |
|
|
Thanks for the help, I actually just figured out how to get make oldconfig to work. And it did. But my question is this: why would make oldconfig create a working kernel configuration while my (to an extent) manually copying the old kernel to a new one, making sure almost every option is the same, didn't work? Say I were compiling my kernel for the first time. Mostly what I'm trying to see here is where I went wrong in my configuration of my kernel. Any ideas what would give out such a message as I wrote in my first post? _________________ "Amidst the numerous processors and network cards I have sacrificed for their sake, why is that the computer gods still continue to hate me?" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54849 Location: 56N 3W
|
Posted: Tue Dec 28, 2004 9:18 pm Post subject: |
|
|
ASpott,
If you still have the config that make the broken kernel you can create a diff file of the differences between the good and bad .config files.
Code: | diff -Naur <old> <new> | produces a file you can feed to patch.
See and for all the detial. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
ASpott n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Monkey Island/Monkey_Island_-_Monkey2.gif)
Joined: 23 Sep 2004 Posts: 33 Location: California
|
Posted: Wed Dec 29, 2004 4:47 am Post subject: |
|
|
Thanks for the help, I found out using xxdiff (which I should mention is a very nice application, a graphical version of diff) that I had inadvertantly passed over the fact that I hadn't enabled vsf fat filesystems. Anyway, got the kernel up and running but I'm having some problems with my graphics, and now portage also. Feel free to check that post: https://forums.gentoo.org/viewtopic.php?t=272166&highlight= _________________ "Amidst the numerous processors and network cards I have sacrificed for their sake, why is that the computer gods still continue to hate me?" |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|