Mount NTFS hard drive to centos

Source: Internet
Author: User

Centos itself does not support NTFS format, in order to enable centos to support Windows NTFS. Use a ntfs-3g to make it support NTFS mounting.

The procedure is as follows:

1. Install ntfs-3g

1. Download the stable version ntfs-3g from http://www.tuxera.com/community/ntfs-3g-download/

2. decompress the tar.gz package. Run the command window in the directory.

./configuremakemake install

Or directly operate in the Command window.

    wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz    tar zxvf ntfs-3g-2010.8.8.tgz    cd ntfs-3g-2010.8.8    ./configure    make    make install

* *** No acceptable C compiler in $ PATH *** may appear during configure ****

This is because the C compiler GCC is not installed. Installation Method # Yum-y install gcc

Procedure after configure

* ***** Solution ***

I. mount an NTFS Hard Disk

Here, the C drive (/dev/sda1) in Windows is used as an example.

1. Create a mount point. It is recommended to put it in/mnt/windows.

mkdir /mnt/windowsmkdir /mnt/windows/c

2. Attach a C Disk

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

Now, you can view and edit the NTFS disk content in/mnt/window/windows.

To automatically mount the NTFS partition when the system is started, edit the vim/etc/fstab file and add the following content:

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

From: http://blog.csdn.net/esp4u/article/details/6748032

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.