LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-31-2003, 11:27 AM   #1
Linus VanPelt
Member
 
Registered: Mar 2003
Location: Manchester, NH, USA
Distribution: SuSE 9.1
Posts: 73

Rep: Reputation: 15
Recompiling kernel - not for the faint of heart?


It looks like I may need to recompile my kernel to add support for mounting an NTFS partition read-only under Linux. I am not on my box right now, so I can't confirm that I don't have support, but I think the last time I tried I think I followed instructions properly and discovered I don't have NTFS support in my kernel. (I need to do some more checking, so this may not be necessary, but it doesn't alter my core question).

My question in particular is this: when you need to add kernel support for a particular service/action/device/whatever, do you need to recompile the whole thing, or is there a way to "add on" the support?

My main concern is that I currently don't have any way of backing up my system (CD-RW not yet installed, working on it), so I don't want to do anything major that will possibly trash my Linux installation and make me have to start from scratch. (The whirring of the CD drive tends to get boring after a while).
 
Old 03-31-2003, 11:39 AM   #2
0x0001
Member
 
Registered: Sep 2002
Distribution: Slackware 8.1
Posts: 84

Rep: Reputation: 15
compilation and installation of a new kernel does not prevent you're system from working even if the new kernel doesn't IF you keep a copy of you're old kernel somewhere and make an appropirate entry in you're bootloader.

I for example keep a stable kernel under
/boot/stable/
an bare kernel (in case i mess with the hardware and the currently stable becomes unstable) under
/boot/bare/
and new (experimental) kernels are installed to /boot

I would suggest copy you're kernel to one of those directories and change you're bootmanager. In case something goes wrong you can still boot with a cd and fix it.

build:
When this is done properly I suggest you compile you're new kernel, make an appropirate entry in you're bootmanager and try it out. If it doesn't work boot the old one and goto build.

hope this helps.


btw the kernel is usually called vmlinuz or, if you copy it directly from the kernel source (without make install) it's called bzImage.
You might want copy System.map along with the kernel.
 
Old 03-31-2003, 11:41 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
You can safely "test" kernel while still keeping your old one in tact, you just add another entry in your boot loader.

However, yes (assuming you installed kernel sources from your install CD), you can simply fire up make xconfig, skip to the section on whatever you need, change it from N to M, make dep, make modules. Then copy the module over to the /lib/modules directory in the appropriate sub dir. OR, you can make modules_install and hope for the best (I prefer the copy method, however, you can do whatever you feel comfy with).

Cool
 
Old 03-31-2003, 01:36 PM   #4
infamous41md
Member
 
Registered: Mar 2003
Posts: 804

Rep: Reputation: 30
you dont need to recompile. doing this is very easy as someone explained to me in another thread, here is the link and it explains exactly how to fix this:

http://www.linuxquestions.org/questi...threadid=52441

follow the link given to me by rmartine for the drivers u need.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 10:45 AM
Recompiling the AS Kernel carlosjjang Linux - Hardware 0 05-07-2004 11:46 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
Recompiling the kernel dasenjo Linux - Software 3 06-22-2003 01:09 AM
recompiling kernel SLaCk_KiD Slackware 8 03-19-2003 03:19 PM


All times are GMT -5. The time now is 05:13 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration