Вы находитесь на странице: 1из 3

http://www.cyberciti.

biz/faq/redhat-fedora-enable-ntfs3g-support/ RHEL / CentOS Linux: Mount and Access NTFS Partition by nixCraft on September 5, 2011 19 comments LAST UPDATED September 5, 2011 in CentOS, File system, RedHat and Friends How to enable NTFS support on CentOS Linux version 5 or 6? How do I mount ntfs p artition under RHEL 5 or 6? First, you need to install EPEL repo as described here. The following command wi ll 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.noar ch.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 fo r Linux. It provides safe handling of the Windows XP, Windows Server 2003, Windo ws 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems. NTFS-3G can create, remove, rename, move files, directories, hard links, and str eams; it can read and write normal and transparently compressed files, including streams and sparse files; it can handle special files like symbolic links, devi ces, and FIFOs, ACL, extended attributes; moreover it provides full file access right and ownership support. How Do I Install NTFS-3G? Type the following command as root user: # yum install ntfs-3g Sample outputs: yum install ntfs-3g Loaded plugins: product-id, rhnplugin, subscription-manager Updating Red Hat repositories. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package ntfs-3g.x86_64 2:2011.4.12-3.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================== Package Arch Version Repository Size =============================================================================== Installing: ntfs-3g x86_64 2:2011.4.12-3.el6 epel 247 k Transaction Summary =============================================================================== Install 1 Package(s) Total download size: 247 k Installed size: 624 k Is this ok [y/N]: How Do I Find Out NTFS Partition Name? Simply type the following command: # fdisk -l /dev/sda # fdisk -l /dev/sdb Sample outputs:

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 /dev/sda1 * 1 13 102400 7 Partition 1 does not end on cylinder boundary. /dev/sda2 14 60802 488281089 5 /dev/sda5 14 59767 479970304 83 /dev/sda6 59767 60802 8309760 82 How Do I Mount /dev/sda1 NTFS Partition at /mnt/ntfs?

System HPFS/NTFS Extended Linux Linux swap / Solaris

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

http://www.linuxquestions.org/questions/linux-newbie-8/error-mounting-mount-unkn own-filesystem-type-%27ntfs%27-926355/ ntfs is a windows specific file system that is not activated as default on linux systems. Most likely you can load a kernel module that supports it. Try this as root: Code: modprobe ntfs If this works without error, enter this command: Code: cat /proc/filesystems If the list contains ntfs, you are done. Next you will want to learn to load tha t module permanently.

------------------------------------------------------------

Вам также может понравиться