How to troubleshoot CentOS cannot read NTFS-formatted hard drive problems

Source: Internet
Author: User
Tags centos

CentOS users in the NTFS disk device read, found that such a format can not read the driver file, and mount failure, the main reason for this problem is that CentOS does not support the NTFS format, the following small set to CentOS 6.4 For example, to introduce the next CentOS 6.4 Cannot read the solution for NTFS disk devices.

Problem:

The dual system Win7 and CentOS6.4 are used. The hard drive in Win7 is not recognized in CentOS. But when man mount, there are NTFS options in the-t argument. But it always prompts for error when mounting.

Mount-t Ntfs/dev/sda1/media

Mount:unknown filesystem type ' NTFS '

After finding out, CentOS defaults to a driver file that does not install NTFS-formatted file systems.

Workaround:

We can install a ntfs-3g to enable CentOS to support file systems in NTFS format.

To download the latest stable version of NTFS-3G.

Download ntfs-3g_ntfsprogs-2013.1.13.tgz

Go to the location of the download,

# TAR-XZF Ntfs-3g_ntfsprogs-2013.1.13.tgz

# CD ntfs-3g_ntfsprogs-2013.1.13

# 。 /configure

# make

# Make INSTALLNTFS-3G

But this method of mounting is not, mount-t Ntfs/dev/sda1/media but Mount-t Ntfs-3g/dev/sda1/media. It's kind of weird.

If you want to boot up automatic mount, you can do it through the/etc/fstab file.

First, all the partition information is viewed through fdisk-l.

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 6528 52436128+ 7 hpfs/ntfs

/dev/sda2 6529 16972 83891430 7 hpfs/ntfs

/dev/sda3 16973 27416 83891430 7 hpfs/ntfs

/DEV/SDA4 27417 38914 92350464 f W95 Ext ' d (LBA)

/dev/sda5 27417 33791 51200000 7 hpfs/ntfs

/dev/sda6 33791 34966 9437184 Linux Swap/solaris

/dev/sda7 34966 35004 307200 Linux

/dev/sda8 35004 38914 31401984 Linux

Discover that sda1, Sda2, Sda3, Sda5 are all NTFS, and you can mount them according to your needs.

The writing format for mounting devices in/etc/fstal is as follows.

Format is device mount directory file format default 0 0

Like I'm going to mount the/DEV/SDB1 to/media/ntfs now.

We first check/media/ntfs, there is no new directory, or it will fail

Add the following in the/etc/fstab (if the corresponding mount directory exists before backing up the previous file, and then modify the corresponding.) )

/dev/sdb1/media/ntfs Defaults 0 0

Save the file and reboot the system.

The above is the CentOS read the solution to the NTFS disk device, since CentOS does not support NTFS format, just the method described in the article to allow CentOS to support the NTFS-formatted driver file can solve the problem.

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.