What if CentOS 6.4 can't read ntfs disk?

  
                

When CentOS users read ntfs disk devices, they found that the driver files in this format could not be read and the mount failed. The main reason for this problem is that CentOS does not support ntfs format. The following is a small series with CentOS 6.4. For example, let's introduce the solution that CentOS 6.4 can't read ntfs disk devices.

question:

have a dual system Win7 and CentOS6.4. The hard disk in win7 is not recognized in CentOS. But when man mounts, there is an option for ntfs in the -t parameter. But when you mount it, you always get an error.

mount -t ntfs /dev/sda1 /media

mount: unknown filesystem type ‘ntfs’

After searching, CentOS does not install ntfs format by default. The driver file for the file system.

Solution:

We can install an ntfs-3g to let CentOS support the file system in ntfs format.

Go download a new stable version of ntfs-3g.

Download ntfs-3g_ntfsprogs-2013.1.13.tgz

Go to the location where you downloaded,

# tar -xzf ntfs-3g_ntfsprogs-2013.1.13.tgz

# cd ntfs-3g_ntfsprogs-2013.1.13

# . /configure

# make

# make installntfs-3g

But this mount method is not, mount -t ntfs /dev/sda1 /media but mount -t Ntfs-3g /dev/sda1 /media. It feels a bit strange.

If you want to boot automatically, you can do this through the /etc/fstab file.

First look at all partition information via 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< Br>

/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 82 Linux swap /Solaris

/dev/sda7 34966 35004 307200 83 Linux

/dev/sda8 35004 38914 31401984 83 Linux

It is found that sda1, sda2, sda3, sda5 are all ntfs, you can mount them according to your needs.

The format of the device to be mounted in /etc/fstal is as follows.

Format is the device mount directory file format default 0 0

For example, I want to mount /dev/sdb1 to /media/ntfs

/media/ntfs , there is no new directory, otherwise it will fail

Add the following in /etc/fstab (if there is a corresponding mount directory before, back up the previous file, then modify the corresponding .)

/dev/sdb1 /media/ntfs defaults 0 0

Save the file and restart the system.

The above is a description of the solution that CentOS can't read ntfs disk device. Since CentOS does not support ntfs format, just let CentOS support ntfs format driver file to solve the problem as described in the article.

Copyright © Windows knowledge All Rights Reserved