This article only describes how to mount a partition hard disk in ntfs format in linux. Step 1: install ntfs3g with the following command: wgethttp: // Configure
This article only describes how to mount a partition hard disk in ntfs format in linux.
Step 1: install the ntfs3g tool
Run the following command:
Wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz
Tar zxf ntfs-3g_ntfsprogs-2011.4.12.tgz
Cd ntfs-3g_ntfsprogs-2011.4.12
./Configure -- prefix =/usr/local/ntf3g
Make & make install
Step 2: Mount the mobile hard drive
Method 1, the command is as follows:
NTFS-3G/dev/sdb1/mnt/windows-o locale = ar_SA.UTF-8
The ar_SA.UTF-8 after locale above can be modified to zh_CN.GBK, which should be noted when strict encoding is required.
Method 2, the command is as follows:
Mount-t NTFS-3G/dev/sdb1/mnt/windows
Note:
In the above example,/dev/sdb1/is a partition of the hard disk to be attached.
You can run the command fdisk-l to view all the partitions of the current mobile hard disk.
Unmount:
Umount/mnt/windows
This is also possible, as shown below:
Umount-t NTFS-3G/mnt/widows
Possible problems:
In windows, the hard disk is formatted as an ntfs partition. after mounting in linux, it is mounted to windows, prompting that it cannot be identified.
The partition attribute is 0 Bytes. the file system is in RAW format.
Use the following method to restore data. If the partition is H:, run the following command:
Chkdsk H:/f.
Generally, the ntfs file system can be restored to a normal one, and the data is intact.