Location>code7788 >text

linux Error mounting hard disk "mount: unknown filesystem type 'ntfs'"

Popularity:161 ℃/2024-10-08 10:56:01

This error is saying that the system can't recognize the ntfs format hard disk. So it cannot be mounted directly.
There are two ideas for solving this problem:

  1. Format the disk into a format that linux recognizes.
  2. Make linux recognize the ntfs format with tools.
    If this is the first time you mount a hard disk you can use the first solution, however, I already had data on my hard disk, so I used the second solution.
    By means of Dojo and other means, I found out that people use the ntfs-3g tool to solve this problem.

Installation steps

  1. Use wget to download:wget /opensource/ntfs-3g_ntfsprogs-2022.10.
  2. Decompression:tar -zxvf ntfs-3g_ntfsprogs-2022.10.
  3. compile and install
cd ntfs-3g_ntfsprogs-2022.10.3
./configure 
make 
make install

Just mount the hard disk after the installation is complete:
mount -t ntfs-3g /dev/sdc2 /work/