How to read and write ntfs disk devices in CentOS 6.4

Source: Internet
Author: User

I am using dual-system Win7 and CentOS6.4 first. Hard Disks in win7 cannot be identified in CentOS. However, during man mount, the-t parameter has the ntfs option. However, an error is always prompted during mounting. Mount-t ntfs/dev/sda1/mediamount: unknown filesystem type 'ntfs 'found that CentOS by default is not to install ntfs Format File System driver files. We can install a ntfs-3g to enable CentOS to support file systems in ntfs format. Download a ntfs-3g of the latest stable version. Download ntfs-3g_ntfsprogs-2013.1.13.tgz free at http://linux.linuxidc.com/user name and password are www.linuxidc.com /2013 documents/July/1/CentOS 6.4 can read and write ntfs disk device method ← to download location, # tar-xzf ntfs-3g_ntfsprogs-2013.1.13.tgz # cd ntfs-3g_ntfsprogs-2013.1.13 #. /configure # make installntfs-3g but this mount method is not, mount-t ntfs/dev/sda1/media but mount-t ntfs-3g /Dev/sda1/media. It feels a bit strange. If you want to enable automatic mounting upon startup, you can use the/etc/fstab file. First, use fdisk-l to view information about all partitions. Device Boot Start End Blocks Id System/dev/sda1 * 1 6528 52436128 + 7 HPFS/NTFS/dev/sda2 6529 16972 83891430 7 HPFS/NTFS/dev/sda3 16973 27416 83891430 7 HPFS /NTFS/dev/sda4 27417 38914 92350464 f W95 Ext 'd (LBA) /dev/sda5 27417 33791 51200000 7 HPFS/NTFS/dev/sda6 33791 34966 9437184 82 Linux swap/Solaris/dev/sda7 34966 35004 307200 83 Linux/dev/sda8 35004 38914 83 detected in Linux: sda1, sda2, sda3, and sd All a5 files are ntfs and can be mounted as needed. The format of mounting a device to/etc/fstal is as follows. The format is device Mount directory file format default 0 0. For example, if I want to mount/dev/sdb1 to/media/ntfs, we first check/media/ntfs, there is no new directory, otherwise, the following content will fail to be added to/etc/fstab. (If a corresponding Mount directory exists, back up the previous file and change it .) /Dev/sdb1/media/ntfs defaults 0 0 save the file and restart the system.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.