linux 挂载NTFS移动硬盘

[root@desktop2 ~]# fdisk -l
Disk /dev/sda: 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/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       17417   139701240   83  Linux
/dev/sda3           17418       19457    16386300   82  Linux swap / Solaris
Disk /dev/sdb: 320.0 GB, 320072932864 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb4   *           1       38914   312571192+   7  HPFS/NTFS

然后挂载该分区/dev/sdb4  到/mnt目录下,却发现文件系统不能识别
[root@desktop2 ~]# mount /dev/sdb4 /mnt/
mount: unknown filesystem type 'ntfs'

此时需要安装
fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm
下载链接: http://pkgs.repoforge.org/fuse-ntfs-3g/fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm
[root@desktop2 ~]# rpm -ivh fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm   --nodeps
warning: fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:fuse-ntfs-3g           ########################################### [100%]

安装完成之后:再次通过mount.ntfs-3g  /dev/sdb4  /mnt 即可挂载成功,对该分区进行操作
[root@desktop2 ~]# mount.ntfs-3g  /dev/sdb4 /mnt/
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
[root@desktop2 ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb4 on /mnt type fuseblk (rw,allow_other,blksize=4096)
[root@desktop2 ~]# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda2              139G    36G    97G  27% /
/dev/sda1              200M    13M   177M   7% /boot
tmpfs                  3.1G      0   3.1G   0% /dev/shm
/dev/sdb4              321G   162G   159G  51% /mnt

成功挂载,其余的问题就不在此赘述了。


转载于:https://my.oschina.net/u/1169079/blog/423689

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值