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 program: Official Download network disk download default download to the current user under the downloads folder,
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
- Make install
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 = cylinders of 16065*512 = 8225280 bytes
- Sector size (logical/physical): 512 bytes/512 bytes
- I/O size (minimum/optimal): 512 bytes/512 bytes
- Disk identifier: 0x053bc438
- Device Boot Start End Blocks Id System
- /Dev/sda1*1 154 1228800 7 HPFS/NTFS
- Partition 1 does not end on cylinder boundary.
- /Dev/sda2 154 5375 41944831 + 7 HPFS/NTFS
- /Dev/sda3 5376 37638 259152547 + 5 Extended
- /Dev/sda4 37639 38914 10240000 7 HPFS/NTFS
- /Dev/sda5 5376 15819 83891398 + 7 HPFS/NTFS
- /Dev/sda6 26264 37638 91369656 7 HPFS/NTFS
- /Dev/sda7 15820 15845 204800 83 Linux
- /Dev/sda8 15845 16368 4194304 82 Linux swap/Solaris
- /Dev/sda9 16368 26263 79488000 83 Linux
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-t NTFS-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/windows NTFS-3G defaults 0 0 save and exit.
Access a disk in NTFS format in Linux is as simple as that.