博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
加载ntfs分区(通过加载支持ntfs内核补丁的方法)
阅读量:2455 次
发布时间:2019-05-10

本文共 2982 字,大约阅读时间需要 9 分钟。

通过加载支持ntfs内核补丁的方法.

1,了解系统信息:

[root@tonykorn97 etc]# uname -a

Linux tonykorn97 2.6.9-11.EL #1 Fri May 20 18:17:57 EDT 2005 i686 i686 i386 GNU/Linux
[root@tonykorn97 etc]# fdisk -l
Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 637 5116671 7 HPFS/NTFS
/dev/hda2 638 7159 52387965 f W95 Ext'd (LBA)
/dev/hda3 7160 9834 21486937+ 83 Linux
/dev/hda4 9835 9964 1044225 82 Linux swap
/dev/hda5 638 1912 10241406 7 HPFS/NTFS
/dev/hda6 1913 4462 20482843+ b W95 FAT32
/dev/hda7 4463 7159 21663621 b W95 FAT32
[root@tonykorn97 etc]# df -lh
Filesystem 容量 已用 可用 已用% 挂载点
/dev/hda3 21G 3.2G 17G 17% /
none 122M 0 122M 0% /dev/shm
/dev/hda6 20G 19G 623M 97% /mnt/e
/dev/hda7 21G 15G 6.3G 70% /mnt/f
[root@tonykorn97 etc]#

2,下载内核补丁,这个是公司的电脑,系统为redhat as 4.0.

下载地址是:http://www.linux-ntfs.org/content/view/135/71/

我下载的文件是:kernel-module-ntfs-2.6.9-11.EL-2.1.20-0.rr.6.0.i686.rpm

3,安装

[root@tonykorn97 Desktop]# rpm -iv kernel-module-ntfs-2.6.9-11.EL-2.1.20-0.rr.6.0.i686.rpm

Preparing packages for installation...
kernel-module-ntfs-2.6.9-11.EL-2.1.20-0.rr.6.0
[root@tonykorn97 Desktop]#

4,加载ntfs分区

[root@tonykorn97 mnt]# mount -t ntfs -o nls=utf8,umask=000 /dev/hda1 /mnt/c

[root@tonykorn97 mnt]# cd c
[root@tonykorn97 c]# ls
arcldr.exe Documents and Settings NTDETECT.COM System Volume Information
arcsetup.exe Downloads ntldr temp
AUTOEXEC.BAT dwnSetup pagefile.sys tmuninst.ini
bootfont.bin Inetpub PDOXUSRS.NET vga.log
boot.ini informix Program Files WINNT
chipset.log IO.SYS RECYCLER
cmd.txt MSDOS.SYS response.txt
CONFIG.SYS net.log sound.log

另,用上面的方法不能显示中文,修改为:

[root@tonykorn97 mnt]# mount -t ntfs -o iocharset=gb2312,umask=000 /dev/hda5 /mnt/d

[root@tonykorn97 mnt]# cd d
[root@tonykorn97 d]# ls
Acrobat3 ftp music router temp xntp-doc 工作资料 问题处理目录
Config.Msi landesk管理套件系统解决方案.doc Program Files sniffer TSM 个人文件 应用工具 领带打法(2).doc
DownLoads landesk补丁管理解决方案.doc RECYCLER System Volume Information WUTemp 名词解释.txt 服务器

5,修改/etc/fstab文件

# This file is edited by fstab-sync - see 'man fstab-sync' for details

#This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/1 / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-hda4 swap swap defaults 0 0
/dev/hda6 /mnt/e vfat rw,exec,umask=0,iocharset=gb2312 0 0
/dev/hda7 /mnt/f vfat rw,exec,umask=0,iocharset=gb2312 0 0
/dev/hda1 /mnt/c ntfs ro,exec,umask=0,iocharset=gb2312 0 0
/dev/hda5 /mnt/d ntfs ro,exec,umask=0,iocharset=gb2312 0 0
/dev/hdc /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-245356/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-245356/

你可能感兴趣的文章
桌面应用程序 架构_关于该架构的全部内容:探索不同的架构模式以及如何在您的应用程序中使用它们
查看>>
自学区块链应用开发_我用来自学区块链开发的资源
查看>>
测试程序使用什么语言编写好_为未来的自我编写测试如何使您的测试更好
查看>>
浙江省高考志愿填报志愿文档_成为freeCodeCamp的志愿者编辑的一年如何改变了我的生活
查看>>
批量删除推文_如何批量(免费)删除过去的推文,以及如何摆脱过去的自我
查看>>
Elasticsearch初学者教程
查看>>
初学者应该学c++与c#_面向初学者的完整C#课程
查看>>
vue.js快速入门_Vue.js快速介绍
查看>>
web前端的发展简史_前端框架简史
查看>>
this 上下文_当“ this”失去上下文时该怎么办
查看>>
kubernetes 介绍_Kubernetes的友好介绍
查看>>
bug探索_探索一流功能的力量
查看>>
如何避免您的网站在Twitter和Facebook上的可耻外观
查看>>
导入样机_如何开始构建Android应用程序:创建样机,UI和XML布局
查看>>
最先进的深度学习:Mask R-CNN简介
查看>>
css参考手册css3手册_CSS手册:面向开发人员CSS便捷指南
查看>>
react 中国际化_从头到尾如何在React中设置国际化
查看>>
自学真的很难成才吗_对于自学成才的开发人员而言真正有用的职业资源
查看>>
bulma.css_在5分钟内学习Bulma CSS-初学者教程
查看>>
如何快速设置您的ES6环境
查看>>