Sometimes large data migration, in order to quickly migrate big data, it is possible to temporarily mount the NTFS-formatted mobile hard disk on the Linux server, in general, Linux is not recognized in the NTFS format of the mobile hard disk (need to recompile the Linux kernel to hang NTFS partition), In order for the Linux server to recognize the NTFS removable hard disk, you must install the ntfs-3g (third Generation read/write NTFS Driver) package.
NTFS-3G Introduction
NTFS-3G is an open source project, NTFS-3G is a stable, fully functional, provided for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku, and other operating systems, Read and write NTFS drivers. It provides secure handling of the NTFS file system under Windows Xp,windows Server 2003,windows 2000,windows vista,windows Server 2008 and the Windows 7 operating system.
NTFS-3G is an open source software that supports reading and writing NTFS-formatted partitions under Linux. It's very fast, and it's safe. It supports Windows 2000, XP, 2003, and Vista, and supports all POSIX-compliant disk operations. The purpose of NTFS-3G is to continue to evolve, and users of each hardware platform and operating system need reliable interoperability with NTFS-enabled drivers, and ntfs-3g can provide trusted, feature-rich, high-performance solutions. After more than 12 years of development, NTFS-3G has gradually stabilized;
Information about
Official website: http://www.tuxera.com/,
Document book: http://www.tuxera.com/community/ntfs-3g-manual/
: http://www.tuxera.com/community/ntfs-3g-download/
Step One: Unzip the installation ntfs-3g, using the following command.
sudo spt-get install ntfs-3g
Step Two: Configure the mounted NTFS-formatted removable hard disk
1. First get the NTFS partition information
sudo fdisk-l | grep NTFS
[[email protected] klb]# sudo fdisk-l | grep NTFS
/DEV/SDC1 * 1 244 1955776+ 7 Hpfs/ntfs
2. Set the mount point to mount with the following command:
To create the Mount directory first, for example, I mount the/MNT/USBHD1, then:
Cd/mnt
sudo mkdir usbhd1
The Mount command is as follows:
Mount-t ntfs-3g <ntfs partition> <mount point>
For example, the resulting NTFS partition information is/DEV/SDC1, and the mount point is set under/MNT//USBHD1, which can be used
Mount-t NTFS-3G/DEV/SDC1/MNT/USBHD1
or directly with
NTFS-3G NTFS-3G/DEV/SDC1/MNT/USBHD1
3. If you want to automatically mount the boot, you can add the following format statement in the/etc/fstab
<ntfs partition> <mount point> ntfs-3g Silent,umask=0,locale=zh_cn.utf8 0 0
This enables the display of Chinese file names in NTFS partitions.
4. The Unload partition can be implemented with Umount, with
Umount <ntfs partition> or Umount <mount point>
Article Source Address: http://www.cnblogs.com/kerrycode/archive/2013/04/01/2993701.html
Raspberry Pi mount NTFS hard disk