Mount NTFS hard drives to CentOS

Source: Internet
Author: User
Tags ide hard drive
CentOS want to access NTFS partition, now the common method is to use NTFS-3G or kernel module. One, use NTFS-3G official source code compilation and installation method: NTFS-3G download page: http://www.tuxera.com/community/ntfs-3g-download/ Installation steps: tarzxvf CentOS to access the NTFS partition, the common method is to use the NTFS-3G or kernel module. One, use NTFS-3G official source code compilation and installation method: NTFS-3G download page: http://www.tuxera.com/community/ntfs-3g-download/ Installation procedure: tar zxvf ntfs-3g_ntfsprogs-2012.1.15.tgzcd ntfs-3g_ntfsprogs-2012.1.15. /configuremakemake install 2. mount the NTFS file SYSTEM. assume that your NTFS file SYSTEM is/dev/sda1 and you will attach it to/mnt/Windows/SYSTEM. perform the following steps. 1. create a mount point. (It is generally recommended to be in the mnt directory) mkdir/mnt/Windows/SYSTEM 2. mount NTFS partition: mount-t NTFS-3G/dev/sda1/mnt/Windows/SYSTEM Note: here sda1 refers to the first partition of the SATA or SCSI hard disk, if it is an old-fashioned IDE hard drive, it will be hda1. use fdisk-l to view details. For example, my lab machine: [root @ CentOS ~] # Fdisk-l Disk/dev/sda: 160.0 GB, 160041885696 bytes255 heads, 63 sectors/track, 19457 cylindersUnits = cylinders of 16065*512 = 8225280 bytesSector size (logical/physical ): 512 bytes/512 bytesI/O size (minimum/optimal): 512 bytes/512 bytesDisk identifier: 0xf0b1ebb0 Device Boot Start End Blocks Id System/dev/sda1 * 1 2550 20482843 + 7 HPFS/NTFS/dev/sda2 2551 19457 135805447 f W95 Ext 'd (LBA) /dev/sda5 2551 5100 20482843 + 7 HPFS/NTFS/dev/sda6 5101 12749 61440561 7 HPFS/NTFS/dev/sda7 12750 13532 6289416 B W95 FAT32/dev/sda8 13533 13558 204800 83 Linux/dev/sda9 13558 17128 28672000 83 Linux/dev/sda10 17128 18403 10240000 83 Linux/dev/sda11 18403 19330 7446528 83 Linux/dev/sda12 19330 19457 82 Linux swap/ solaris 3. if you want to automatically mount the NTFS partition when the system starts, edit the vim/etc/fstab file and add the following content: Read-only mounting: /dev/sda1/mnt/Windows/SYSTEM NTFS-3G ro, umask = 0222, defaults 0 0 read/write mounting:/dev/sda1/mnt/Windows/SYSTEM NTFS-3G rw, umask = 0000, defaults 0 0 OR:/dev/sda1/mnt/Windows/SYSTEM NTFS-3G defaults 0 0 if my/etc/fstab file is as follows: #/etc/fstab # Created by anaconda on Sun Apr 8 11:24:36 2012 # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab (5), findfs (8), mount (8) and/or blkid (8) for more info # UUID = users/ext4 defaults 1 1 UUID = users/boot ext4 defaults 1 2 UUID = users/home ext4 defaults 1 2 UUID = users/usr ext4 defaults 1 2 UUID = e4fa0a42-8f80-4749-86b6-61ba13830ec6 swap defaults 0 0 tmpfs/dev/shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0/dev/sda1/mnt/Windows/SYSTEM NTFS-3G rw, umask = 0000, defaults 0 0/dev/sda5/mnt/Windows/SoftWare NTFS-3G rw, umask = 0000, defaults 0 0/dev/sda6/mnt/Windows/DivineRapier NTFS-3G rw, umask = 0000, defaults 0 0
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.