Linux system mounts NTFS removable hard disk

Source: Internet
Author: User

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 able to recognize the NTFS format of the mobile hard disk (need to recompile the Linux kernel to hang NTFS partitions),
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.

I. Introduction of NTFS-3G
NTFS-3G is an open source project,
NTFS-3G is for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku,
and other operating systems provided by a stable, fully functional, read and write NTFS driver.
It provides secure handling of Windows xp,windows server 2003,windows 2000,windows vista,windows Server 2008
and the NTFS file system under 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 the ntfs-3g is to continue to evolve, and users of each hardware platform and operating system need reliable interoperability with NTFS-enabled drivers,
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/

Second, installation and mounting
Step One: Unzip the installation ntfs-3g.
# TAR-XVZF Ntfs-3g_ntfsprogs-2012.1.15.tgz
# CD ntfs-3g_ntfsprogs-2012.1.15
#./configure
# make
# make Install

Unzip installation permissions

#su Enter the password

After that the system will prompt the installation to succeed, you can use ntfs-3g to read and write the NTFS partition.

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
# mount-t ntfs-3g
  
For example, the resulting NTFS partition information is/DEV/SDC1, and the mount point is set under/mnt/usb, which can be used
# mount-t Ntfs-3g/dev/sdb1/media
or directly with
# ntfs-3g Ntfs-3g/dev/sdb1/media

3. If you want to automatically mount the boot, you can add the following format statement in the/etc/fstab
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 or
# Umount

5. Check the NTFS hard disk partition information, where the Red line box in the figure is the part of my NTFS hard drive information

Fdisk-l

Linux system mounts NTFS removable hard disk

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.