LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-31-2006, 03:42 PM   #1
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Rep: Reputation: 30
Accidently installed wrong kernel


I was going to upgrade my kernel to 2.6.15. I accidently installed the version for amd64k8 because it did say it was for athlon 64. Also I cant boot back into my old kernel. When I do it goes me an segmentation fault. Then it drops into busy box.

So I was wondering if I reinstall ubuntu without formatting the partition would files in my /home be erased? But I will have to install any apps I installed right?
 
Old 01-31-2006, 04:28 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you can get Ubuntu not to format your /home during install, you are safe.
 
Old 01-31-2006, 04:28 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you didn't delete the old kernel, you should be able to recover by using your Ubuntu CD in recovery mode or a live CD like Knoppix. Actually, someone more versed in Grub could probably help you do it without either of those...
 
Old 02-01-2006, 07:09 AM   #4
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
I do have a koppix live cd. What can I do to recover my old kernel. Do I just rewrite the grub config file so that grub doesn't know about the new kernel?
 
Old 02-01-2006, 09:58 AM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I haven't used grub, but that's what I did with LILO. Just point it to boot the old kernel automatically. I'm not sure with grub, but I had to chroot to run /sbin/lilo after restoring the lilo.conf file. I get the impression you don't have to run anything to reset the primary boot loader with grub, so you should be able to just modify the grub config file and then reboot.
 
Old 02-01-2006, 12:24 PM   #6
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you can get to the grub prompt at boot, try this

Type c to get into the config mode and type the following

root (hd<tab>,<tab>)
By hitting tab, you can select the appropriate disk and partition
kernel /<tab> root=/dev/hdxn
Check if you can get to the /boot and the appropriate kernel
x is the disk (a/b...) and n is the partition where you have / (the root partition)
initrd /<tab>
Pick up the appropriate initrd file
boot
 
Old 02-01-2006, 02:51 PM   #7
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
yo thats cool didn't know u could hit tab to select the disk/ partition. I never come across a tutorial on grub that mensions that! THANKS!!
 
Old 02-03-2006, 08:40 PM   #8
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Why don't you want the k8 kernel? Isn't it the same as amd64 kernel except with more tweaks for spead? Do you not have a amd64? According to this thread, the K8 is designed for people with k8 motherboards, but i'm not sure if thats entirely correct or not. If that is the case, then why does Gentoo recomend you change your settings in your make.conf file to "-march=k8" if you have an AMD64 processor?

Note: They don't mention anything about motherboards in thier install guide, and Gentoo is the most well documented distro, correction, anything i've ever seen.

Last edited by Penguin of Wonder; 02-03-2006 at 08:42 PM.
 
Old 02-04-2006, 08:08 AM   #9
linuxmandrake
Member
 
Registered: Sep 2004
Distribution: debian sarge 64bit (AMD)
Posts: 709

Original Poster
Rep: Reputation: 30
Of course I have an amd64 processsor but the k8 kernel doesn't seem to like my hardware it just boots to a blank black screen. Hence I assumed I installed the wrong kernel otherwise it would be working.
 
Old 02-04-2006, 12:53 PM   #10
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
So after you bios loads and such, it just blacks out? Or your X server quit working? If I were you I'd try rewritting the grub.conf with the liveCD before I did anything drastic, you can remove the symlinks and then new kernel you don't work after you get it booted again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accidently installed slax 5.0 to hard drive dav10631 Slackware 14 01-07-2006 11:12 AM
accidently used wrong prefix when installing qt: how to move lib to right place? qanopus Linux - Software 2 02-10-2004 04:23 PM
Installed the wrong Wine! Kristic Linux - Newbie 3 09-03-2003 06:46 PM
Installed wrong monitor SherylGlas Linux - Newbie 3 02-19-2003 08:59 PM
installed wrong RPM kobe Linux - General 13 09-27-2002 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration