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

问题描述

限时删除!!

我想在CentOS 5.2中安装一些内部和外部NTFS驱动器,最好在启动时自动安装。



编辑:感谢所有的答案,我总结了他们下面=)

解决方案

回答我自己的问题:PostMan和mgb导致我的路径正确,包含完整的解决方案。



注意:有关此问题的简短手册/ wiki在这里:



所以,我使用一个全新的,的CentOS 5.2与最新更新。首先,我运行 su 命令以避免任何权限问题。



的外部NTFS驱动器:

  mkdir / mnt / iomega80 
mkdir / mnt / iogear250

我不得不使用fdisk命令,但它不在我的系统。以下是安装的方法:

  yum install util-linux 

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



磁盘/ dev / sdc:250.0 GB,250059350016字节
255磁头,63扇区/磁道,30401气缸
单位= 16065 * 512 = 8225280字节

设备引导开始结束块标识系统
** / dev / sdc1 ** * 1 30401 244196001 7 HPFS / NTFS

磁盘/ dev / sdd:82.3 GB,82348278272字节
255磁头,63扇区/磁道,10011磁柱
单位= 16065 * 512 = 8225280字节的柱面

设备引导开始结束块系统
** / dev / sdd1 ** * 1 10011 80413326 7 HPFS / NTFS

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



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



要在YUM存储库列表中包含RPMFORGE,我使用了以下说明:。对于我的系统,我不得不运行的两个命令是:

  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


<$ p $

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

最后,我可以使用mount命令安装文件系统:

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

这两行到 / etc / fstab ,像以前的答案建议,我得到的驱动器挂载在启动:

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


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.

Edit: Thanks for all answers, I summarized them below =)

解决方案

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

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

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.

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

mkdir /mnt/iomega80
mkdir /mnt/iogear250

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

yum install util-linux

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

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

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.

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

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

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

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

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文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 18:13