Linux mount NTFS partition

xiaoxiao2021-03-06  33

At present, there are many articles on Linux Mount Windows NTFS under Linux, which is to recompile the kernel, join the support for NTFS partitions. But for a newcomer that has just been contacting Linux, what is a painful thing, I Introduce a simple method to you. 1. First make sure your Linux kernel version is what is (Redhat9.0 default Kernel version is 2.4.20-8) #> rpm -qa | grep kernel Displays the following information : kernel-pcmcia-cs-3.1.31-13 kernel-2.4.20-8, you saw your kernel version is 2.4.20-8 2. Then open the following URL: http://rpm.pbone .NET / INDEX.PHP3 / STAT / 16 / LIMIT / 1 / DL / 40 / IDKA / 1705 Find the Kernel-NTFS RPM package corresponding to your kernel version, download. I use RedHat9.0, kernel version is 2.4 .20-8, so I found the package is kernel-ntfs-2.4.20-20.8.i686.rpm, download address: ftp: //ftp.uni-bayreuth.de/pub/linux/Drivers/linux-ntfs/ KERNEL-NTFS-2.4.20-20.8.I686.RPM, download. 3. Installation: #> rpm -ivh kernel-NTFS-2.4.20-20.8.I686.RPM 4. If there is no error, your system should already Support NTFS, if an error is wrong, it is definitely the package you find with your kernel version. Download. 5.mount Your NTFS partition, how to mount, don't tell me, huh, RH8 hanging NTFS my method (original RH8, not upgraded or compiled kernel): 1. Google.com search and download Kernel-NTFS-2.4.18-14.i686.rpm 2. RPM -IVH KERNEL-NTFS-2.4.18 -14.i686.rpm 3. MKDIR / MNT / C 4. Mount -t NTFS / DEV / HDA1 / MNT / C Original http://fr2.rpmfind.net/linux/rpm2html/search.php?query=kernel- NTFS This method is really great, an RPM is going down, OK, you want to choose RPM #u with the corresponding kernel of your system Name -a will have information similar to Linux LinuxSir01 2.4.18-17.8.0 # 1 Tue Oct 8 13:51:08 EDT 2002 I686 I686 I386 GNU / Linux This is to download with 2.4.18-17.8 kernel corresponding of. . We have to analyze specific questions. The above is Intel's CPU. . . . . If there is AMD CPU, it is like this. . Linux 4LinuxSir0 1 2..18-14 # 1 WED SEP 4 12:13:11 Edt 2002 i686 Athlon i386 gnu / linux Look here, red word is not an Athlon? Then you want to download the end is Athlon.rpm, but it is not the same as the SMP, and the above example is also the same. Then put some of the specific works of the downloaded RPM - Node - IVH KER * RPM - Nodeps --force Mount partition: #mkdir / mnt / winc # mount -t ntfs / dev / hda1 / mnt / winc #CD / MNT / WINC see if you can access? If the access is not, the downloaded RPM does not correspond to the version of the kernel. What should I do if I want to download again. . . . .

KERNEL represents the kernel, NTFS represents support NTFS disk format, 2.4.18-3 represents the version number of the Linux system kernel, Athlon represents the CPU of AMD Athlon, and IX86 represents the processor supporting Intel. I don't know if I explain this? When downloading the version, it is necessary to pay special attention. If you are absolutely can't be successful, please use uname -a to see your kernel version and the CPU kernel. You can download http://prdownloads.s. .NET / Linux-NTFS / 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, reordering 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. Writing 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 II. Modify the .config file, remove the modules that don't 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 the # config_ntfs_fs is not set to config_ntfs_fs = m, of course, you can use you 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. Fourth, install the NTFS module. NTFS.O obtained after compilation, manually copy it to the correct directory in the / usr / src / linux / fs / ntfs directory. Cp /usr/src/linux/fs/ntfs/ntfs.o /lib/modules/2.2.16-22/FS/ Here's 2.2.16-22 is your Linux core version number, please note. Note: Don't run the command Make modules_install, otherwise you will bring serious consequences, which will delete all modules in your system, just install the modules that have just been compiled (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 core, so it does not apply the methods provided herein. There are also some modules and other modules dependence.

If you are not familiar with these dependencies, it is recommended that you add the module you want by Make MenuConfig after you have removed the module options in the second step. Compile the module of the NTFS partition (Take 2.4.18-3) 1. Use uname -a [to see your own kernel version.] 2. RPM -Q kernel-source-2.4.18-3 [see if The kernel source is installed. 3. Assume that the source program has been installed, to /usr/src/linux-2.4.18-3/ directory. 4. Use make mrproperty [Clear extra useless modules.] 5. Use rpm -Q -PF / '% {Arch} // n /' kernel-2.4.18-3 [Look at which iXXX.config file under configs. (This machine is i686)] 6. With your own familiar editor (vi) Open /usr/src/linux-2.4.18-3/configs/kernel- 2.4.18-3.i686.config Check NTFS, change the two rows to config NTFS FS = M and Config NTFS RW = M Save. 7. Use make config to NTFS to select M, the rest of the default Enter. [Some articles use make menuconfig or make Xconfig, but I don't have these two in redhat7.3?] 8. Use your own familiar editor Open /usr/src/linux-2.4.18-3/makefile file, change extraversion = -xcustom to extraversion = -x save exit. (X is numeric) 9. Using Make Dep 10. Using Make Modules Subdirs = fs / NTFS (at this time) 11. Use mkdir /lib/modules/2.4.18-3/kernel/fs/NTFS 12. CP /USR/SRC/LINUX-2.4.18-3 /FS/NTFS/NTFS.O to the current catalog. 13. Use CHMOD 644 /LIB/Modules/2.4.18-3/kernel/fs/ntfs/ntfs.o 14. Use depMod -a 15. Use VI / ETC / fstab Add the following / dev / hdxy ___ / mnt / xxx ___ ntfs ___ noauto, user, uid = z, gid = z, umask = 007, IOCHARSET = CP936 ___ 0_0 Save Exit. [HDXY, X is the IDE number ABCD, Y is partition number .xxx For your own name. Z is the ID number of users and groups] 16. Use mount / mnt / xxx when used Exit Umount / MNT / XXX fully automatic loading If it is frequently exchanged, you can use this way to load this partition to a fixed directory, you can use this partition to a fixed directory. Using any text editor to open the fstab file under the / ECT directory, put / dev / hda5 / mnt / win-c ntfs umask = 0000 defaults, IOCHARSET = CP936 0 0 / DEV / HDA3 / MNT / WIN-C VFAT Defaults, CODEPAGE = 936, IOCHARSET = GB2312 0 0 Add to the last line, after saving. Every time you restart the system, you will be automatically loaded. Description: "vfat" indicates that the FAT32 file system is loaded. If it is "MSDOS", the FAT16 file system, "NTFS" is NT's NTFS file system. If you don't add umask = 0000, only root can access the NTFS disk.

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

New Post(0)