CentOS下如何挂载NTFS分区

来源:互联网 发布:数据库开发和dba 编辑:程序博客网 时间:2024/05/19 02:02

一、下载ntfs-3g

下载地址:http://www.tuxera.com/community/ntfs-3g-download/

wget http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgz

安装

Linux操作系统:大多数分布包括默认情况下,使用NTFS-3G。请使用,除非它是一个老版本如果你想从源代码安装NTFS-3G,那么请确保您已经安装了基本的开发工具(gcc编译器,libc-dev本库)。然后键入:

./configure
make
make install # or 'sudo make install' if you aren't root

非Linux:请看到操作系统特定的安装和上面的源码包。

用法如下:

mount -t ntfs-3g /dev/sda1 /mnt/windows

如果在安装过程中没有错误,那么NTFS卷可以安装在读写模式下为大家如下。如果它已经被安装,替换/ dev/sda1和/ mnt / windows命令,如果需要卸载卷。

英文版:

Linux: Most distributions include and use NTFS-3G by default. Please use that one unless it’s anold version. If you wish to install NTFS-3G from the source code then make sure you have installed the basic development tools (gcc compiler, libc-dev libraries). Then type:

./configure
make
make install
 # or 'sudo make install' if you aren't root

Non-Linux: Please see the OS specific installation and source packages above.

Usage

If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.

mount -t ntfs-3g /dev/sda1 /mnt/windows

Please see the NTFS-3G Manual for more options and examples.

You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0