Method of mounting NTFS partitions under CentOS

Source: Internet
Author: User
Tags centos

This article references from http://www.cnblogs.com/gbyukg/archive/2011/11/02/2232343.html

CentOS want to access NTFS partitions, now the common approach is to use NTFS-3G or kernel modules to implement.

First, the use of NTFS-3G official source code to compile the installation method:

ntfs-3g download page: http://www.tuxera.com/community/ntfs-3g-download/

Installation steps:

Tar zxvf ntfs-3g_ntfsprogs-2013.1.13.tgz

CD ntfs-3g_ntfsprogs-2013.1.13

./configure

Make

Make install

Two, mount the NTFS file system

If your NTFS file system is/DEV/SDA1 and you will mount it in/MNT/WINDOWS/C, follow these steps.

1. Create mount points. (generally recommended for hanging in the MNT directory)

Mkdir/mnt/windows/c

2. Mount NTFS partitions:

Mount-t ntfs-3g/dev/sda1/mnt/windows/c

Note: If you do not know the contents of the NTFS file, you can use the Fdisk-l command to view it beforehand.

3. If you want to automatically mount the NTFS partition when the boot system starts up, edit the Vim/etc/fstab file and add something similar to the following:

Read-only mount:/dev/sda1/mnt/windows/c ntfs-3g ro,umask=0222,defaults 0 0

Read-write Mount:/dev/sda1/mnt/windows/c ntfs-3g rw,umask=0000,defaults 0 0

Or:/dev/sda1/mnt/windows/c ntfs-3g defaults 0 0

My/etc/fstab file is as follows:

label=//ext3 Defaults 1 1

Label=/boot/boot ext3 Defaults 1 2

TMPFS/DEV/SHM TMPFS Defaults 0 0

Devpts/dev/pts devpts gid=5,mode=620 0 0

Sysfs/sys Sysfs Defaults 0 0

PROC/PROC proc Defaults 0 0

Label=swap-sda11 Swap Defaults 0 0

/dev/sda1/mnt/windows/c ntfs-3g ro,umask=0222,defaults 0 0

/dev/sda5/mnt/windows/e ntfs-3g Defaults 0 0

/dev/sda6/mnt/windows/f ntfs-3g Defaults 0 0

/dev/sda7/mnt/windows/g ntfs-3g Defaults 0 0

/dev/sda8/mnt/windows/h ntfs-3g Defaults 0 0

Other attention issues:

From CentOS 5.4 (2.6.18-164 or newer kernel), fuse modules are already included in the kernel. Therefore, dkms and dkms-fuse are no longer needed. If you have previously installed Dkms-fuse, please uninstall it with the Yum Remove Dkms-fuse command. Please note that the centos4.x users need both components.

Users using the Centosplus kernel

Starting with CentOS-5.3, the Centoplus kernel does not enable NTFS modules. This is because NTFS in 5.3 is not able to run. Please refer to https://bugzilla.redhat.com/show_bug.cgi?id=481495 for more information. If you want to use an NTFS module from the CentOS kernel, you can install Kmod-ntfs from Elrepo. However, this module is not ntfs-3g good and offers only extremely limited write capabilities.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/

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.