Author Topic: Recompiling Kernel for NTFS Reading  (Read 997 times)

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« on: 22 December 2002, 00:16 »
How would I go about "recompiling" the Red Hat 8 Kernal for NTFS reading.  I don't want to write to the NTFS, i've heard that that usually corrups the FS, I just want to read it.  if it helps the kernal im running is:
2.4.18-19.8.0
as per the Grub booter and the Package Manager
this is not the standard RH8 Kernel this is one you download from the Red Hat network as an upgrade kernel.  They said it was specifically for Athlons but im not sure if that is true.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #1 on: 22 December 2002, 01:35 »
Follow these instructions:

http://voidmain.kicks-ass.net/redhat/redhat_8_kernel_2.4.19_from_source.html

Except skip 5 lines starting at the part about downloading the new kernel with wget. And when you type "make xconfig" which will bring up the kernel menu search through it until you find "NTFS file system support (read only)". It will be under the "File systems" menu. Change the option from "n" to "m".

[ December 21, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #2 on: 22 December 2002, 04:45 »
I get all the way until i type make modules then it says error 2 and then i type make modules_install and it says error 2 then i type make install and it says error 2.  Then when I restart, there is a custom kernel but when i boot into it it panics right when it says init.  I have only one concern is that i have kernel 2.4.18-19 but the custom one said 2.4.18-14custom.  Also in the /usr/src there was only a linux-2.4 and a linux-2.4.18-14 there was no linux-2.4.18-19.  i tried using both of these 2 folders with /boot/config-2.4.18-14 and /boot/config-2.4.18-19 both gave all of the same errors and same kernel panic in same place and left the same 2.4.18-14custom in the bootloader.  I am kind of lost on this, but I then noticed that he wasn't able to compile it correctly on his 1.6 ahtlon, I have a 1.7 it may just be my cpu.  Are there any other ways to recompile that may work?

KernelPanic

  • VIP
  • Member
  • ***
  • Posts: 1,878
  • Kudos: 222
Recompiling Kernel for NTFS Reading
« Reply #3 on: 22 December 2002, 05:09 »
quote:
Originally posted by Void's RedHat tips:
Click SCSI Support, then click SCSI low-level drivers, then set Simple 53c710 SCSI Support to n. Click OK, click Main Menu, click Save and Exit, click OK.


You have missed that ^^^^
Contains scenes of mild peril.

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #4 on: 22 December 2002, 06:01 »
wut do u mean, I don't even have a scsi card or drives, why would I need to change anything having to with scsi?

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #5 on: 22 December 2002, 06:42 »
quote:
Originally posted by X11:
You are changing the kernel, and may want the numbering to reflect that. So edit /usr/src/linux/Makefile and change your EXTRAVERSION (e.g. Change -18 to -18ntfs).


I don't have a "linux" folder in my /usr/src folder.

here is the ls output for my /usr/src folder:
linux-2.4  linux-2.4.18-14  redhat

[ December 21, 2002: Message edited by: Billy Gates: Mac Commando ]


voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #6 on: 22 December 2002, 07:05 »
If you get an "error 2", do not go any farther! You need to figure out what the error is. You'll need to   paste in about the last 10-15 lines prior to the error so I can see where it is failing. And if you have an Athlon processor you may have to turn off that SCSI modules. Whether you have SCSI or not the kernel configuration is set up to compile many more modules than you actually need.

Also create a symbolic link "/usr/src/linux" by typing this:

# cd /usr/src
# ln -s linux-2.4 linux

Then

# cd linux

Then follow the directions on my web page. Trust me they work. If you have an error, let me know what the error is and I'll tell you how to fix it. Do *not* install the kernel if the compile is not successful. I probably should add that note to the HOWTO about not going any farther if one of the make's fail with an "error 2". To me it is obvious, but apparently it is not obvious to everyone.

[ December 21, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #7 on: 22 December 2002, 07:45 »
Sry. I was mistaken, the error came during make bzImage

here are a couple of the lines prior to the errors


Code: [Select]

it doesn't seem to like my PCI drivers?

also is there any way I can disable all scsci support in my kernel, I might as well since I'm recompiling it anyway?

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #8 on: 22 December 2002, 08:45 »
I just went with void's installing kernel 2.4.20 and configured it to not support scsi and enabled ntfs reading.  It configured poerfectly and I'm running it right now.  Thanks for all you help guys, I appreciate being helped (being new at this and all).  Now I have to test my ntfs reading and see if installing nvidia drivers works on this kernel.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #9 on: 22 December 2002, 08:46 »
Did you change anything with the "make xconfig"? If so you have to rerun the:

# make dep
# make clean

prior to doing the "make bzImage" and "make modules". Watch very closely at each step to make sure they don't end with an error. That message indicates to me you didn't do the previous steps. "devlist.h" should get created during the "make modules" stage if all the previous makes went alright.
Someone please remove this account. Thanks...

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #10 on: 22 December 2002, 08:47 »
Whoops, disregard that last transmission.  
Someone please remove this account. Thanks...

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #11 on: 22 December 2002, 08:49 »
quote:
Originally posted by Billy Gates: Mac Commando:
Now I have to test my ntfs reading and see if installing nvidia drivers works on this kernel.


nVidia drivers definitely work. You just need to get the *.src.rpm version of the nVidia kernel RPM. And install it by:

# rpmbuild --rebuild NVIDIA_kernel*src.rpm
# rpm -Uvh --force --nodeps /usr/src/redhat/RPMS/i386/NVIDIA_kernel*

If you already have the nVidia GLX RPM installed you should not have to reinstall it.

[ December 21, 2002: Message edited by: void main ]

Someone please remove this account. Thanks...

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #12 on: 22 December 2002, 21:30 »
quote:
Originally posted by void main:


nVidia drivers definitely work. You just need to get the *.src.rpm version of the nVidia kernel RPM. And install it by:

# rpmbuild --rebuild NVIDIA_kernel*src.rpm
# rpm -Uvh --force --nodeps /usr/src/redhat/RPMS/i386/NVIDIA_kernel*

If you already have the nVidia GLX RPM installed you should not have to reinstall it.

[ December 21, 2002: Message edited by: void main ]



To tell you the truth on my old Kernel even with source rpm's when i type rpmbuild --rebuild blah.rpm it would error


The new kernel is awesome, i can read my NTFS drive flawlessly, I installed the nvidia drivers, everything goes faster and I can run my monitor at 1600x1200 75 with full 24 bit color now.  Thank God for Void Man and his web site.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
Recompiling Kernel for NTFS Reading
« Reply #13 on: 22 December 2002, 21:48 »
quote:
Originally posted by Billy Gates: Mac Commando:
To tell you the truth on my old Kernel even with source rpm's when i type rpmbuild --rebuild blah.rpm it would error



Could you do me a big favor and let me know the exact name of the RPM that gives you the error with that command and where I can find it, and of course what the error message is? This should not happen.
Someone please remove this account. Thanks...

billy_gates

  • Member
  • **
  • Posts: 801
  • Kudos: 0
    • http://www.skinner.com/jeffberg
Recompiling Kernel for NTFS Reading
« Reply #14 on: 22 December 2002, 21:58 »
the file is NVIDIA_kernel-1.0-4191.src.rpm i forget wut the error was but it was something like couldn't find/make an nvidi.o folder/file i think it was a kernel error not a download/rpm error since i used the same file with the new kernel and it worked fine.

[ December 22, 2002: Message edited by: Billy Gates: Mac Commando ]