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.
What should I do if the Linux server is attacked? In fact, dont worry, the method of rejecting forei
When the Linux system is performing scheduled tasks, the shell script suddenly stop
Usually we use the command to view the disk mounted in the Linux system, in fact, in addition to thi
The Linux system process is composed of threads. Of course, the number of threads u
Linux how to use the command to update the file directory time
Linux installation of Fedora through BFO Step
How to use the Linux more command?
What should I do if the GRUB boot error occurs when CentOS is booting?
How to use the cat command under Linux?
How to solve the problem that Ubuntu system can't mount U disk?
Steps to install EVA QQ on CentOS
How to create symbolic links for Linux systems
CentOS automatically starts the desktop service after booting
Linux Tools Installation Guide for VMware Tools
Anti-intrusion - make service service better
Win10 system allows the folder to prompt the file size information method
There are five things you must pay attention to when installing the WIN7 system.
Windows Server's three major crashes and avoidance methods
Step by step decomposition Win 7 system volume compression three steps
Meet the Windows 7 Experience Index
Extremely beautiful system: XP analog Vista ultimate solution