Mount Windows NTFS partition with ntfs-3g under CentOS 6.3

Source: Internet
Author: User

CentOS 6.3 With ntfs-3g mounted Windows NTFS partition by default, CentOS 6.3 does not support Widows NTFS hard disk partition read and write, to the NTFS format
To mount the disk to CentOS 6.3 Under www.2cto.com need to install third-party plug-in ntfs-3g, here we use compile install plug-in. 1. Install the compiler. Otherwise, compilation fails. Yum install gcc or yum-y install gcc automake autoconf libtool make follow the prompts to install by Y completed 2. install ntfs-3gcd/home # enter the/home directory, download the software to this directory wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2011.4.12.tgz # download tar zxvf ntfs-3g_ntfsprogs-2011.4.12.tgz # unzip cd ntfs-3g_ntfsprogs-2011.4.12 # Enter the directory. /configure # compile make # install make install # install cd .. # Back to the upper-level directory rm-r-f ntfs-3g_ntfsprogs * # Delete the installation package 3, view the use of fdisk-l # display Widows NTFS hard disk partition information ############ ######################################## ################ Disk/dev/sda: 160.0 GB, 160041885696 bytes240 heads, 63 sectors/track, 20673 cylindersUnits = cylinders of 15120*512 = 7741440 bytesSector size (logical/physical ): 512 bytes/512 bytesI/O size (minimum/optimal): 512 bytes/512 bytesDisk identifier: 0x18fd18ff Device Boot Start End Blocks Id System/dev/sda1 * 1 5093 38503048 + 7 HPFS/NTFS /Dev/sda2 5094 20673 117784800 f W95 Ext 'd (LBA) /dev/sda5 5094 9357 32234496 7 HPFS/NTFS/dev/sda6 9358 13621 32235520 7 HPFS/NTFS/dev/sda7 13622 17885 32233472 7 HPFS/NTFS/dev/sda8 17885 17899 102400 83 Linux/dev/sda9 17899 18731 6291456 83 Linux/dev/sda10 18731 19009 2097152 82 Linux swap/Solaris/dev/sda11 19009 19286 2097152 83 Linux/dev/sda12 19287 20673 83 linux #################### ######################################## ####### The above information shows my Widows NTFS hard disk partition information, A total of 160 GB, four NTFS partitions 4, Mount partitions, mount the/dev/sda1 partition to the/mnt/winC/dev/sda5 partition and mount it to the/mnt/winD/dev/sda6 partition to the/mnt/winE/dev/sda7 partition. mount the partition to/mnt/winF to enter the/mnt directory, new winC winD winE winF four mount directories cd/mntmkdir winC winD winE winFmount-t ntfs-3g/dev/sda1/mnt/winC # mount-t ntfs-3g/dev/sda5/mnt/winDmount -t ntfs-3g/dev/sda6/mnt/winEmount-t ntfs-3g/dev/sd A7/mnt/winF partition mounting is complete. Now you can view the corresponding folder under the/mnt directory, that is, if you want to unmount the partition of your mobile hard disk, you can run the following command umount/dev/sda1 # uninstall umount/dev/sda5umount/dev/sda6umount/dev/sda75, edit the/etc/fstab file. Cp/etc/fstab/etc/fstabbak # Back up vi/etc/fstab before changing it # edit and use the insert command to add the following information at the end, mount Disk/dev/sda1/mnt/winC ntfs-3g defaults 0 0/dev/sda5/mnt/winD ntfs-3g defaults 0 0/dev/sda6/mnt/winE ntfs-3g defaults 0 0/dev/sda7/mnt/winF ntfs-3g defaults 0 0 execute the ESC command to exit.: Wq! Save, exit now as long as you restart the machine, will automatically mount the mobile hard disk to cancel the Mount problem: umount the following prompt: [root@rekfan.com/] # umount/dev/sda1umount:/mnt/upan: device is busy. (In some cases useful info about processes that use the device is found by lsof (8) or fuser (1) solution: [root@rekfan.com/] # lsof-w/mnt/upanCOMMAND pid user fd type device size/off node NAMEbash 31761 root cwd DIR 8, 18 8192 2316326/mnt/upan/rekfan.com _ 120526 [root@rekfan.com/] # Use lso F-w/mnt/upan: The Command window is in the/mnt/upan/rekfan.com _ 120526 directory. Close the window or exit the Mount directory, you can use umount to safely exit the mounted device!

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.