Two ways to support NTFS partition in centos 5.3

Source: Internet
Author: User

How can we enable centos 5.3 to support NTFS partitions?
1. view the kernel version of your system
# Uname-
# Uname-R
2. Find the NTFS Module Suitable for your system kernel and CPU. Download:
My: kernel-module-ntfs-2.6.18-128.el5
I'm in http://sourceforge.net/project/showfiles.php? Group_id = 13956
Page found
Http://jaist.dl.sourceforge.net/
Kernel-module-ntfs-2.6.18-128.el5
3. Install
Run the rpm-ihv kernel-module-ntfs-2.6.18-53.el5-2.1.27-0.rr.10.11.i686.rpm to install this RPM package.
Run/sbin/modprobe NTFS to load the kernel module.
[Root @ localhost SRC] # dmesg | grep NTFS
NTFS Driver 2.1.27 [flags: R/W module].
Run CAT/proc/filesystems and you can see that NTFS file systems are supported.
Appears
Nodev autofs
NTFS
NTFS is supported!
4. Mount partitions
(1). fdisk-l view partition information
Disk/dev/hda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device boot start end blocks ID system
/Dev/hda1*1 1912 15358108 + 7 HPFs/NTFS
/Dev/hda2 1913 9725 62757922 + F w95 ext 'd (LBA)
/Dev/hda5 1913 4462 20482843 + B w95 FAT32
/Dev/hda6 4463 7012 20482843 + 7 HPFs/NTFS
/Dev/hda7 7013 7025 104391 83 Linux
/Dev/hda8 7026 9725 21687718 + 8e Linux LVM

(2) create a mount directory
Mkdir/Media/d
Mkdir/Media/E
Mkdir/Media/F

(3) All partitions under Mount windwos
NTFS Mount-t ntfs/dev/sda5/Media/d
Mount-T vfat/dev/sda6/Media/E for vfat

Run DF-h to check whether the file is mounted.

(4). set to enable automatic mounting of partitions
Modify/etc/fstab
Add the following information:
/Dev/sda5/Media/d NTFS umask = 000, NLS = utf8
/Dev/sda6/Media/e NTFS umask = 000, NLS = utf8
/Dev/sda7/Media/f ntfs umask = 000, NLS = utf8
Restart and try again!

5. Uninstall the NTFS Module
Rpm-Qa | grep-I NTFS view installed version
Rpm e kernel-module-ntfs-2.6.18-53.el5-2.1.27-0.rr.10.11.i686
You can uninstall it.
---------------------

Http://hi.baidu.com/flyship163/blog/item/b2238012920088c7c2fd785d.html

========================================================== ====================================

How to mount NTFS partition in centos

Introduction:
Because Linux does not compile the NTFS format mounting function into the kernel, you must re-compile the kernel. However, after compilation, it is difficult to ensure that NTFS partitions can be mounted. The following describes how to correctly and reliably install, compile, and mount NTFS to Linux .......

1. view the current Linux kernel version by uname-R.

[Root @ localhost desktop] # uname-r method 1. uname-r view the current L
2.6.18-128. EL5

2. Go to me-r 2.6.18-128. el5http: // www.linux-ntfs.org/to download the NTFS patch that is consistent with the internal kernel.

3. Install patches: kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.rpm

: Http://sourceforge.net/project/downloading.php? Group_id = 13956 &
Amp;
Amp; use_mirror = nchc & filename = kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.rpm & A = 51594699 alhost
Desktop] # una

[Root @ localhost desktop] # rpm-UV kernel-module-ntfs-2.6.18-128.el5-2.1.27-0.rr.10.11.i686.rpm
Inux kernel version. [root @ Loc
4. Use fdisk-L to view the partition information of the hard disk.

Disk/dev/hda: 80.0 GB, 80026361856 bytes method 1. uname-r view current L
255 heads, 63 sectors/track, 9729 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes
Me-r 2.6.18-128. EL5
Device boot start end blocks ID system
/Dev/hda1*1 2550 20482843 + 7 HPFs/NTFS
/Dev/hda2 2551 9728 57657285 F w95 ext 'd (LBA) alhost desktop] # una
/Dev/hda5 2551 3825 10241406 7 HPFs/NTFS
/Dev/hda6 3826 7649 30716248 + 7 HPFs/NTFS
/Dev/hda7 8734 9243 4096543 + 83 Linux method 1. uname-r view the current L
/Dev/hda8 9244 9600 2867571 83 Linux
/Dev/hda9 7650 8733 8707198 + 83 Linux
/Dev/hda10 9601 9728 1028128 + 82 Linux swap/solarisalhost desktop] # una

Partition Table entries are not in disk order
Inux kernel version. [root @ Loc
5. Mount NTFS partitions
(1) first, create a folder under the/mnt directory, enter the terminal, enter mkdir/mnt/winc or wind, and create a folder according to your personal situation.
(2) enter the/etc directory to find the fstab file method 1. uname-R to view the current L
(3) edit in fstab and input in the last line (declare that I am running C, D, and E disks in the XP system)
/Dev/hda1/mnt/winc NTFS iocharset = utf8, umask = 0 0 0
/Dev/hda5/mnt/wind NTFS iocharset = utf8, umask = 0 0 0 centos 5.3 mount the NTFS partition
/Dev/hda6/mnt/wine NTFS iocharset = utf8, umask = 0 0 0

Let linux Mount NTFS2007-08-13 let linux Mount NTFS
The partition format of Windows 2000/XP/2003 is NTFS. The NTFS format supports a large hard drive of up to 2 TB, and its performance will not decrease as the disk capacity increases. However, because this format cannot be used directly in Linux, Linux users cannot make full use of the hard disk space in NTFS format.

Because Linux does not compile the NTFS format mounting function into the kernel, you must re-compile the kernel. However, after compilation, it is difficult to ensure that NTFS partitions can be mounted. The following describes how to correctly and reliably install, compile, and mount NTFS to Linux.

Install

1. rpm
The RPM Component Management Program is generally used to install software in Linux. First, use the following command to query the current Linux kernel version:
# Uname-R

After obtaining the version information, go to the release. After the download is complete, run the following command to install the component:
# Rpm IVH kernel-ntfs-2.4.28-27.8.0.i686.rpm

2. CD
First, log on to Linux as root, put the second installation disk of Linux into the optical drive, find the kernel-2.4.xx-x-i386.rpm under the/RedHat/RPMS directory (here X represents a number) file, enter the following command:
# Rpm IVH kernel-2.4.xx-x.i386.rpm

Compile


After the NTFS software package is installed, You can compile it. First go to the/usr/src/linux-2.4.xx-x/configs directory and select the kernel
-2.4.xx-X. i686.config: copy the file to the/usr/src/linux2.4.xx-X Directory. Open it in a text editor
# Change config_ntfs_fs is not set to config_ntfs_fs = m.

Then go to the/usr/src/linux-2.4.xx-3 directory and enter the following command to compile the NTFS module:
# Make modules

After compilation, find an NTFS. o file under the/usr/src/linux-2.4.xx-x/fs/NTF directory and copy the file
/Lib/modules/2.4.xx-x/kernel/fs directory. Finally return to the/usr/src/linux-2.4.xx-3 directory, enter the following command:
Yes:
# Depmod
# Modprobe NTFS

Mount NTFS

After installation and compilation, you can create a directory under/mnt as a mount point. For the author, the mount point is set to windows1. Use the mount command to mount the file, as shown in the following example:
# Mount t NTFS/dev/hdc1/mnt/windows1

After NTFS is successfully mounted, you can switch to the directory of the created mount point (for example, switch to/mnt/windows1) and run the following command to view the files in the NTFS partition:
# Ls-l

After installing the NTFS partition components in RPM mode, Linux can only read and run related files in the mounted NTFS partition, you cannot write any information or store any files in the NTFS partition.

In this case, the general user cannot use the content in the NTFS partition, because the mounting permission is only available to the system administrator root. The owner (UID) and owner group (GID) of the mounted partition are both root. If you want users to use the mounted files, you must reset the settings. The procedure is as follows:

First, before running the mount command, the root user must consider how many users will use files in the NTFS partition. For example, if ABC users need to use files, enter the following command:
# Mount/dev/hdc1/mnt/windows1 t ntfs r o uid = ABC

After mounting, you can see that the owner of windows1 has changed to ABC. Now, ABC can use any file in the windows1 directory, so as to use NTFS disk space.

Automatically mount the FAT partition at startup in Linux

1. Run the fdisk-l command to obtain the names of all partitions.
2. Create a folder at the Mount point
3. mount command: Mount-O iocharset = cp936-T vfat/dev/hda1/mnt/win/C
In this way, the C disk is mounted.
-O iocharset = cp936 is used to support Chinese characters for mounted files
4. Add the mount command to the fstab file under/etc/If you want to start the mounting.

-------------

Http://www.ubooo.com/linux/2009/0726/916.html

========================================================== ========================================================

Install ntfs-3g on centos5.3 to support NTFS partitions


Two systems are installed on the computer. XP and CEN desktop. Access the content of the Windows XP partition in centos. By default, centos5 does not support NTFS partitions. Ntfs-3g needs to be installed to support the NTFS file system. To install the package: 1.fuse-2.8.1.tar.gz (http://fuse.sourceforge.net/
2. ntfs-3g-2009.4.4.tgz (http://www.ntfs-3g.org/
) Installation: 1. Install fuse # tar zxfv fuse-2.8.1.tar.gz # cd fuse-2.8.1 #./configure (I installed centos without GCC, error prompted. Use Yum install GCC. Install GCC) # Make install2. install ntfs-3g # tar zxfv ntfs-3g-2009.4.4.gz # cd ntfs-3g-2009.4.4 #. /configure # Make # make install view the XP partition in, my hard disk partition, C disk install XP, d disk put file system is NTFS, and E disk is FAT32. Centos5.3 install the remaining space and view the hard disk information # fdisk-ldisk/dev/HDC: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 Cylinders
Units = cylinders of 16065*512 = 8225280 bytes device boot start end blocks ID system
/Dev/hdc1*1 1275 10241406 7 HPFs/NTFS
/Dev/hdc2 1276 4864 28828642 + F w95 ext 'd (LBA)
/Dev/hdc5 1276 3451 17478688 + 7 HPFs/NTFS
/Dev/hdc6 3452 4081 5060443 + B w95 FAT32
/Dev/hdc7 4082 4798 5759271 83 Linux
/Dev/hdc8 4799 4863 522081 82 Linux swap/Solaris our hard disk is the IDE interface, hdc1 is the XP partition, hdc2 is the extended partition, hdc5 is the xp d disk, hdc6 is a FAT32 file system. Hdc7 and hdc8 are centos/partitions and swap partitions. Mount NTFS partition # Mount-T ntfs-3g/dev/hdc5/mnt/d disk # Mount-T ntfs-3g/dev/hdc1/mnt/C # DF-hfile system capacity used available % mount point
/Dev/hdc7 5.4 GB 2.8g 2.4g 55%/
Tmpfs 252 m 0 252 m 0%/dev/SHM
/Dev/hdc5 17G 14g 3.4g 81%/mnt/d Disk
/Dev/hdc1 9.8g 4.1g 5.8g 42%/mnt/C # cd/mnt/C # ls documents ents and settings program files windows
Io. sys recycler
Boot. ini system volume information
Hiberfil. sys msdos. sys

Pagefile. sys
-----------------------

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.