在 CentOS 5.2 上挂载 NTFS 文件系统 [英] Mounting NTFS filesystem on CentOS 5.2

查看:26
本文介绍了在 CentOS 5.2 上挂载 NTFS 文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 CentOS 5.2 中安装一些内部和外部 NTFS 驱动器,最好在启动时自动安装.不管它是读/写还是只读,但如果它是安全的,读/写将是首选.

I want to mount some internal and external NTFS drives in CentOS 5.2, preferably automatically upon boot-up. Doesn't matter if it's read/write or read-only, but read/write would be preferred, if it's safe.

感谢所有答案,我在下面总结了它们=)

Thanks for all answers, I summarized them below =)

推荐答案

回答我自己的问题:PostMan 和 mgb 将我引向了正确的道路,但他们的回答并未包含完整的解决方案.

To answer my own question: PostMan and mgb led me to the right path, but their answers did not contain complete solution.

注意:关于这个问题的简短手册/wiki 在这里:http://wiki.centos.org/TipsAndTricks/NTFSPartitions

Note: A short manual/wiki on this question is here: http://wiki.centos.org/TipsAndTricks/NTFSPartitions

所以,我正在使用带有最新更新的全新、裸机安装的 CentOS 5.2.首先,我运行了 su 命令以避免任何权限问题.

So, I am using a fresh, bare install of CentOS 5.2 with latest updates. First of all, I ran the su command to avoid any permission issues.

我为几个外部 NTFS 驱动器创建了挂载点:

I created mount points for a couple of external NTFS drives:

mkdir /mnt/iomega80
mkdir /mnt/iogear250

我必须使用 fdisk 命令,但它不在我的系统中.这是安装它的内容:

I had to use the fdisk command, but it wasn't in my system. Here's what installs it:

yum install util-linux

然后我运行 /sbin/fdisk -l 并找到设备名称:

Then I ran /sbin/fdisk -l and found the device names:

Disk /dev/sdc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
**/dev/sdc1**   *           1       30401   244196001    7  HPFS/NTFS

Disk /dev/sdd: 82.3 GB, 82348278272 bytes
255 heads, 63 sectors/track, 10011 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
**/dev/sdd1**   *           1       10011    80413326    7  HPFS/NTFS

对我来说,它们是 /dev/sdc1/dev/sdd1.

For me, they are /dev/sdc1 and /dev/sdd1.

我必须安装 NTFS-3G,这是一个在 CentOS 上启用 NTFS 支持的软件包.要安装 NTFS-3G,我首先必须在 YUM 存储库列表中包含 RPMFORGE.

I had to install NTFS-3G, a package that enables NTFS support on CentOS. To install NTFS-3G, I first had to include RPMFORGE in YUM repository list.

为了在 YUM 存储库列表中包含 RPMFORGE,我使用了以下说明:http://rpmrepo.org/RPMforge/Using.对于我的系统,我必须运行的两个命令是:

To include RPMFORGE in YUM repository list, I used these instructions: http://rpmrepo.org/RPMforge/Using. For my system, the two commands I had to run were:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -Uhv rpmforge-release-0.3.6-1.el5.rf.i386.rpm 

最后,我使用这个 YUM 命令安装了 NTFS-3G:

Finally, I installed NTFS-3G using this YUM command:

yum install fuse fuse-ntfs-3g dkms dkms-fuse

最后,我可以使用 mount 命令挂载文件系统了:

At last, I could use the mount command to mount the filesystems:

mount -t ntfs-3g /dev/sdc1 /mnt/iogear250
mount -t ntfs-3g /dev/sdd1 /mnt/iomega80

通过将这两行添加到 /etc/fstab,就像之前建议的答案一样,我在启动时安装了驱动器:

By adding these two lines to /etc/fstab, like previous answers suggested, I got the drives to mount upon boot-up:

/dev/sdc1               /mnt/iogear250          ntfs-3g rw,umask=0000,defaults 0 0
/dev/sdd1               /mnt/iomega80           ntfs-3g rw,umask=0000,defaults 0 0

这篇关于在 CentOS 5.2 上挂载 NTFS 文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆