分类: LINUX
2009-03-25 20:36:48
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:
This option only allows READ.
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:
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