About NTFS and kernel issues (reproduced)

xiaoxiao2021-03-06  154

The traditional compiletable kernel module is cumbersome, this article will tell us a new method for rapid compilation of the core modules.  When you have installed the Linux system, and have already started, congratulations! If you have Winnt / 2000 system on your hard drive, you have tried to visit another NTFS partition, but you have encountered trouble. Because the Linux system you use does not have a module that supports the NTFS file system. How to do? Maybe you will run make  menuconfig, re-customize all the modules you need, then run Make Modeules; make  Modeules_Install to install. This will not only be cumbersome, it may also have problems. Or because the compiled kernel is a bit tricky, too much choice makes your hand, you don't have a good way. This article gives you a simple way, you can easily compile the modules (NTFS.O) you need to support NTFS systems. Take this as an example, I hope to compile other modules for you.   Write this article I use the system is Red Hat Linux Release 7.0 (Guinness) kernel 2.2.16-22 on AN ^ i686. From a newly installed system, let's compile a support NTFS file system module you want.  1. Find the .config file you need to compile the kernel.  There are several configurations used in the / usr / src / linux / configs directory. Select the configuration we want to copy it to / usr / src / linux directory, rename it .config. CP /USR/SRC/LINUX/CONFIGS/kernel-2.2.16-i686.config /usr/src/linux/.config? Second, modify the .config file, remove the module that does not need, plus the modules you want .  Open .config, there are many XXXX = M items, which are items to be compiled as modules, because we don't want to compile these modules, so remove the XXXX = M. Then add the module we want, change #   cicketfs_fs is not set to config_ntfs_fs = m. Of course, you can use you to be familiar with all kinds of tools to do this.  Third, compile the NTFS module.  Run the command Make Modules under the / usr / src / linux directory to compile the NTFS module we want. ? 4, install the NTFS module.  After compiled NTFS.O, in / usr / src / linux / fs / ntfs directory, manually copy it to the correct directory. CP /USR/SRC/LINUX/FS/NTFS/NTFS.O /LIB/Modules/2.2.16-22/FS/A Note: Don't run the command make odules_install, otherwise it will bring serious consequences, it Will delete all modules in your system, just install the just-compiled modules (NTFS.O).   5. Load NTFS module. Run command depmod; ModProbe NTFS tries to access your NTFS file system, I wish you success! ? Some modules depends on your system kernel, so it does not apply to the methods provided herein. There are also some modules and other modules dependence. If you are not familiar with these dependencies, I suggest you add your own module to your you want after you remove the module options in the second step. ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

转载请注明原文地址:https://www.9cbs.com/read-128020.html

New Post(0)