网管地带

Self-confidence is considerd the most important asset in one's life
posts - 251, comments - 630, trackbacks - 0, articles - 0
  IT博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

Linux NTFS分区加载

Posted on 2006-03-17 11:09 网管地带 阅读(1479) 评论(2)  编辑 收藏 引用 所属分类: Linux
今天早上上班以后重启电脑就无法进入系统了,也难得去弄了,进入Linux要访问Windows下的NTFS分区,可Redhat内核不支持需要编译内核,网上找了点资料,纪录了编译的过程.
终端里输入
[root@naon root]# uname -a
Linux naon 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
查看内核我用的是Redhat9.0 内核就是划了黄线的内容
www.linux-ntfs.org下载RPM包,联接地址根据你的内核选择就是了
注意:下载的软件包一定要符合Linux版本和CPU的类型,否则安装不上.
[root@naon root]# rpm -i kernel-ntfs-2.4.20-8.i386.rpm
_______________________________________________________________________________
ERROR: This is the wrong RPM.
You have an i686 kernel installed, but this rpm is for an i386 processor.
The instructions on the linux-ntfs website will help you find the correct rpm.
http://linux-ntfs.sourceforge.net/rpm/instructions.html
_______________________________________________________________________________
error: %pre(kernel-ntfs-2.4.20-8) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping kernel-ntfs-2.4.20-8

然后安装RPM包
[root@naon root]#r rpm -i kernel-ntfs-2.4.20-8.i386.rpm
_______________________________________________________________________________
The Linux NTFS RPM has been successfully installed. 
Please read the NTFS FAQ if you want to know how to:
 * Mount an NTFS partition
 * Change the permissions/ownership of a mounted NTFS partition
 * Automatically mount an NTFS partition
FAQ: http://linux-ntfs.sourceforge.net/info/ntfs.html
RPM: http://linux-ntfs.sourceforge.net/rpm/index.html
SRC: http://linux-ntfs.sourceforge.net/rpm/rpmsrc.html
_______________________________________________________________________________

加载NTFS分区
[root@naon root]#mount -t ntfs -o iocharset=gb2312 /dev/hda6 /mnt/win
OK

Feedback

# re: Linux NTFS分区加载  回复  更多评论   

2006-03-19 19:50 by addone
这个linux版本比较旧了,新版的linux系统一般都直接支持ntfs了

# re: Linux NTFS分区加载  回复  更多评论   

2006-03-20 15:39 by jordn
哦,谢谢提醒,加载之后也只能是只读。
只有注册用户登录后才能发表评论。