Chinaunix首页 | 论坛 | 博客
  • 博客访问: 141970
  • 博文数量: 29
  • 博客积分: 2515
  • 博客等级: 少校
  • 技术积分: 340
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-26 14:32
文章分类
文章存档

2009年(28)

2008年(1)

我的朋友

分类: LINUX

2009-03-25 20:36:48

centos5依然不支持ntfs文件系统分区,那么如何挂载ntfs分区呢?
要挂载ntfs分区,centos5必须添加内核插件!!而且你需要从网上下载以下安装包,然后进行安装,可以很好的支持ntfs文件系统分区。
fuse-libs-2.6.5-2_6.0.el5.i386.rpm
fuse-kmdl-2.6.18-8.el5-2.6.5-2_6.0.el5.i686.rpm
fuse-2.6.5-2_6.0.el5.i386.rpm
kernel-module-ntfs-2.6.18-8.1.3.el5-2.1.27-0.rr.10.11.i686.rpm
ntfs-3g-1.417-1.fc6.i386.rpm
从google上搜索下,你会得到更多对你系统分区有意的软件和方法,学习下会对你非常有意义!!
以下是我搜索的Mounting NTFS partitions oncentOS5原文:

Okay, all the steps were tested on my machine so this MUST work. A little bit of theory: mounting ntfs partitions it’s necessary since Fat is only used on USB drives. There are several ways to accomplish this:

  • By updating the kernel

    This option only allows READ.

  • By driver

    Well, this is the option to use. It allows everything, the driver is ntfs-3g, for more information about it, please read the article.

Explained this, it is just a matter of doing it, but if you only download the ntfs-3g in tar.gz you wouldn’t achieve anything because it would ask for the Fuse module. I’ve tried so believe me, also you need more packets, and compiling each of them isn’t a good option. So , it is better to get the rpm packets (centOS works with rpm’s). Also, yum could be used (this would be the best option),but then we have to explain how it works and that’s not the purpose of the post.

Without more delay, here is the procedure & the packets to install are these:

  • # fuse-libs-2.6.5-2_6.0.el5.i386.rpm
  • # fuse-kmdl-2.6.18-8.el5-2.6.5-2_6.0.el5.i686.rpm
  • # fuse-2.6.5-2_6.0.el5.i386.rpm
  • # kernel-module-ntfs-2.6.18-8.1.3.el5-2.1.27-0.rr.10.11.i686.rpm
  • # ntfs-3g-1.417-1.fc6.i386.rpm

This packets are only useful for the standard of centOS, they won’t work for the XEN one.

Also, this is only for kernel 2.6.18-8, what does this means? if my kernel is updated, it won’t have the same numeration from the cited packets, the only that wouldn’t be affected would be ntfs-3g. The fuse rpm’s, fuse-libs,fuse-kmdl and kernel-module-ntfs would change its numeration.

Update-I got the packets for the XEN kernel

Steps:

After downloading the packets, we move to the console.

-We go to the location where we’ve downloaded the file

#cd desktop

-We see what we got there

#ls

ntfs3g-centos5.zip

here we see the zip , we have now to decompress it

#unzip ntfs3g-centos5.zip

If we do another ls , we ‘ll see these files:

#ls
fuse-2.6.5-2_6.0.el5.i386.rpm ntfs-3g-1.417
fuse-kmdl-2.6.18-8.1.3.el5-2.6.5-2_6.0.el5.i686.rpm ntfs-3g-1.417-1.fc6.i386.rpm
fuse-kmdl-2.6.18-8.el5-2.6.5-2_6.0.el5.i686.rpm fuse-libs-2.6.5-2_6.0.el5.i386.rpm ntfs3g-centos5.zip
kernel-module-ntfs-2.6.18-8.1.3.el5-2.1.27-0.rr.10.11.i686.rpm

-We create a folder (in this case; dar), and then we move all the decompressed files in there. DO this graphically , it’s faster. After this , we go to the folder:

#cd dar

Then:

#rpm -Uvh fuse-kmdl-2.6.18-8.el5-2.6.5-2_6.0.el5.i686.rpm

Delete

#rm fuse-kmdl*

And install all the *.rpm using the wildcard “*”.

#rpm -Uvh *.rpm

If you don’t get any error, you can now mount the ntfs partitions, but first you have to create a mounting point and then choose the partition to be mounted (this from console):

We list the partitions:

# fdisk -l

Let’s say, we want to mount /dev/hda5, so we create the mounting point and then we mount it:

# mkdir /mnt/win

# mount -t ntfs /dev/hda5 /mnt/win

 
阅读(2960) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-05-20 19:48:20

http://www.chenbin.us/install-centos-load-ntfs.html

chinaunix网友2009-03-26 11:13:53

能把程序的每一段含义解释解释一下嘛?