免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 963 | 回复: 0
打印 上一主题 下一主题

CentOS 5.2 挂载NTFS分区方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-10-08 19:27 |只看该作者 |倒序浏览
1.uname -r 查看当前的linux内核版本.

[root@localhost Desktop]# uname -r
2.6.18-53.1.19.el5

2.去http://www.linux-ntfs.org/下载与内核版本相同的ntfs补丁.

3.
安装
补丁:kernel-module-ntfs-2.6.18-53.1.19.el5-2.1.27-0.rr.10.11.i686.rpm

[root@localhost Desktop]# rpm -Uv kernel-module-ntfs-2.6.18-53.1.14.el5-2.1.27-0.rr.10.11.i686.rpm
Preparing packages for installation...
package kernel-module-ntfs-2.6.18-53.1.14.el5-2.1.27-0.rr.10.11 is already installed

4.使用fdisk -l查看硬盘的分区信息.
本地测试如下:
[root@localhost ~]# uname -r
2.6.18-92.el5
[root@localhost ~]# cd /home
[root@localhost home]# ls
domains
kernel-module-ntfs-2.6.18-92.el5-2.1.27-0.rr.10.11.x86_64.rpm
linuxqq-v1.0-preview2.i386.rpm
[root@localhost home]# rpm -Uv kernel-module-ntfs-2.6.18-92.el5-2.1.27-0.rr.10.11.x86_64.rpm
Preparing packages for installation...
kernel-module-ntfs-2.6.18-92.el5-2.1.27-0.rr.10.11
[root@localhost home]# mkdir /mnt/250G
[root@localhost home]# fdisk -l
Disk /dev/hdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hdc2            1276       19457   146046915    f  W95 Ext'd (LBA)
/dev/hdc5            8925       16709    62532981    7  HPFS/NTFS
/dev/hdc6           16710       19457    22073278+   7  HPFS/NTFS
/dev/hdc7            1276        1288      104359+  83  Linux
/dev/hdc8            1289        8924    61336138+  8e  Linux LVM
Partition table entries are not in disk order
Disk /dev/hdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1        1275    10241406    c  W95 FAT32 (LBA)
/dev/hdd2            1276       19457   146046915    f  W95 Ext'd (LBA)
/dev/hdd5            1276       19457   146046883+   7  HPFS/NTFS
Disk /dev/sda: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       30401   244196001    7  HPFS/NTFS
[root@localhost home]# mount -t ntfs /dev/sda1 /mnt/250G
[root@localhost home]# cd /mnt/250G
[root@localhost 250G]# ls
Favorites  System Volume Information  各大项目介绍.doc  电影
JAVA       temp                       学习资料          重要资料
mail       vod_cache_data             小太阳项目.doc
RECYCLER   xampp                      服务器数据备份
[root@localhost 250G]# mkdir test
mkdir: 无法创建目录 “test”: 不允许的操作
[root@localhost 250G]#               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9496/showart_1276173.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP