LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-14-2005, 01:12 PM   #1
darkblane
LQ Newbie
 
Registered: Feb 2005
Location: Liverpool, United Kingdom
Distribution: Fedora Core 3
Posts: 3

Rep: Reputation: 0
Kernel Sources required for NFTS support


Linux version: Fedroa Core 3, kernel 2.6.10-1.760

Hi, I have been using Linux on and off for a while and always seem to hit a brick wall with the same problem.
On this occasion I was trying to install Paragon NTFS for Linux (Demo) under Fedroa Core. The shell script keeps prompting me that it cannot find the Kernel Sources (I have had similar errors under RedHat,Suse etc). Logic dictates that I download the Kernel source rpms and install, which I did.
Once again, running the ./install.sh file gives the same error. When the install.sh file is viewed, the script is looking to /usr/src/linux for the kernel headers. This doesn't match the dir structure in Fedora which appears to be /usr/scr/redhat/SOURCES. I tried creating the required dir structure and copied the contents of the /usr/scr/redhat/SOURCES folder to it but then got another error message saying it couldn't determin which kernel I was running
Has anyone attempted to install the Paragon NTFS driver in Fedroa or RedHat and if so did you get similar problem???
I have got read access working using another driver, but the retail paragon product offers write access which I need. I would gladly buy it if I can get the demo product working.

Any advice??

Thanks in advance.
 
Old 02-14-2005, 01:34 PM   #2
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Rep: Reputation: 30
Make sure you know what version of the kernel you are running. In a terminal (as root) type uname -v and see what the output is.

You might also want to do the following to what kernel related stuff you have installed:
rpm -qa | grep kernel

Be careful to make sure that you don't install something called "kernel<somenumber>.src.rpm" because this is not the kernel source but the sourcecode for the rpm (a different thing altogether).

You need to look for something that looks like "kernel-sourcecode-2.6.10-????_FC3.noarch.rpm" where 2.6.10-??? is the same version number as you got from the "uname" command.

Once you have found and installed this you will have the sources to go with your kernel.

Hope that helps

Mark
 
Old 02-14-2005, 04:21 PM   #3
darkblane
LQ Newbie
 
Registered: Feb 2005
Location: Liverpool, United Kingdom
Distribution: Fedora Core 3
Posts: 3

Original Poster
Rep: Reputation: 0
Mark, thanks for the reply.

The Kernel running is 2.6.10-1.760 (should have been at the start of my post)

"You might also want to do the following to what kernel related stuff you have installed:
rpm -qa | grep kernel"

[root@localhost ~]# rpm -qa | grep kernel
kernel-2.6.10-1.760_FC3
kernel-module-ntfs-2.6.10-1.760_FC3-2.1.22-0.rr.4.3
kernel-utils-2.4-13.1.49_FC3
kernel-2.6.9-1.667
[root@localhost ~]#


"Be careful to make sure that you don't install something called "kernel<somenumber>.src.rpm" because this is not the kernel source but the sourcecode for the rpm (a different thing altogether)."

Ok, you've him the nail on the head here. I have been trying for months using Suse, RedHat,Mandrake,Debain to get a grip of the "Kernel headers" & "kernel source" meaning. Despite countless searchs, queries amonst peers, no-one has clarified it for me.
As it turns out, you are exactly right, I installed the kernel-source.rpm.
It is at this point that my experiences with Linux in general show a common theme. No matter what distro I try, and I have tried LOTS, I always get stuck with this "kernel headers" or "kernel sources" problem. It's clear from your reply that I have mis-understood this and would greatly appreciate it if you could clarify how I would go about obtaining the correct files and installing then to the correct location to satisfy the dependencies of not only the Paragon NTFS problem, but other apps that fail to install due to the same dependency.
I now realise my problem is a generic one that applies to all distros, so if you could give me any advice that is not distro specific I woulld really appreciate it.
What I'm striving to learn is;
1) How do I know if the Kernel Headers/Source is installed?
2) How do I install the Kernel Headers?
3) Once installed, do I need to compile anything?

Thanks in advance,

Karl.
 
Old 02-14-2005, 05:12 PM   #4
ArthurDent
Member
 
Registered: Feb 2004
Location: London
Distribution: Fedora Core 5, Mandrake 10.0, Gentoo, Suse
Posts: 179

Rep: Reputation: 30
Karl,

I'm sorry I seem to have led you astray. I am still running FC2 and I didn't realise that as of FC3 Red Hat no longer supply "sourcecode" rpms. You can, however use the .src.rpm file as descibed here....

I reproduce the relevant section below :

Code:
In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel's .src.rpm file, Fedora Core 3 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that <version>  refers to the version specification for your currently-running kernel):

   1.

      Obtain the kernel-<version>.src.rpm file from one of the following sources:
          *

            The SRPMS directory on the appropriate "SRPMS" CD iso image
          *

            The FTP site where you got the kernel package
          *

            By running the following command:

            up2date --get-source kernel
   2.

      Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
   3.

      Change directory to /usr/src/redhat/SPECS/, and issue the following command:

      rpmbuild -bp --target=<arch> kernel.spec

      (Where <arch> is the desired target architecture.)

      On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
   4.

      In resulting tree, the configurations for the specific kernels shipped in Fedora Core 3 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel-<version>-i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building:

      cp <desired-file> ./.config
   5.

      Issue the following command:

      make oldconfig

You can then proceed as usual.
You can find the rpm (the answer to step 1) here...

Having downloaded that to a location of your choice you can do step 2 with the command
Code:
cd /path_to_directory_where_you_downloaded_the_file
rpm -Uvh kernel-2.6.10-1.760_FC3.src.rpm
After that I'm afraid you will have to hope that someone else here can help you with the next steps. It's not something I've done - or needed to do as yet.

Sorry to have misled you...

Best regards

Mark
 
Old 02-15-2005, 03:57 AM   #5
darkblane
LQ Newbie
 
Registered: Feb 2005
Location: Liverpool, United Kingdom
Distribution: Fedora Core 3
Posts: 3

Original Poster
Rep: Reputation: 0
Mark, thanks for the info.
I'll have a look into that when I get home from work. I did try using VNC to access my PC but unfortunately I've set grub to boot to XP by default so I can only access XP from work, unless these is a way I can edit the boot loader via Windows to change the default OS!
Will post the results of your post this evening.

regards,

Karl
 
  


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
PPTP Error: MPPE required, but kernel has no support. lennysokol Linux - Software 2 03-22-2009 02:51 PM
Support for NFTS Partitions? elamigo2004 Linux - Software 5 09-24-2005 02:42 PM
Installing mplayer-x11 on Redhat 9 - support required for compilation astitva Linux - Software 6 04-10-2005 09:14 PM
Quad-Xeon Mobo required with RedHat 8 support fishsponge Linux - Hardware 0 08-16-2004 08:06 AM
Kernel 2.6.2 and nfts problem dudous Red Hat 7 02-08-2004 08:06 PM


All times are GMT -5. The time now is 03:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration