CentOS6.5 access the NTFS partition

Source: Internet
Author: User

CentOS6.5 access the NTFS partition

Laptop installed win7 and centos dual system, in centos want to access win7 NTFS format file, need to use NTFS-3G this tool, he can provide Linux NTFS partition driver. It provides secure and fast read/write support for Windows format partitions.

Download NTFS-3G source code: Official download Network Disk download

By default, downloads is downloaded to the downloads folder under the current user.

Because the source code is downloaded, You need to decompress it. Run the following command:

Tar xzvf ntfs-3g_ntfsprogs-2014.2.15.tgz

Go to the extract directory, switch to the root user, and execute commands in sequence

[Cpp] view plaincopy
  1. ./Configure
[Cpp] view plaincopy
  1. Make
[Cpp] view plaincopy
  1. Makeinstall
The driver has been installed successfully!

Select the partition you want to mount. You can run the fdisk-ls command to view the partition.

[C #] view plaincopy
  1. [Root @ linuxcast ~] # Fdisk-ls
[C #] view plaincopy
  1. Disk/dev/sda: 320.1 GB, 320072933376 bytes
  2. 255 heads, 63 sectors/track, 38913 cylinders
  3. Units = cylindersof16065 * 512 = 8225280 bytes
  4. Sectorsize (logical/physical): 512 bytes/512 bytes
  5. I/Osize (minimum/optimal): 512 bytes/512 bytes
  6. Diskidentifier: 0x053bc438
  7. DeviceBootStartEndBlocksIdSystem
  8. // Dev/sda1 * 115412288007 HPFS/NTFS
  9. Partition1doesnotendoncylinderboundary.
  10. /Dev/sda2154537541944831 + 7 HPFS/NTFS
  11. /Dev/sda3537637638259152547 + 5 Extended
  12. /Dev/sda4376393891410241097hpfs/NTFS
  13. /Dev/sda553761581983891398 + 7 HPFS/NTFS
  14. /Dev/sda62621337638913696567hpfs/NTFS
  15. /Dev/sda7158201584520480083Linux
  16. /Dev/sda81584516415419213482linuxswap/Solaris
  17. /Dev/sda916213262682448800083linux

For example, to mount sda5 to the/mnt/windows/directory of centos, run the following command:

[C #] view plaincopy
  1. Mkdir/mnt/windows
[Cpp] view plaincopy
  1. Mount-tntfs-3g/dev/sda5/mnt/windows
Now you can access the sda5 partition in centos. If you want to enable automatic mounting upon startup, You can edit the/etc/fstab file and add the last line to it.
[C #] view plaincopy
  1. /Dev/sda5/mnt/windowsntfs-3gdefaults00 save and exit.
Access a disk in NTFS format in Linux is as simple as that.

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.