Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3439626
  • 博文数量: 349
  • 博客积分: 5771
  • 博客等级: 大校
  • 技术积分: 4193
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-06 11:52
个人简介

it

文章分类

全部博文(349)

文章存档

2019年(2)

2018年(2)

2017年(1)

2016年(2)

2015年(18)

2014年(36)

2013年(69)

2012年(100)

2011年(62)

2010年(57)

分类:

2010-06-02 15:22:02

环境:
系统:
[root@localhost cd]# uname -a
Linux localhost.localdomain 2.6.9-34.EL #1 Fri Feb 24 16:44:51 EST 2006 i686 i686 i386 GNU/Linux

[root@localhost cd]# lsb_release -a
LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 3)
Release:        4
Codename:       NahantUpdate3


问题:挂载ntfs格式的移动硬盘,
[root@localhost /]# mount  -t ntfs /dev/sda1 /mnt/cd/
mount: fs type ntfs not supported by kernel

[root@localhost ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14        9729    78043770   8e  Linux LVM

Disk /dev/sda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4997    40138371    7  HPFS/NTFS

可以看到已经可以认盘了,但是挂不了。

解决办法:
1、下载匹配的支持ntfs格式的rpm补丁:kernel-module-ntfs-2.6.9-34.EL-2.1.20-0.rr.10.10.i686.rpm
注意这里红色部分要跟uname出现的一样。
2、安装
rpm -ivh kernel-module-ntfs-2.6.9-34.EL-2.1.20-0.rr.10.10.i686.rpm
[root@localhost Desktop]# rpm -ivh kernel-module-ntfs-2.6.9-34.EL-2.1.20-0.rr.10.10.i686.rpm
Preparing...                ########################################### [100%]
   1:kernel-module-ntfs-2.6.########################################### [100%]
3、挂载
[root@localhost Desktop]# mount -t ntfs  /dev/sda1 /mnt/cd/

大功告成。。。



遗留问题:1、如何自动挂载呢?
2、不能删除移动硬盘中的文件
[root@localhost Desktop]# mount -t ntfs -o umask=777 /dev/sda1 /mnt/cd/
也没有解决。
   尝试用ntfs-3g补丁看看可以解决不。
阅读(1422) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~