Mount ntfs mobile hard drives to centos

Source: Internet
Author: User
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.

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.