Mount and Access NTFS Partition in RHEL
How to enable NTFS support on CentOS Linux version 5 or 6?
How do I mount ntfs partition under RHEL 5 or 6?
First, you need to install EPEL repo as described here. The following command will turn in EPEL repo on RHEL / CentOS version 6.x:
# cd /tmp
#wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
#rpm -ivh epel-release-6-5.noarch.rpm
NTFS-3G
NTFS-3G
is a stable, open source, GPL licensed, POSIX, read/write NTFS driver
for Linux. It provides safe handling of the Windows XP, Windows Server
2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7
NTFS file systems.
How Do I Install NTFS-3G?
# yum install ntfs-3g* -y
How Do I Find Out NTFS Partition Name?
Simply type the following command:# fdisk -l /dev/sda
sample ouput:
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xf0000000 Device Boot Start End Blocks Id System /dev/sda1 * 1 13 102400 7 HPFS/NTFS Partition 1 does not end on cylinder boundary. /dev/sda2 14 60802 488281089 5 Extended /dev/sda5 14 59767 479970304 83 Linux /dev/sda6 59767 60802 8309760 82 Linux swap / Solaris
How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?
First, load the fuse driver, enter:# modprobe fuse
Create a mount point, enter:
# mkdir /mnt/ntfs
To mount the ntfs partition, enter:
# mount -t ntfs-3g /dev/sda1 /mnt/ntfs
You can use regular Unix commands to copy or access the files:
# df -h
# mount
# cd /mnt/ntfs
# cp foo /tmp
How Do I Unmount NTFS Partition?
Type the following command:# umount /mnt/ntfs
No comments:
Post a Comment