Account Links: Cart | Register | Log In

Skip to content

Red Hat Knowledgebase
Red Hat Knowledgebase Search
Article translations:
Currently Being Moderated

如何在命令行下mount一个NTFS分区,并且在/etc/fstab中保存使得能够在启动时分区能被挂载?

Article ID: 11744 - Created on: Jul 22, 2008 6:00 PM - Last Modified:  Jun 7, 2009 11:53 PM

[英文原文] How do I mount an NTFS partition from the command line and save this in /etc/fstab to mount during the boot sequence?

 

如果运行一个红帽企业 Linux 和 Windows 的双系统,而且如果你想在 Linux 下访问 NTFS 驱动器,有一个不被红帽支持但是已经被很好开发的内核模块,这个模块允许只读的访问 NTFS 分区。想了解这个方法,您可以访问 http://linux-ntfs.sourceforge.net/ ,下载和内核版本相关的软件包。 输入如下命令了解你在运行的内核版本:

 


   # uname -r
   2.4.21-20.EL

 

下载相应内核的 RPM 之后,安装 RPM.

 


   # rpm -ivh kernel-ntfs.rpm

 

安装过程会配置所有的项目,使他可以在下次启动的时候能够启动模块。如果需要马上手动引导模块。使用如下命令。

 


   # modprobe ntfs

 

如果模块成功加载,你就可以成功的挂载 NTFS 分区。

 


   # mount -t ntfs /dev/hdb /mnt/ntfs

 

接下来编辑 /etc/fstab 文件,添加如下内容使得 ntfs 分区能够在每次启动的时候被挂载。

 


    /dev/hdb        /mnt/ntfs             ntfs    defaults        0 0

 

Feedback from users like yourself is a critical factor in helping us make the Red Hat Knowledgebase as useful as possible.

More Like This

  • Retrieving data ...