Linux/centos mount NTFS-formatted mobile hard disk

Source: Internet
Author: User

Problem Description:

The SQL file exported through mysqldump is very large, 300G, if the network transmission is slow, all use the removable hard drive to mount the import to another server,

Found file system error says "Error Mounting:mount:unknown filesystem type NTFS" This error means that Linux system does not support NTFS hard disk format

Solution:

Linux mount NTFS format hard drive will error unknown filesystem type ' NTFS ', then need to use third-party plug-in NTFS-3G to load NTFS format hard disk. NTFS-3G is an open source software that supports writing and reading NTFS-formatted partitions in Linux, FreeBSD, Mac os X, NetBSD, and haiku operating systems. The main operating steps are as follows:

Download and install the NTFS-3G (the package covered in the article plus the bottom of the free access)

Installation steps (root user)

Tar–xvzf ntfs-3g_ntfsprogs-2012.1.15.tgz
CD ntfs-3g_ntfsprogs-2012.1.15
./configure
Make

Make install

Check NTFS hard disk partition information (sd*1 note the actual situation)

Fdisk-l

Mount Partition
Mkdir/mnt/ntfs
Mount-t Ntfs-3g/dev/sdb1/mnt/ntfs

#分区挂载完成, enter the/mnt/ntfs directory, which is the partition of the removable hard disk

Unmount partition

Umount/dev/sdb1

Boot automatically mount the removable hard disk, edit the/etc/fstab file
#更改之前先备份
Cp/etc/fstab/etc/fstabbak
#编辑, mount the disk in read-write mode by adding the following information at the end
Vi/etc/fstab

/dev/sdb1/mnt/ntfs ntfs-3g Defaults 0 0

#保存, exit

#重启机器就会自动挂载移动硬盘

When you cancel mounting the Umount, the following prompt appears:
Device is busy.
#解决方法: Fuser
#可以显示出当前哪个程序在使用磁盘上的某个文件, mount points, and even network ports, and give detailed information about the program process.
Fuser-m-v/media/sles100_001

USER PID ACCESS COMMAND
/media/sles100_001:root 8153.. C.. bash

#然后可以添加一个-K parameter takes the process off!
Fuser-m-k/media/sles100_001

/media/sles100_001:8153c

If you are interested in this, please scan the QR code below for free for more details

Linux/centos mount NTFS-formatted mobile 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.