LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-07-2003, 08:20 PM   #1
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Rep: Reputation: 15
How to remove a kernal recompile that fails?


I have tried to recompile a kernal. Everything seem to go OK but it would never finish booting into the new kernal. So I am using the original kernal to boot and run. The problem I have is that now everytime I install a new program it compiles for the new kernal not the one I,m running. So how do I let the system know what kernal I want programs to compile for. Or how do I remove all the files etc from the failed compile???
 
Old 11-08-2003, 01:35 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Hmm Depends on how you 'recompiled'. Normally, if you grab the source from www.kernel.org and do a "standard" recompile, then you'd simply choose the old entry in your boot loader and everything should be fine, assuming you didn't overwrite your old kernel and old modules in /lib/modules/kernel-version

So let us know what process you used, and some details of those processes, and we might be able to assist you back to your working/old kernel

Cool
 
Old 11-09-2003, 01:15 AM   #3
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Original Poster
Rep: Reputation: 15
What did I do??? hmmm

Basically I used the original source that was installed with redhat v9. make xconfig to customise, make dep, make clean, make bzimage, make modules, make modules_install, make install. Then rebooted on the new kernel (using grug and selected new kernel). I can not use the new kernek as I get part way into the boot and get a kernel panic. I am beginning to think that the step I have failed to do is to use symbolic links to the new kernel . (but that is another story). Anyway does this help. What do I need to do now?
 
Old 11-09-2003, 01:55 AM   #4
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 32
do a "make dep && make clean modules modules_install"

Last edited by arrruken; 11-09-2003 at 01:56 AM.
 
Old 11-10-2003, 03:34 PM   #5
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Original Poster
Rep: Reputation: 15
What directory should I be in to execute this command. at the moment I get this.....
[root@redhat4 root]# make dep && make clean modules modules_install
make: *** No rule to make target `dep'. Stop.
[root@redhat4 root]#
 
Old 11-10-2003, 03:38 PM   #6
Hcman
Member
 
Registered: Jan 2003
Location: Holland
Distribution: OpenBSD 3.6 - Arch Linux 0.7
Posts: 210

Rep: Reputation: 30
/usr/src/linux

(probably /usr/src/linux is a symlink to one of your installed kernels; make sure you issue these commands in the kernel directory of the kernel you want gone, e.g. if you want linux-2.4.22 gone issue these commands in /usr/src/linux-2.4.22)
 
Old 11-10-2003, 03:48 PM   #7
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Original Poster
Rep: Reputation: 15
Ok What I have done is to delete the new directory that contained these files. (an act of desperation by someone with no idea what he was doing) I guess that this is not good!!! Can I redo the compile and then atempt to run the command to remove and it will do the job, or am I living in fantasy land!!
 
Old 11-10-2003, 10:39 PM   #8
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 32
Just follow this link's instruction's and try to understand what is happening as you do it; learning commands is one thing, knowing the concepts behind it enables you to troubleshoot on your own and figure it out by yourself. To me, this is the whole point of linux...

http://www.slackware.org/book/index....urce=x948.html

btw... you should really try a different distro if you want to learn linux...

Last edited by arrruken; 11-10-2003 at 10:40 PM.
 
Old 11-11-2003, 12:30 AM   #9
Crasherz
Member
 
Registered: Sep 2003
Location: Australia_Warm & Sunny
Distribution: Fedora & Doze XP Pro
Posts: 68

Original Poster
Rep: Reputation: 15
This is an area that seems to be in hot dispute.....what distro to use. I am only learning this stuff. I was told the easiest distro to start on is redhat as many of the services etc are preconfigured and it is a simple matter to enable them. Also rpm's make for simple installs. So far this is what I have found....except doing my own kernal compile. The reason this has been difficult is because I have so far found 4 different ways to do it. There is lots of support but everyone seems to do things differently......basically it is bloody confusing. What makes Slackware a better distro to learn?? I'm interested to use what ever is better.
 
Old 11-11-2003, 08:24 AM   #10
arrruken
Member
 
Registered: Apr 2003
Distribution: gentoo
Posts: 238

Rep: Reputation: 32
Well, I started on Slackware, so Im partial to it. As you know, there are tons of distrobutions, not just the couple that most people think of. I think its better to learn on a distro that does things the "standard" way(the way most of the distrobutions work), and not a distro like Red Hat, where most things are done Red Hat's way. That way what you learn can apply to all forms of linux and not just that distro. Especially considering Red Hat just cancelled any new versions of their home distrobution, theyre only doing servers now. I still think Slackware is easy for newbie's, it just takes longer because it steps you through the work. Instead of an auto-script, it will tell you you need to modify a certain file, and how to do it. So it takes more work on your part, but is still not hard.
Honestly I cant stand the rpm system, Slackware and Gentoo(what i use now) have way better system for installing packages that are WAY easier for a newb. But this is just my opinion. Gentoo uses the "emerge" command, and slackware uses "swaret". These are basically like, "find xxx and install it for me". Basically if you want the program gaim you just type "emerge gaim", and voila. Of course you need an internet connection though.
In the end, linux is linux, and they are all basically the same, I just like to have more control over what is on my system. I recommend Slackware, or even Gentoo if you have a week or so to dedicate yourself to it. But dont expect to learn anything from a distro that is easier to install the XP...
 
  


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
how do can I recompile my kernal faster babyboss Slackware 5 10-24-2004 01:41 PM
Dual channel memory need to recompile kernal? jimdaworm Linux - Hardware 2 02-07-2004 03:31 PM
No sound after kernal recompile! Luantum Linux - General 2 12-08-2003 11:20 PM
Kernal Recompile Problem lparag Red Hat 2 09-29-2003 06:30 PM
How to remove module from kernel without recompile? Stoic Linux - Software 10 09-23-2003 06:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:59 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