Article Title: A quick method for Red Hat 7.3 to support ntfs. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
OMP: Red Hat: A quick way to enable NTFS Support
A quick method for Red Hat 7.3 to support ntfs
Red Hat: A quick way to enable NTFS Support (text only version)
Text Version
Created: June 9, 2002
Modified: June 20,200 2
Author: Jim Hayward
Author E-mail: jimhayward@earthlink.net
Copyright 2002, Jim Hayward. All Rights Reserved.
Distro Specific: Red Hat Linux
Title: Red Hat: A quick way to enable NTFS Support
Section: Distribution Specific
Sub-Section: Red Hat Linux
What is NTFS?
What Is NTFS?
NTFS is the filesystem used by Windows NT, Windows 2000, and Windows XP.
NTFS is the file system used by Windows NT, Windows 2000, and Windows XP.
Why didn't Red Hat enable NTFS support in their kernels?
Why does red hat not directly support NTFS in its kernel?
Editors note: Anton Altaparmakov, the ntfs maintainer, took offense to my stating
That read only support can cause data upload uption problems. You can read his e-mail
To me here
Editor's note: Anton Al tabamakov, ntfs maintainer, has a sense of my views on read-only support that can cause data damage.
To anger. Here you can read about the girl he gave me.
My prior statement was not in any way meant to be offensive to him, so I have removed
The passage he objected too. However, in the past even while using read only support
The ntfs module has been known to cause filesystem upload uption. Enabling write support
For the ntfs module, will eat your data!
My previous statement did not irritate him in any way, so I deleted the section he opposed. However, in the past, the ntfs module and even
The read-only mode also causes the file system to crash. If its write support is enabled, your data will be eaten!
Why is NTFS support poor under Linux?
Why Is NTFS so poorly supported in linux?
Microsoft chooses not to release the information necessary to write a driver to access
The NTFS filesystem for operating systems other then Windows. This basically makes
Writing a driver a case of trial and error.
Microsoft does not publish the information required to support ntfs drivers in systems other than windows. This is to make it easy to write drivers.
The root cause of many errors.
This may lead you to ask the question, "Then why is Linux support for FAT and FAT32
Filesystems any good? ". The NTFS filesystem is a lot more complex then FAT and FAT32,
Thus making it harder to write a driver.
You may ask: why does linux support FAT and FAT32? NTFS file systems are much more complex than FAT and FAT32, so
It is much more complicated to write the driver.
Alternatives to using NTFS support
Use NTFS as an alternative.
Create an FAT32 (vfat) partition and store the data you need to access from Linux on it.
Create a FAT32 partition. Put the data you need to access from linux in this partition.
Is your system up to date?
Is your system up-to-date?
I am going to assume you have updated your Red Hat 7.3 install with all of the currently
Available updates. Kernel version 2.4.18-5 is the latest official kernel available
Red Hat 7.3
I'm going to assume that you have upgraded your Red Hat 7.3 to the latest kernel available now. The latest version is 2.4.18-5:
This can be done without upgrading. I have tested it on my own machine, and the latest version is 2.4.18-10)
Installing the kernel sources.
Install the kernel source file
First check and see what kernel you are running. You must use the kernel source for
Same kernel you are running.
First, check to see what kernel you are using to run your system. You must use the same source file as your kernel.
[Jimh @ garfield jimh] $ uname-r
2.4.18-5
Check to see if you already have the kernel source installed:
Check to see the version of your kernel source file:
If you don't have the kernel-source installed you will see:
If you have not installed the original Kernel File, you will see the following:
[Jimh @ garfield jimh] $ rpm-q kernel-source-2.4.18-5
Package kernel-source-2.4.18-5 is not installed
If the kernel source is not installed, download the source from your favorite Red Hat mirror
Site. You will need to be logged in as root to install the kernel source. Install the kernel
Source:
If the kernel source file is not installed, download it from the Redhat site and you need to install it with the root permission. Run the following command:
Rpm-ivh kernel-source-2.4.18-5.i386.rpm
If you are registered with The Red Hat Network you can also use up2date to install the kernel.
This will download and then install the kernel-source for you.
If you are already a registered user of redhat, you can use the up2date command to install the kernel. This command will download and install the kernel source
Up2date kernel-source
Preparing the kernel source
Prepare the kernel source file
Login as the root user.
Log on as a root user
Changing to the/usr/src/linux-2.4.18-5 directory
Switch to/usr/src/linux-2.4.18-5 directory
[Root @ garfield root] # cd/usr/src/linux-2.4.18-5
"Make mrproper"
[Root @ garfield Co., linux-2.4] # make mrproper
"Make xconfig"
[Root @ garfield linux-2.4] # make xconfig
Load the default Red Hat kernel config that was used to compile the kernel you have installed.
Load RedHat to compile the Kernel configuration file of the kernel you have installed (athlon fast dragon)
[Root @ garfield linux-2.4] # rpm-q -- qf' % {ARCH} \ n' kernel-2.4.18-5
Athlon
Click "Load Configuration from file"
Click "Load Configuration from file"
Side note: Red Hat did not ship an i586 uniprocessor kernel with 7.3. If you have a uniprocessor
I586 system the command above will probably return istrap. Use the i386.config if it does.
Note: RedHat does not release the i586 uniprocessor kernel of 7.3. If you use the i586 uniprocessor, the system will return i386.
I386.config
You can look in/usr/src/linux-2.4.18-5/configs to see what the default kernel configs Red Hat
Uses to compile their kernels.
You can look at/usr/src/linux-2.4.18-5/configs to see what Red Hat has default Kernel configuration
[Jimh @ garfield jimh] $ ll/usr/src/linux-2.4.18-5/configs
Total 564
-Rw-r -- 1 root 39830 May 2 kernel-2.4.18-athlon.config
-Rw-r -- 1 root 39858 May 2 kernel-2.4.18-athlon-smp.config
-Rw-r -- 1 root 49146 May 2 kernel-2.4.18-i386-BOOT.config
-Rw-r -- 1 root 40020 May 2 kernel-2.4.18-i386.config
-Rw-r -- 1 root 39960 May 2 kernel-2.4.18-i386-smp.config
-Rw-r -- 1 root 39957 May 2 kernel-2.4.18-i586.config
-Rw-r -- 1 root 39897 May 2 kernel-2.4.18-i586-smp.config
-Rw-r -- 1 root 40021 May 2 kernel-2.4.18-i686-bigmem.config
-Rw-r -- 1 root 39968 May 2 kernel-2.4.18-i686.config
-Rw-r -- 1 root 40414 May 2 kernel-2.4.18-i686-debug.config
-Rw-r -- 1 root 39966 May 2 kernel-2.4.18-i686-smp.config
-Rw-r -- 1 root 35944 May 2 kernel-2.4.18-i686-uml.config
-Rw-r -- 1 root 40170 May 2 kernel-2.4.18-x86_64.config
-Rw-r -- 1 root 40170 May 2 kernel-2.4.18-x86_64-smp.config
In the dialog box type the full path to the config file you want to use.
Example:/usr/src/linux-2.4.18-5/configs/kernel-2.4.18-i686.config
In the dialog box, enter the full path file name you want to use,
For example:/usr/src/linux-2.4.18-5/configs/kernel-2.4.18-i686.config
Click "OK" to load the config and exit the dialog box.
Click "OK" to load the configuration and exit the dialog box.
Click "File Systems"
Scroll down and find "NTFS filesystem support (read only )"
Click "File Systems" and find "NTFS filesystem support (read only )"
Click "m" to build NTFS support as a module.
Click m to compile NTFS support into a module. <
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.