HomeLinuxHow you can Mount Home windows NTFS Partition in RHEL Distributions

How you can Mount Home windows NTFS Partition in RHEL Distributions


Are you making an attempt to entry an NTFS partition or NTFS formatted USB drive on an RHEL-based working system, and have encountered an error?

Don’t worry, all shall be positive when you end studying this information the place we’ll present methods to mount and entry Home windows/USB partitions formatted with NTFS file system kind, on RHEL-based methods similar to CentOS, Fedora, Rocky, and AlmaLinux.

The next screenshot reveals an error encountered whereas mounting a Home windows NTFS partition in Rocky Linux, an RHEL-based system developed as a alternative for CentOS.

mount: /media: unknown filesystem kind 'ntfs'.
mount: /media: unknown filesystem type 'ntfs' Error
mount: /media: unknown filesystem kind ‘ntfs’ Error

This information assumes that you’re logged in as a root consumer and can run instructions with root consumer privileges, in any other case, use the sudo command the place crucial.

How you can Mount Home windows NTFS Partition in Linux

To mount any NTFS-based partition in RHEL-based methods, it’s essential set up and use a bundle known as NTFS-3G.

What’s NTFS3G

NTFS-3G is an open-source cross-platform NTFS driver that works on Linux and different Unix-like working methods. It helps mounting and accessing NTFS partitions utilizing the FUSE (Filesystem in Userspace) interface, which then allows a consumer to create, delete, rename, and transfer recordsdata, directories, onerous hyperlinks, streams, and rather more inside the mount level.

The NTFS-3G bundle is out there within the EPEL (Additional Packages for Enterprise Linux) Repository. To put in it, first allow the EPEL repository in your machine as follows:

----------- On RHEL-based Linux 9 Launch ----------- 
# yum set up https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

----------- On RHEL-based Linux 8 Launch -----------
# yum set up https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

----------- On RHEL-based Linux 7 Launch -----------
# yum set up https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Subsequent, run the next yum command to put in the ntfs-3g bundle in your system, comply with any prompts on the display screen to import the GPG key for signing the bundle:

# yum set up ntfs-3g
Install NTFS-3G in Linux
Set up NTFS-3G in Linux

Determine NTFS Partition

Now plug your USB drive into the pc and examine for all related block units utilizing the fdisk command. Your USB machine needs to be listed within the output as highlighted within the following screenshot.

This command can even allow you to get the machine identify beneath the /dev listing. On this instance, the machine identify is /dev/sdb and the primary mountable partition is /dev/sdb1.

# fdisk -l 
Find Device Name in Linux
Discover the Gadget Identify in Linux

Alternatively, you should use the lsblk command to listing all block units related to your pc:

# lsblk
List Linux Block Devices
Checklist Linux Block Units

Mount NTFS Partition in Linux

Now it’s time to mount your USB drive by creating a brand new listing beneath /media, for instance, /media/myusb. Then mount the USB drive utilizing the mount command with -t flag, which is used to specify the filesystem kind, which is ntfs-3g on this case:

# mkdir -p /media/myusb
# mount -t ntfs-3g /dev/sdb1 /media/myusb/
Mount NTFS Partition in Linux
Mount NTFS Partition in Linux

You’ll be able to examine if the USB drive has been mounted efficiently to the outlined location by working the mount command and filtering its output by way of the grep command as proven:

# mount | grep /dev/sdb
Confirm Mounted NTFS Partition
Verify Mounted NTFS Partition

Subsequent, run the ls command within the mount location to view recordsdata saved within the USB drive. The -l flag permits for a protracted itemizing of recordsdata with their permissions and dimension, and extra:

# ls /media/myusb/
OR
# ls -l /media/myusb/
List NTFS Partition Files
Checklist NTFS Partition Information

To mount a Home windows NTFS partition at boot time, add the next line in your /and so forth/fstab file. Be certain to interchange /dev/sdb1 and /media/myusb with the machine identify and mount level respectively:

/dev/sdb1 /media/myusb auto defaults 0 0

Unmount NTFS Partition in Linux

To unmount the /media/myusb mount level, use the umount command as proven.

# umount /media/myusb/

We now have come to the tip of this information the place we confirmed methods to mount and entry Home windows NTFS partitions in RHEL methods by utilizing the ntfs-3g driver. Share your suggestions regarding this subject by way of the remark part beneath.

If You Recognize What We Do Right here On TecMint, You Ought to Think about:

TecMint is the quickest rising and most trusted group web site for any form of Linux Articles, Guides and Books on the net. Thousands and thousands of individuals go to TecMint! to look or browse the 1000’s of revealed articles accessible FREELY to all.

If you happen to like what you’re studying, please think about shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful in your by no means ending assist.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments