Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile and install kernel modules supporting NTFS under Linux system

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to compile and install kernel modules that support NTFS under Linux system". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian slowly and deeply to study and learn "how to compile and install kernel modules that support NTFS under Linux system"!

When you have installed Linux and it has started, congratulations! If you also have Windows NT/2000 installed on your hard drive, you have trouble accessing another NTFS partition. Because the Linux system you are using does not have a compiled module that supports NTFS file system. What should I do? You might run make menuconfig, customize all the modules you need, and then run make modules;make modules_install to install them. This is not only cumbersome, time-consuming, but also may cause problems. Or because compiling the kernel is tricky for you, you have too many options to choose from, and you don't have a good way to do it. This article gives you an easy way to compile the NTFS support modules you need (ntfs.o). This example will hopefully help you compile other modules.

Red Hat Linux release 7.0 (Guinness) Kernel 2.2.16-22 on an i686. Starting with a newly installed system, let's compile a desired NTFS file system module together.

First, find the.config file needed to compile the kernel

In the/usr/src/linux/configs directory there are several configurations for compiling the kernel. Select the configuration we want, copy it to/usr/src/linux and 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 unused modules, and add the modules you want.

Open.config, there are many XXXX=m items, these are to be compiled into modules, because we do not want to compile these modules, so we have to remove XXXX=m items. Then add the module we want, changing # CONFIG_NTFS_FS is not set to CONFIG_NTFS_FS=m. Of course, you can do this with various tools you are familiar with.

III. Compile NTFS module

Run make modules in/usr/src/linux to compile the NTFS modules we want.

4. Install NTFS module

The compiled ntfs.o is in the/usr/src/linux/fs/ntfs directory and manually copied to the correct directory.

cp /usr/src/linux/fs/ntfs/ntfs.o /lib/modules/2.2.16-22/fs/

Note: Do not run make modules_install, as this will have serious consequences. It will delete all modules from your system and install only the modules that have just been compiled (ntfs.o).

V. Loading NTFS module

Run the command depmod;modprobe ntfs to try accessing your NTFS file system. Good luck!

Some modules depend on your system kernel, so the methods provided in this article do not apply. Some modules have dependencies on other modules. If you are not familiar with these dependencies, it is recommended that you remove the unused module option in step 2 and add the module you want by making menuconfig.

Thank you for reading, the above is "Linux system how to compile and install support NTFS kernel module" content, after the study of this article, I believe that everyone on Linux system how to compile and install support NTFS kernel module this problem has a deeper understanding, the specific use of the situation also needs everyone to practice verification. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report