zoukankan      html  css  js  c++  java
  • CentOS6.4挂载读写NTFS分区 (重要)

    如今很多的linux衍生版本已经支持自动连接NTFS分区了,之前在一次安装的过程中,遇到

    linux不能识别NTFS分区,解决方法如下文:

    =================================================

    CentOS 6.4挂载读写NTFS分区(ntfs-3g)

    CentOS不像Fedora和ubuntu等,默认是自动挂载NTFS的,而它可以利用NTFS-3G来实现挂载及读写。

    NTFS-3G 是一个开源的软件,可以实现 Linux、Free BSD、Mac OSX、NetBSD 和 Haiku 等操作系统中的 NTFS 读写支持。它可以安全且快速地读写 Windows 系统的 NTFS 分区,而不用担心数据丢失。

    本文讲解如何在CentOS安装NTFS-3G来实习那挂载NTFS分区。

    首先必须安装了rpmforge软件库的源

    1、下载rpmforge的rpm文件包

    32位系统

    [root@linuxsight linuxsight]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm

    64位系统

    [root@linuxsight linuxsight]# wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

    2、安装rpmforge的rpm文件包

    [root@linuxsight linuxsight]# rpm -ivh rpmforge-release-0.5.2-1.el6.rf.i686.rpm

    3、安装ntfs-3g

    [root@linuxsight linuxsight]# yum install fuse-ntfs-3g
    Loaded plugins: fastestmirror, refresh-packagekit
    Loading mirror speeds from cached hostfile
    * base: mirrors.ta139.com
    * extras: ftp.nara.wide.ad.jp
    * rpmforge: apt.sw.be
    * updates: mirrors.ta139.com
    rpmforge | 1.1 kB 00:00
    rpmforge/primary | 1.3 MB 01:22
    rpmforge 3921/3921
    Setting up Install Process
    Package fuse-2.8.3-1.el6.i686 already installed and latest version
    Resolving Dependencies
    –> Running transaction check
    —> Package fuse-ntfs-3g.i686 0:2010.10.2-1.el6.rf set to be updated
    –> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Installing:
    fuse-ntfs-3g i686 2010.10.2-1.el6.rf rpmforge 637 k

    Transaction Summary
    ================================================================================
    Install 1 Package(s)
    Upgrade 0 Package(s)

    Total download size: 637 k
    Installed size: 1.4 M
    Is this ok [y/N]: y
    Downloading Packages:
    fuse-ntfs-3g-2010.10.2-1.el6.rf.i686.rpm | 637 kB 00:35
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
    Installing : fuse-ntfs-3g-2010.10.2-1.el6.rf.i686 1/1

    Installed:
    fuse-ntfs-3g.i686 0:2010.10.2-1.el6.rf

    Complete!

     

     

    使用fdisk -l 查看分区,并可以使用mount 挂载

    Disk /dev/sdb: 16.0 GB, 16025387008 bytes

    255 heads, 63 sectors/track, 1948 cylinders

    Units = cylinders of 16065 * 512 = 8225280 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disk identifier: 0xcad4ebea

       Device Boot      Start         End      Blocks   Id  System

    /dev/sdb1   *           1           1           0    0  Empty

    Partition 1 does not end on cylinder boundary.

    /dev/sdb4               1        1949    15649729    7  HPFS/NTFS

    使用mount进行挂载

    mount /dev/sdb4  /tmp

    在/tmp中就可以看到NTFS分区上面的东西了。

  • 相关阅读:
    atitit.无为而治在企业管理,国家治理,教育领域的具体思想与实践
    atitit.浏览器web gui操作类库 和 操作chrome浏览器的类库使用总结
    atitit.loading的设计与实现控件选型attilax 总结
    atitit.系统托盘图标的设计java swing c# .net c++ js
    atitit.流程标准化 mysql启动不起来的排查流程attilax总结
    atitit.图片相似度与图片查找的设计 获取图片指纹
    atitit.it企业管理 项目管理 中的 授权机制 的来源 君权神授 的一定合理性
    atitit..国富论 在现代it企业项目管理中的作用attialx 总结国富论读后感 attialx
    atitit.印度教与java宗教的特点与观念对比 attilax总结
    atitit.验证码识别step2剪贴板ClipBoard copy image图像 attilax总结
  • 原文地址:https://www.cnblogs.com/horizonli/p/5172236.html
Copyright © 2011-2022 走看看