CentOS uses NTFS-3G to load NTFS hard drive

Source: Internet
Author: User
When mounting the NTFS format hard disk CentOS will report the error unknownfilesystemtype & #39; ntfs & #39;, then you need to use a third-party plug-in NTFS-3G to load NTFS format hard disk. The NTFS-3G is an open source software that supports reading and writing NTFS format partitions in Linux, FreeBSD, MacOSX, NetBSD, and Haiku operating systems. The main steps are as follows: 1. install gcc, etc.

When mounting NTFS format hard disk CentOS will report the error unknown filesystem type 'ntfs ', then you need to use a third-party plug-in NTFS-3G to load ntfs format hard disk. The NTFS-3G is an open source software that supports reading and writing NTFS format partitions in Linux, FreeBSD, Mac OS X, NetBSD, and Haiku operating systems. The main steps are as follows:

1. install gcc and other compiling environments

Yum-y install gcc automake autoconf libtool make

2. download installation NTFS-3G

NTFS-3G official site is

wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgztar –xvzf ntfs-3g_ntfsprogs-2013.1.13.tgzcd ntfs-3g_ntfsprogs-2013.1.13./configuremakemake install

3. check the NTFS hard disk partition information. The red lines shown in the figure show my NTFS hard disk information.

Fdisk-l4. mount the partition
mkdir /mnt/ntfsmount -t ntfs-3g /dev/sdb1 /mnt/ntfs

After the partition is mounted, enter the/mnt/ntfs directory, which is the partition of the mobile hard disk.

5. detach a partition

umount /dev/sdb1

6. mount the mobile hard disk automatically at startup and edit the/etc/fstab file.

Cp/etc/fstab/etc/fstabbak # back up vi/etc/fstab # edit before changing, and add the following information at the end, mount disk/dev/sdb1/mnt/ntfs NTFS-3G defaults 0 0: wq! # Save and exit

After the device is restarted, the mobile hard disk is automatically mounted.

7. when unmounting umount, the following message is displayed:

Umount:/mnt/upan: device is busy.

(In some cases useful info about processes that use

The device is found by lsof (8) or fuser (1 ))

Solution:

lsof -w /mnt/upan

Command pid user fd type device size/OFF NODE NAME

Bash 31761 root cwd DIR 8192 2316326 120526/mnt/upan/rekfan.com _

Using lsof-w/mnt/upan, we can see that there is a command window in the/mnt/upan/rekfan.com _ 120526 Directory, close this window, or exit this Mount directory, use umount to unmount the disk.

Related Article

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.