Mount Error in Centos 7.3
-
I am getting this error while trying to open the NTFS filesystem. Help me!!
An error occurred while accessing 'Music', the system responded: The requested operation has failed: Error mounting /dev/sda5 at /run/media/root/Music: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177" "/dev/sda5" "/run/media/root/Music"' exited with non-zero exit status 32: mount: unknown filesystem type 'ntfs'
-
@lakshmana said in ount Error in Centos 7.3:
mount: unknown filesystem type 'ntfs'
Here is the important part of the error. It is telling you that the option that you chose, NTFS, is not something that it knows about. You are asking it to do something that it does not understand. It can't mount using that option, as that's not a supported option.
Why are you trying to mount NTFS drives on CentOS? That's an odd combination of tasks. The RHEL certs don't ask you to do that, do they? CentOS likely doesn't support NTFS because that is not a server or enterprise task.
-
I verified, CentOS does not support NTFS. This is one of the many reasons why you don't use CentOS on a laptop or desktop except in extremely specific circumstances, it is not designed for the use case here. Fedora, for example, is designed for laptop use and contains these packages, at least in its own repositories if not installed by default, because Fedora is meant for a variety of use cases, CentOS is not.
First you have to add the EPEL to allow CentOS to access a broader packaging ecosystem. This is not advised if you plan to use this device for the RHEL exams as this will extend your system in ways that you cannot do for learning RHEL. You are at cross-purposes here. You really should have Fedora 27 installed for the workstation and run CentOS in a VM, which is how it should run in all production environments anyway. Then you would be learning in a more authentic environment.
yum install epel-release
Now that we have access to the EPEL packages, the package that handles NTFS is called ntfs-3g which we install here:
yum install ntfs-3g
Now, with this installed, you should be able to mount an NTFS share. However, in addition to missing the necessary filesystem drivers, you were also using the wrong command. The filesystem type for the mount command is not "ntfs" but rather "ntfs-3g".
-
So in theory, after all of that, this command should work...
mount -t "ntfs-3g" -o "uhelper=udisks2,nodev,nosuid,uid=0,gid=0,dmask=0077,fmask=0177" "/dev/sda5" "/run/media/root/Music
-
I just installed Fedora Workstation, NTFS was supported out of the box.
-
@dashrender said in Mount Error in Centos 7.3:
I just installed Fedora Workstation, NTFS was supported out of the box.
As is expected
-
@scottalanmiller Thanks Scott it worked