View previous topic :: View next topic |
Author |
Message |
p.n Tux's lil' helper

Joined: 15 Nov 2004 Posts: 124
|
Posted: Thu Dec 29, 2005 1:22 pm Post subject: Kernel Upgrade gone very wrong |
|
|
I recently attempted an upgrade from kernel 2.6.11-gentoo-r4 to 1.6.14-gentoo-r5.
I followed all the steps in the gentoo kernel upgrade documents as far as O could tell. However, this went horribly wrong. I am now faced with two problems:
1. New Kernel
When booting into my new kernel, the X server all of a sudden refuses to start up. The relevant error messages in /etc/X11/xorg.conf is as follows:
Code: |
(EE) xf86OpenSerial: cannot open device /dev/mouse
No such file or input device
(EE) Mouse1: cannot open input device
(EE) PreInt failed for i nput device "Mouse"
No core pointer
Fatal server error:
failed to initialize conre devices |
On closer inspection I found that for some reason my /etc/X11/xorg.conf had been completely modified! Why!? And how do I fix this?
2. Attempting to boot into my previous kernel
When attempting to boot into my provious kernel my /dev/sda3 which is where gentoo sits seems to be missing. I get an error
Code: |
fsck.ext3: No such file or direcotry while trying to open /dev/sda3 |
trying to run fsck manually on /dev/sda returns a similar error.
I have not modified the entry in the grub.conf for my original kernel.
What could be wrong?
Regards
p.n _________________ "Every time I learn something new it pushes some old stuff out of my brain." - Homer Simpson |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 29, 2005 1:31 pm Post subject: Re: Kernel Upgrade gone very wrong |
|
|
p.n wrote: | When booting into my new kernel, the X server all of a sudden refuses to start up. The relevant error messages in /etc/X11/xorg.conf is as follows:
Code: |
(EE) xf86OpenSerial: cannot open device /dev/mouse
No such file or input device
(EE) Mouse1: cannot open input device
(EE) PreInt failed for i nput device "Mouse"
No core pointer
Fatal server error:
failed to initialize conre devices |
On closer inspection I found that for some reason my /etc/X11/xorg.conf had been completely modified! Why!? And how do I fix this? |
You must have done more than upgrade your kernel if your xorg.conf changed. Those are two wholly unrelated things.
However, you can most likely fix this particular problem by changing /dev/mouse to /dev/input/mice in xorg.conf |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 29, 2005 1:33 pm Post subject: Re: Kernel Upgrade gone very wrong |
|
|
p.n wrote: | What could be wrong? |
What steps did you take (in detail) to upgrade your kernel? |
|
Back to top |
|
 |
p.n Tux's lil' helper

Joined: 15 Nov 2004 Posts: 124
|
Posted: Thu Dec 29, 2005 5:37 pm Post subject: |
|
|
worked thanks. I am sucesfully running the new kernel but still cannot get back to the previous ones.
I did the following:
1. emerge --update --world brought me the new gentoo sources
2. In /usr/src I did a ln -sfn linux-2.6.14-gentoo-r5 linux
3. Copied my .config from my previous build to the new linux directory
4. In /usr/src/linux I did a make oldconfig and accepted the new kernel features mostly as the defaults
5. make && make modudules
6. copied bzImage to /boot
7. changed /boot/grub/grub.conf to include the new kernel as option (without changing anything to the original entries)
8. rebooted
And that was it. Any suggestions or conf file postings that would help? _________________ "Every time I learn something new it pushes some old stuff out of my brain." - Homer Simpson |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 29, 2005 7:18 pm Post subject: |
|
|
I don't see anything wrong with your procedure. Please cut and paste your grub.conf. Maybe another pair of eyes can notice something wonky that you're overlooking. |
|
Back to top |
|
 |
wjb l33t


Joined: 10 Jul 2005 Posts: 651 Location: Fife, Scotland
|
Posted: Thu Dec 29, 2005 8:00 pm Post subject: |
|
|
What ?might? explain difficulties with /dev is that at some point after 2.6.11, the ebuilds for gentoo-sources started to say that you needed to switch to udev rather than devfsd
The emerge world - how much else got updated? Did you just accept all the config file changes, cos if you did that, then rebuilt the kernel, and only then then rebooted, I can believe you would have real problems. |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 29, 2005 8:06 pm Post subject: |
|
|
wjb wrote: | What ?might? explain difficulties with /dev is that at some point after 2.6.11, the ebuilds for gentoo-sources started to say that you needed to switch to udev rather than devfs |
I don't follow your logic. His new kernel works fine. It's the old kernel that's broken. |
|
Back to top |
|
 |
p.n Tux's lil' helper

Joined: 15 Nov 2004 Posts: 124
|
Posted: Thu Dec 29, 2005 9:04 pm Post subject: |
|
|
grub.conf:
Code: | default 0
timeout 30
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux 2.6.14-r5
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6.14-gentoo-r5 root=/dev/sda3 video=vesafb
title=Gentoo Linux 2.6.11-r4
root (hd0,0)
kernel (hd0,0)/boot/bzImage-2.6.11-gentoo-r4 root=/dev/sda3 video=vesafb
title=Gentoo Linux 2.6.9-r1
root (hd0,0)
kernel /boot/kernel-2.6.9-gentoo-r1 boot=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 video=vesafb
initrd /boot/initrd-2.6.9-gentoo-r1
|
Indeed, the new kernel works fine. Old kernel seemed to be slightly screwed. And I am using udev and not devfs.
... _________________ "Every time I learn something new it pushes some old stuff out of my brain." - Homer Simpson |
|
Back to top |
|
 |
rev138 l33t


Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Thu Dec 29, 2005 9:08 pm Post subject: |
|
|
You got me. I have no clue. |
|
Back to top |
|
 |
sparks Guru


Joined: 05 Mar 2003 Posts: 331 Location: Nashville, TN
|
Posted: Thu Dec 29, 2005 10:12 pm Post subject: |
|
|
p.n wrote: | worked thanks. I am sucesfully running the new kernel but still cannot get back to the previous ones.
I did the following:
1. emerge --update --world brought me the new gentoo sources
2. In /usr/src I did a ln -sfn linux-2.6.14-gentoo-r5 linux
3. Copied my .config from my previous build to the new linux directory
4. In /usr/src/linux I did a make oldconfig and accepted the new kernel features mostly as the defaults
5. make && make modudules
6. copied bzImage to /boot
7. changed /boot/grub/grub.conf to include the new kernel as option (without changing anything to the original entries)
8. rebooted
And that was it. Any suggestions or conf file postings that would help? |
Since you specified to update "world" instead of just the kernel sources this leads me to believe that you inadvertently updated your xorg as well, which is the only thing that really could cause this. I updated an old box about a month ago from Xfree86 to xorg and ran into the exact same issue where I had to change to /dev/input/mice. _________________ True trade is honest, but not merciful. Politics is dishonest, no matter how merciful... and war is neither honest nor merciful.... therefore, choose trade above politics, but politics above war. |
|
Back to top |
|
 |
p.n Tux's lil' helper

Joined: 15 Nov 2004 Posts: 124
|
Posted: Fri Dec 30, 2005 12:20 pm Post subject: |
|
|
Valid comment. Irecall now that it has been a while since I rebooted my machine after the last emerge world, probably not before I rebuilt the kernel. _________________ "Every time I learn something new it pushes some old stuff out of my brain." - Homer Simpson |
|
Back to top |
|
 |
|