感谢支持
我们一直在努力

linux平台支持ntfs文件系统的实现

How to access NTFS from Linux


一、关于RedHat and Fedora支持 的ntfs软件包


Version

Level of Support


Fedora 6

Support provided by Fedora Extras. See notes below..


Fedora 5

Full support.


Fedora 4

Full support.


Fedora 3

Full support.


Fedora 2

Full support.


Fedora 1

Full support.


RedHat Enterprise 5

Full support.


RedHat Enterprise 4

Full support.


RedHat Enterprise 3

Full support.


RedHat Enterprise 2

No support. See notes below.


RedHat 9

Full support.


RedHat 8

Full support.


RedHat 7.3

Full support.


RedHat 7.2, or older

No support. See notes below.

二、rpm软件包下载


下载注意你的是多处理器还是单处理器,然后选择对应的软件包下载。(i686-smp为多处理器,i686为单处理器)


There are NTFS RPMs for almost every kernel since RedHat 7.3 came out.


Support Provided by Fedora


Fedora Core 6 (Zod)

There is now NTFS support in the Extras repository. There are many sites showing how to install this support. Two such sites are:


Personal Fedora Core 6 Installation Guide

Fedora Core 6 Tips & Tricks

Full Support


There are NTFS RPMs for 32-bit computers for every kernel version of the following distros:


Fedora Core 5 (Bordeaux)

Fedora Core 4 (Stentz)

Fedora Core 3 (Heidelberg)

Fedora Core 2 (Tettnang)

Fedora Core 1 (Yarrow)

RedHat Enterprise 5 (Tikanga)

RedHat Enterprise 4 (Nahant)

RedHat Enterprise 3 (Taroon)

RedHat 9 (Shrike)

RedHat 8 (Psyche)

RedHat 7.3 (Valhalla)

Partial Support


64-bit Contributed NTFS RPMs

Fedora Core 4 – Linuxant Kernels

Fedora Core 3 – Linuxant Kernels

Fedora Core 6 (test)

Fedora Core 6 (dev)

No Support


RedHat Enterprise 2 (or older)

RedHat 7.2 (or older)

Source Code


The NTFS RPMs are build from the official RedHat / Fedora kernel source RPM. For the sake of convenience, they are available for download at the end of the relevant download page.


To find out how the RPMs were created, see the ‘Build Your Own’-section.

三,安装和配置


大家可以使用 ‘whichrpm’这个脚本来测试那个软件包是和你的系统。


1、安装:


rpm -ihv kernel-ntfs-2.4.18-14.i686.rpm


Preparing… ############################### [100%]

1:kernel-ntfs ############################### [100%]


2、导入内核模式:


/sbin/modprobe ntfs

3、使用dmesg查看内核日志:


dmesg | grep NTFS

NTFS driver v1.1.22 [Flags: R/O MODULE]


4、检查内核现在是否支持ntfs文件系统:


cat /proc/filesystems


nodev rootfs

nodev bdev

nodev proc

nodev sockfs

nodev tmpfs

nodev shm

nodev pipefs

ext3

ext2

nodev ramfs

nodev devpts

ntfs

5、挂载ntfs文件系统:


/sbin/fdisk -l


Disk /dev/hda: 64 heads, 63 sectors, 4465 cylinders

Units = cylinders of 4032 * 512 bytes


Device Boot Start End Blocks Id System

/dev/hda1 1 2125 4283968+ 07 NTFS/HPFS

/dev/hda2 2126 19851 35735616 0f Win95 Ext’d (LBA)

/dev/hda5 * 2126 4209 4201312+ 83 Linux

/dev/hda6 4210 4465 516064+ 82 Linux swap



mkdir /mnt/windows

mount /dev/hda1 /mnt/windows -t ntfs -r -o umask=0222

ls -l /mnt/windows



-r-xr–r– 1 root root 9719 Aug 24 1996 ansi.sys

-r-xr–r– 1 root root 15252 Aug 24 1996 attrib.exe

-r-xr–r– 1 root root 28096 Aug 24 1996 chkdsk.exe

-r-xr–r– 1 root root 5175 Aug 24 1996 choice.com


6、卸载软件包:


查看安装那个软件包:rpm -qa | grep -i ntfs

kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2


卸载对应的软件包

rpm -e kernel-module-ntfs-2.6.9-1.667smp-2.1.20-0.fc.1.2

赞(0) 打赏
转载请注明出处:服务器评测 » linux平台支持ntfs文件系统的实现
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏