编译内核NTFS模块(RHEL3.0)

发表于:2007-06-08来源:作者:点击数: 标签:
在Redhat Enterprise Linux AS 3上编译内核NTFS模块,同样也适用于Redhat linux 9. NTFS模块编译就是如此简单! 参考:http://www.linuxsir.com/bbs/showthread.php?s=threadid=23837 SoftWare:Redhat Enterprise Linux 3.0 CPU:Athlon 950Mhz MotherBoard
在Redhat Enterprise Linux AS 3上编译内核NTFS模块,同样也适用于Redhat linux 9.

NTFS模块编译就是如此简单!
参考:http://www.linuxsir.com/bbs/showthread.php?s=&threadid=23837
SoftWare:Redhat Enterprise Linux 3.0
CPU:Athlon 950Mhz
MotherBoard:VIA KT133

操作:
# cd /usr/src/linux-2.4 -------要确保已经安装了Kernel-source-*.rpm

# make mrproper 

# make oldconfig 

# make xconfig 
------找到File System,找NTFS,点击中间那个方块,表示你要把支持ntfs编译成一个module,保存退出

# vi Makefile 

------------------------------------ 

VERSION = 2 PATCHLEVEL = 4 SUBLEVEL = 21 EXTRAVERSION = -4.EL 
-----把Makefile文件中这一行的 custom 去掉,不然编译出来的模块会因为版本不同而不能加载!
------------------------------------- 

# make dep

# make clean 

# make modules SUBDIRS=fs/ntfs ------开始编译 

# cd fs/ntfs 

# ls ------如无错误,ntfs.o应该出现在你眼前了! # mkdir /lib/modules/2.4.21-4.EL/kernel/fs/ntfs # cp ntfs.o /lib/modules/2.4.21-4.EL/kernel/fs/ntfs ------把 ntfs.o拷贝过去 # depmod # modprobe ntfs ----现在你可以加载ntfs分区了! ^o^ 测试一下 # mount -t ntfs /dev/hda1 /mnt/c

编译过程大约20分钟


 

原文转自:http://www.ltesting.net

...