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
- ./Configure
[Cpp] view plaincopy
- Make
[Cpp] view plaincopy
- 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
- [Root @ linuxcast ~] # Fdisk-ls
[C #] view plaincopy
- Disk/dev/sda: 320.1 GB, 320072933376 bytes
- 255 heads, 63 sectors/track, 38913 cylinders
- Units = cylindersof16065 * 512 = 8225280 bytes
- Sectorsize (logical/physical): 512 bytes/512 bytes
- I/Osize (minimum/optimal): 512 bytes/512 bytes
- Diskidentifier: 0x053bc438
- DeviceBootStartEndBlocksIdSystem
- // Dev/sda1 * 115412288007 HPFS/NTFS
- Partition1doesnotendoncylinderboundary.
- /Dev/sda2154537541944831 + 7 HPFS/NTFS
- /Dev/sda3537637638259152547 + 5 Extended
- /Dev/sda4376393891410241097hpfs/NTFS
- /Dev/sda553761581983891398 + 7 HPFS/NTFS
- /Dev/sda62621337638913696567hpfs/NTFS
- /Dev/sda7158201584520480083Linux
- /Dev/sda81584516415419213482linuxswap/Solaris
- /Dev/sda916213262682448800083linux
For example, to mount sda5 to the/mnt/windows/directory of centos, run the following command:
[C #] view plaincopy
- Mkdir/mnt/windows
[Cpp] view plaincopy
- 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
- /Dev/sda5/mnt/windowsntfs-3gdefaults00 save and exit.
Access a disk in NTFS format in Linux is as simple as that.