linux挂载移动硬盘 格式化_linux使用心得1 挂载移动硬盘

环境:

系统:

[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补丁看看可以解决不。

阅读(1017) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值