How Do I Access or Mount Windows/USB NTFS Partition in RHEL/CentOS/Fedora
Sometimes it may happens in some stage, you may have to access data on a Windows partition, USB device or any similar device. Today most of the modern Linux systems automatically recognize and mount any disks.
However, in some occasions where you may required to configure your system manually to mount ntfs partitions on your Linux system. Specially when you are using dual boot operating environment. Fortunately, this process is not so complicated task its just very fairly straight forward.
This article explains you on how to access or mount Windows XP, Vista NTFS or USB filesystem using the ‘mount‘ command in RHEL/CentOS/Fedora systems.
How to Mount Windows NTFS Partition in Linux
First you need to enable EPEL (Extra Packages for Enterprise Linux) Repository. You may refer the article on how to enable EPEL Repository under RHEL, CentOS and Fedora systems.
To mount any NTFS based filesystem, you need to install a tool called NTFS3G. Before heading up for installation let’s understand NTGS3G.
What is NTFS3G
NTFS3G is an open source cross-platform, stable, GPL licensed, POSIX, NTFS R/W driver used in Linux. It provides safe handling of Windows NTFS file systems viz create, remove, rename, move files, directories, hard links, etc.
Once EPEL is installed and enabled, let’s install ntfs-3g package using the below command with root user.
Fuse Install
Next, install and load FUSE driver to mount detected devices with below command. FUSE module is included in the kernel itself in version 2.6.18-164 or newer.
Identify NTFS Partition
Once fuse module is loaded, type below command to find out NTFS Partitions in Linux.
Mount NTFS partition
First create a mount point to mount the NTFS partition.
Simply run the following command to mount the partition. Replace sda1 with your actual partition found.
Once it’s mounted on /mnt/ntfs, you may use regular Linux ls -l command to list the content of mounted filesystem.
If you want to make mount point permanent at the boot time, then simple add the following line at the end of/etc/fstab file. This will remain as permanent.
Umount NTFS Partition
Simply, use the following command to unmount the mounted partition.
No comments:
Post a Comment