On-mount NTFS partition under CENTOS6 and its problem-handling method

Source: Internet
Author: User
Tags centos

CentOS 6.3 Use NTFS-3G to mount Windows NTFS partitions
By default, CentOS 6.3 does not support widows NTFS hard disk partition read and write, want to mount NTFS-formatted disks under CentOS 6.3
Need to install a third party plug-in ntfs-3g, here we use the compile installation plug-in.
Download Address: http://www.tuxera.com/community/ntfs-3g-download/
Before installation, confirm that the system time is correct, or you will not be able to install ntfs-3g.

1, install the compiler, otherwise it will not compile successfully.
Yum Install GCC
Follow the prompts to press Y to complete the installation
2. Installation ntfs-3g
Cd/home #进入/home directory, download the software to this directory
wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgz #下载
Tar zxvf ntfs-3g_ntfsprogs-2013.1.13.tgz #解压
CD ntfs-3g_ntfsprogs-2013.1.13 #进入目录
./configure #编译
Make #安装
Make install #安装
Cd.. #返回上一级目录
Rm-r-F ntfs-3g_ntfsprogs* #删除安装程序包
3, view the use
FDISK-L #显示Widows NTFS hard disk partition information
#####################################################################
disk/dev/sda:160.0 GB, 160041885696 bytes
Heads, Sectors/track, 20673 cylinders
Units = Cylinders of 15120 * 7741440 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk 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 Linux
/DEV/SDA9 17899 18731 6291456 Linux
/DEV/SDA10 18731 19009 2097152 Linux Swap/solaris
/dev/sda11 19009 19286 2097152 Linux
/dev/sda12 19287 20673 10484736 Linux
###################################################################
The above information shows my widows NTFS hard disk partition information, a total of 160G, four NTFS partitions
4, mount the partition, below we put
/DEV/SDA1 partitions mounted to/mnt/winc
/DEV/SDA5 partitions mounted to/mnt/wind
/DEV/SDA6 partitions mounted to/mnt/wine
/DEV/SDA7 partitions mounted to/mnt/winf
Enter/mnt directory, new Winc wind WinE winf four mount directory
Cd/mnt
mkdir winc Wind WinE winf
Mount-t Ntfs-3g/dev/sda1/mnt/winc #挂载
Mount-t Ntfs-3g/dev/sda5/mnt/wind
Mount-t Ntfs-3g/dev/sda6/mnt/wine
Mount-t Ntfs-3g/dev/sda7/mnt/winf
Partition mount complete, you can now go to the/MNT directory to see the corresponding folder, that is, you move the hard disk partition
If you want to uninstall, you can use the following command
UMOUNT/DEV/SDA1 #卸载
Umount/dev/sda5
Umount/dev/sda6
Umount/dev/sda7
5, if you want the system to boot automatically mounted mobile hard disk, edit/etc/fstab file.
Cp/etc/fstab/etc/fstabbak #更改之前先备份
Vi/etc/fstab #编辑
With the Insert command, add the following information at the end to mount the disk in read-write mode
I key input
/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
Perform the ESC command to exit.
: wq! Save, exit
Now, just reboot the machine and mount the removable hard drive automatically.
To remove a mount issue:
The following prompts appear when Umount:
[Root@rekfan.com/]# umount/dev/sda1
Umount:/mnt/upan:device is busy.
(In some cases useful info about processes which use
The device is found by lsof (8) or fuser (1))
Workaround:
[Root@rekfan.com/]# lsof-w/mnt/upan
COMMAND PID USER FD TYPE DEVICE size/off NODE NAME
Bash 31761 root cwd DIR 8,18 8192 2316326/mnt/upan/rekfan.com_120526
[Root@rekfan.com/]#
Using Lsof-w/mnt/upan can be seen, there is a command window on the/mnt/upan/rekfan.com_120526 directory, close the window, or exit this mount directory, and then use the Umount can safely exit the mounted device!


mount NTFS partition problems

. First download the rpm file from the following address:

http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

2. Through the FAT32 file system of mobile media, such as U disk, the above downloaded files copied to the system, directly double-click the installation.

3. Then install on the command line:

#yum Install fuse-ntfs-3g

All of the above is done under root authority, if the third step is unsuccessful, you can first #yum update, and then do the third step.


you will be prompted: Mount:unknown filesystem type ' NTFS ' and I am installing a Windows 7+centos dual system that requires mounting the NTFS partition under win.

Because there are 32-bit and 64-bit systems to the difference, it is divided into two parts:

Part A

After the wiki solution, the following is the original:

1. Open the terminal window with the root account.
2. Download Rpmforge for CentOS 6 to your system:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
3. Now install the Rpmforge for CentOS 6:
RPM-UVH http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
4. Just install/update the package fuse-ntfs-3g:
# Yum Update fuse-ntfs-3g
5. Mount your units:
# mount-a

Part B

The steps above are for 64-bit systems, and I have a 32-bit system installed, and the steps I take are:

1. First download the rpm file from the following address:

http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

2. Through the FAT32 file system of mobile media, such as U disk, the above downloaded files copied to the system, directly double-click the installation.

3. Then install on the command line:

#yum Install fuse-ntfs-3g

All of the above is done under root authority, if the third step is unsuccessful, you can first #yum update, and then do the third step.

At this point, you can mount the nffs partition normally.

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.