CentOS6.4 method for reading and writing ntfs disk devices

Source: Internet
Author: User
CentOS6.4 allows you to read and write ntfs disk devices. first, I used dual-system win7 and CentOS6.4. Hard disks in win7 cannot be identified in CentOS. However, during manmount, The-t parameter contains the ntfs option. However, an error is always prompted during mounting. Mount-tntfs/... CentOS6.4 can read and write ntfs disk devices. I first use dual-system win7 and CentOS6.4. 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. Go http://www.tuxera.com/community/ntfs-3g-download/ The website downloads a latest stable version of the NTFS-3G. I downloaded a ntfs-3g_ntfsprogs-2013.1.13.tgz to the download location, [html] # 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. [Html] 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 linux found s Da1, sda2, sda3, and sda5 are all ntfs. you can mount them as needed. The format of mounting a device to/etc/fstal is as follows. [Plain] 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 .) [Plain]/dev/sdb1/media/ntfs defaults 0 0 save the file and restart the system.
Related Article

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.