View previous topic :: View next topic |
Author |
Message |
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Fri May 25, 2012 5:03 pm Post subject: can't set up new kernel... |
|
|
my ordeal continues,now can not set up new kernel,lost seconds ago my gentoo entry on grub but now recovered and running the old kernel[3.2.12]
Code: | grub.conf
default 0
timeout 5
gentoo
root (hd0,2)
kernel /boot/linux-3.4.0-gentoo root=/dev/sda3
title Gentoo Linux
root (hd0,2)
kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
Code: | menu.lst
default 0
timeout 5
gentoo
root (hd0,2)
kernel /boot/linux-3.4.0-gentoo root=/dev/sda3
title Gentoo Linux
root (hd0,2)
kernel /boot/linux-3.2.12-gentoo root=/dev/sda3
title Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Last edited by john-doe on Wed Jun 13, 2012 9:31 pm; edited 2 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Fri May 25, 2012 6:10 pm Post subject: |
|
|
john-doe,
Code: | gentoo
root (hd0,2)
kernel /boot/linux-3.4.0-gentoo root=/dev/sda3 | close
in the first line would be better. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Fri May 25, 2012 7:10 pm Post subject: |
|
|
Thx man! do I need to comment the old kernel? don't want loose it if some goes wrong...
what about /boot? btw I don't have it...
Code: | Then copy new kernel in to the boot directory: cp /usr/src/linux/arch/i386/boot/bzImage /boot/YourKernelName_with_BuildDate_if_you_wish |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Fri May 25, 2012 7:51 pm Post subject: |
|
|
john-doe,
Leave your old grub entry. With your present settings grub will give you 5 seconds to choose it from the menu.
You must have a directory called /boot. It could be a partition too but need not be.
Your tells that boot is probably in /dev/sda3
That Code: | kernel /boot/linux-3.2.12-gentoo root=/dev/sda3 | works tells that /boot does exist and that is is a directory on your root partition.
IF that is not true, you old kernel could not get started.
Code: | cp /usr/src/linux/arch/i386/boot/bzImage /boot/YourKernelName_with_BuildDate_if_you_wish | may not work any more.
The problem is the /i386/ part. Around kernel 2.6.24 the source trees for the 32 bit and 64 bit kernels were merged. At that time i386 became a symbolic link to /x86/ which is correct for 32 bit and 64 bit Intel/AMD systems. The symlink has been removed. You are a victim of out of date documentation.
Change the /i386/ to /x86/ and the command will work. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Fri May 25, 2012 8:04 pm Post subject: |
|
|
Booting 'Gentoo Linux'
root (hd0,2)
Filesystem type is ext2fs,partittion type 0x83
kernel /boot/linux-3.4.0-gentoo root=/dev/sda3
Error 15: File mot found
Press any key o continue...
Code: | # ls
System.map-3.2.12-gentoo config-3.2.12-gentoo linux-3.2.12-gentoo
boot grub vmlinuz-3.2.12-gentoo |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Fri May 25, 2012 8:17 pm Post subject: |
|
|
john-doe
Code: | /boot/linux-3.4.0-gentoo | is what grub is trying to load and it doesn't exist, so you get Error 15, which means file not found.
Boot the old kernel and run Code: | readlink /usr/src/linux | IF that shows a 3.4.0 kernel, continue with
Code: | cp /usr/src/linux/arch/x86/boot/bzImage /boot/linux-3.4.0-gentoo |
Now reboot and run if the system starts. What kernel version does that show? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Fri May 25, 2012 8:32 pm Post subject: |
|
|
Needy...how much I owe U till now?
Code: | $ uname -r
3.4.0-gentoo |
Code: | Local time zone must be set--see zic |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Fri May 25, 2012 8:41 pm Post subject: |
|
|
john-doe,
If we ever meet, you can buy me a beer :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Sat May 26, 2012 12:31 pm Post subject: |
|
|
Bet U @_s!
now a little one: Code: | Performing Global Updates:
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' #='/var/db update' @='/var/db move'
s='/var/db SLOT move' %='binary move' S='binary SLOT move'
p='update /etc/portage/package.*'
/usr/portage/profiles/updates/2Q-2012.................
|
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Sat May 26, 2012 1:49 pm Post subject: |
|
|
john-doe,
Thats not a problem ... its a feature.
Its a part of that runs when it needs to. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Wed Jun 13, 2012 9:43 pm Post subject: Kernel panic... |
|
|
Endless,speechless
http://i.imgur.com/OHZnN.gif
why SO PAIN every upgrade of kernel ??
I'm getting now why win$UCK$ is used 4 thousand of millions... |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 13, 2012 9:53 pm Post subject: |
|
|
Probably because people like blue so much better. You have a working kernel, which is a good thing to fall back to. Learning to properly configure the kernel takes time. Read, think, configure, compile, install, try, repeat.
In the reading category, the kernel says couldn't mount the root. It tried several filesystems. Is the one you actually have among them? What root filesystem do you have?
Just to make sure, your working kernel is one that you configured or is it a Genkernel-made "kitchen sink" kernel? Once you've successfully configured one kernel, you can often copy that configuration file to the new kernel source directory to use as a starting point. This is explained in the Gentoo Linux Kernel Upgrade Guide, Section 11.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters.
Last edited by John R. Graham on Wed Jun 13, 2012 10:16 pm; edited 1 time in total |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Wed Jun 13, 2012 10:13 pm Post subject: |
|
|
Let me get back to penguin(writing from winBUG$) to show U grub.conf
EXT4
Quote: | What root filesystem do you have? |
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 13, 2012 10:29 pm Post subject: |
|
|
Don't believe I need to see grub.conf. It seems clear that the drivers for the Ext4 filesystem were omitted from the kernel when you configured it. Make that change, recompile, reinstall, and let's see what happens.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Thu Jun 14, 2012 1:26 pm Post subject: |
|
|
NeddySeagoon wrote: | The symlink has been removed. You are a victim of out of date documentation |
someone should do something! |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jun 14, 2012 2:44 pm Post subject: |
|
|
Gentoo is an all volunteer organization, depending on its user's support to evolve and improve. All Gentoo developers, council members, board of trustee members, and lowly forum moderators are unpaid volunteers. The somebody that should do something is you. Your part here, as a member of the Gentoo community, is to file a bug in Gentoo Bugzilla, citing the documentation that's in error and (if possible) the correction that needs to be applied.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 19, 2012 8:32 pm Post subject: |
|
|
@john-doe, if you don't understand something, please just ask for clarification. We don't mind. If you don't want to do something that we suggest, then tell us why and we will clarify. But jumping around from method to method and thread to thread is actually making it harder on yourself.
NeddySeagoon has given the same advice that I did. This is actually a pretty simple problem. Are you able to try that advice?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Wed Jun 20, 2012 12:17 am Post subject: |
|
|
John: U will not believe this:
tried to install new kernel ==> 3.4.3 but 'to vary' some error on kernel: config devtmpfs so = = > NO KEYBOARD NO MOUSE!
the ordeal ... |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 20, 2012 12:24 am Post subject: |
|
|
You mean you got the new kernel to boot but you don't have a keyboard or mouse inside the desktop environment?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 20, 2012 12:56 am Post subject: |
|
|
No, not related to udev. When you build and run a new kernel, you need to rebuild the kernel device drivers that are not part of the kernel source tree. Prominent examples of these out-of-kernel drivers are: xorg-drivers and nvidia-drivers.
Are you by chance running Portage 2.2? There's a useful feature that helps rebuild the correct packages in Portage 2.2.
Also, are you starting X automatically on boot (and thus you have no keyboard at all) or are you still starting it manually with startx?
Finally, don't go off and try something else. Let's debug this issue one step at a time, methodically, until we get it solved. Deal?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Wed Jun 20, 2012 2:40 pm Post subject: |
|
|
how do I get .config file? |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 20, 2012 3:10 pm Post subject: |
|
|
I don't understand the question. Could explain a little more thoroughly, please?
Also, could you answer my previous questions? It's pretty hard to help you if you don't give us what we need to know to help you.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
john-doe Tux's lil' helper
Joined: 15 May 2012 Posts: 123
|
Posted: Wed Jun 20, 2012 3:48 pm Post subject: |
|
|
John R. Graham wrote: | I don't understand the question |
Pappys asking 4 his kernel!
Last edited by john-doe on Wed Jun 20, 2012 4:12 pm; edited 1 time in total |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10728 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 20, 2012 3:59 pm Post subject: |
|
|
Trade you an answer for an answer.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
|