[cocobear@cocobear ~]$ rpm -qa | Grep kernelkernel-devel-2.6.24.4-64.fc8kernel-headers-2.6.24.4-64.fc8kernel-2.6.24.4-64.fc8 is needed during module compilation. There is already a Makefile in the source code:## Makefile for the Linux minix filesystem routines.#obj-$(CONFIG_MINIX_FS) += minix.ominix-objs := bitmap.o itree_v1.o itree_v2.o namei.o Inode.o file.o dir.o modify the file to:## Makefile for the Linux minix filesystem routines.# make minix fs as kernel moduleobj-m += minix.ominix-objs := bitmap.o itree_v1. o itree_v2.o namei.o inode.o file.o dir.oKERNELDIR:=/lib/modules/$(shell uname -r)/buildPWD:=$(shell pwd)default:make -C $(KERNELDIR) M= $(PWD) modulesclean:rm -rf *.o *.mod.c *.ko *.symvers Here is a simple explanation, obj-m means that the file will be compiled as a module; because this module consists of multiple files The module's component file is defined by the module name plus the –objs(minix-objs) suffix. KERNELDIR defines the location of the code tree, PWD defines the current folder location; the -C option in the make command specifies the location of the code tree (given by KERNELDIR), and M=$(PWD) specifies the current build work. . The last line cleans up the files generated by the compilation process. After completing the Makefile, we can start compiling the file system module. Just type make and start compiling:[cocobear@cocobear minix]$ makemake -C /lib/modules/2.6.24.4-64.fc8/build M=/home/cocobear/minix modulesmake[1]: Entering directory `/usr/src/kernels/2.6.24.4-64.fc8-i686'CC [M] /home/cocobear/minix/bitmap.oCC [M] /home/cocobear/minix/itree_v1.oCC [M] /home/cocobear/minix/itree_v2.oCC [M] /home/cocobear/minix/namei.oCC [M] /home/cocobear/minix/inode.oCC [ ,null,null,3],M] /home/cocobear/minix/file.oCC [M] /home/cocobear/minix/dir.oLD [M] /home/cocobear/minix/minix.oBuilding modules, stage 2.MODPOST 1 modulesCC /home/cocobear /minix/minix.mod.oLD [M] /home/cocobear/minix/minix.komake[1]: Leaving directory `/usr/src/kernels/2.6.24.4-64.fc8-i686' meets after the compilation Currently generating the minix.ko file, this is what we need, you can use the insmod command to install the minix file system module. Of course, you need to have root privileges here. Let's demonstrate the loading of the minix module: [cocobear@cocobear minix]$ cat /proc/modules | Grep minix [cocobear@cocobear minix]$ Here you can see that minix is not loaded, we use the insmod minix.ko command: [cocobear@cocobear minix]$ sudo insmod minix.ko [cocobear@cocobear minix]$ cat /proc/Modules | Grep minix minix 28676 0 - Live 0xd0e7d000 insmod After we can see from the above information that the minix module has been loaded, we can also easily uninstall it if you don't need to use this module: [cocobear@cocobear minix]$ sudo rmmod minix .ko [cocobear@cocobear minix]$ cat /proc/modules | Grep minix [cocobear@cocobear minix]$ At this point we have successfully completed the compilation, installation and uninstallation of the file system. BTW: I encountered some problems in the middle. After writing the Makefile, type make prompt: "make: Nothing to be done for `default'.", found the reason on the Internet, use tab before the make command, instead of spaces, and my Just a good space, depressed, I have encountered it before
1. Get root privileges without logging in. If you dont set the GRUB password, we can use the easiest
A.Linux files can be divided into four types: ordinary files, directory files, link files, and devi
A public IP is a public address that is assigned by InterNIC and consists of a class-based network I
xenserver XenCenter can bind the network card, support Active-Active and Active-Standby mode, but on
Mounting of text editors and external storage devices in Linux system
Detailed analysis: the process of installing and configuring VNC under CentOS
Introduction to MTD/CFI driver under Linux system
I don't know how to choose the advantages and disadvantages of various Linux distributions
Graphic mode and text mode switch between Linux installations
How to let IE open a new window to display
The configuration of the news reader under Linux
Linux hard links and soft links deep understanding
Linux service security ssh anti-brute force crack
Linux hwclock display and setting hardware clock command details
How to create a system image backup of win7 computer?
How does Win8.1 switch from a Microsoft account to a local account?
Setting method for prohibiting computer file encryption under Win7 system
Windows XP classic Internet problem four
Solve the network failure caused by SP2
CISCO Policy Routing (PBR) Configuration Example
Using Nginx as both a web cache server and load balancing
Win7 automatically opened after downloading compressed files
Teach you to enter the Windows XP system after the fake crash solution