zoukankan      html  css  js  c++  java
  • CentOS 6.5挂载windows NTFS硬盘

    CentOS 6.5挂载windows NTFS硬盘

    1、安装ntfs-3g
    用root权限去安装
    下载ntfs-3g网址:
    http://www.tuxera.com/community/ntfs-3g-download/
    下载的tgz格式后解压,tar-zxvf filename.tgz -C欲解压到的目录
    进入解压的目录,接着依次执行
    #./configure
    #make
    #make install
    这样就安装好了

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

    Open Source: NTFS-3G

    Usage
    If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.

    mount -t ntfs-3g /dev/sda1 /mnt/windows

    Please see the NTFS-3G Manual for more options and examples.

    You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:

    /dev/sda1 /mnt/windows ntfs-3g defaults 0 0

    http://www.tuxera.com/community/open-source-ntfs-3g/

    http://www.tuxera.com/community/open-source-ntfs-3g/

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

    CentOS 6.5 挂载windowns NTFS 移动硬盘
    主要参考了centos挂载移动硬盘
    需要安装第三方的插件ntfs-3g
    1、安装编译器,否则不能成功编译。
    yum install gcc
    根据提示按Y安装完成
    一般都带gcc
    2、安装ntfs-3g
    用root权限去安装
    下载ntfs-3g网址:
    http://www.tuxera.com/community/ntfs-3g-download/
    下载的tgz格式后解压,tar-zxvf filename.tgz -C欲解压到的目录
    进入解压的目录,接着依次执行
    #./configure
    #make
    #make install
    这样就安装好了
    3、fdisk -l 或者cat /proc/partitions查看硬盘分区情况,下图是我的分区

    4、挂载分区,下面我们把
    /dev/sdc1分区挂载到/mnt/win1
    /dev/sdc2分区挂载到/mnt/win2
    /dev/sdc3分区挂载到/mnt/win3
    进入/mnt目录,新建win1win2 win3 三个挂载目录
    cd/mnt
    mkdir win1 win2 win3
    mount -t ntfs-3g /dev/sdc1 /mnt/win1#挂载
    mount -t ntfs-3g /dev/sdc2 /mnt/win2
    mount -t ntfs-3g /dev/sdc3/mnt/win3
    分区挂载完成,现在可以进入/mnt目录下面查看对应的文件夹,即就是你移动硬盘的分区

    如果想卸载,可以用下面的命令
    umount /dev/sdc1 #卸载
    umount /dev/sdc2
    umount /dev/sdc3

    http://blog.csdn.net/willinux20130812/article/details/20463061

    ====================【我的 /etc/fstab 文件内容】====================

    :
    #
    # /etc/fstab
    # Created by anaconda on Tue Jun 6 05:13:14 2017
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    /dev/mapper/cl-root / xfs defaults 0 0
    UUID=2f6bd410-52b9-4d5f-886a-4433b3671c26 /boot xfs defaults 0 0
    /dev/mapper/cl-swap swap swap defaults 0 0:
    /dev/sda2 /mnt/cpan ntfs-3g defaults 0 0
    /dev/sda3 /mnt/66gb ntfs-3g defaults 0 0
    /dev/sda5 /home/cbx2012/cb810812 ntfs-3g default 0 0

    /dev/sda6 /home/cbx2012/16GExt3 ext3 defaults 0 0

    /home/cbx2012/cb810812/winXPDNC/DNGS_GHOST_XP_KSZJB.iso /home/cbx2012/CDROM iso9660 loop 0 0

    ====================【看下面CB的例子】====================

    暂时挂载
    mount -t ntfs-3g /dev/sda2 /home/cbx2012/cb810812 //ntfs 格式

    mount /dev/sda6 /home/cbx2012/16GExt3 //Linux Ext3 格式,不用ntfs-3g

    mount -o loop dell_GHOST_WIN8.1_X64.iso /home/cbx2012/CDROM //挂载光驱iso文件

    永久开机自动挂载

    /dev/sda2 /mnt/cpan ntfs-3g defaults 0 0
    /dev/sda3 /mnt/66gb ntfs-3g defaults 0 0
    /dev/sda4 /home/cbx2012/cb810812 ntfs-3g default 0 0

    /dev/sda6 /home/cbx2012/16GExt3 ext3 defaults 0 0

    /home/cbx2012/cb810812/winXPDNC/DNGS_GHOST_XP_KSZJB.iso /home/cbx2012/CDROM iso9660 loop 0 0

    ====================【centOS7开机挂载ntfs磁盘】====================

    sudo mkdir WindowsC

    [root@localhost cbx2012]# ntfs-3g /dev/sda2 /mnt/WindowsC

    fdisk -l
    [root@localhost cbx2012]# mount -t ntfs-3g /dev/sda2 /home/cbx2012/cb810812
    mount -t ntfs-3g /dev/sda2 /home/cbx2012/cb810812

    CentOS 7 下挂载NTFS文件系统并实行开机自动挂载
    http://www.linuxidc.com/Linux/2014-11/109226.htm

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

    centOS7开机挂载ntfs磁盘及windows引导修复

    http://www.th7.cn/system/win/201612/196914.shtml

    百度搜索以下内容
    /dev/sda1 /mnt/windows ntfs-3g defaults 0 0

    /dev/sda1 /mnt/windowsC ntfs-3g defaults 0 0
    /dev/sda5 /mnt/windowsD ntfs-3g defaults 0 0
    /dev/sda6 /mnt/windowsE ntfs-3g defaults 0 0
    /dev/sda7 /mnt/windowsF ntfs-3g defaults 0 0

    ntfs-3g /dev/sda1 /mnt/windowsC -o locale=ar_SA.UTF-8
    ntfs-3g /dev/sda5 /mnt/windowsD -o locale=ar_SA.UTF-8
    ntfs-3g /dev/sda6 /mnt/windowsE -o locale=ar_SA.UTF-8
    ntfs-3g /dev/sda7 /mnt/windowsF -o locale=ar_SA.UTF-8

    ====================【Linux下添加新硬盘,分区及挂载】====================

    Linux下添加新硬盘,分区及挂载

    挂载好新硬盘后输入fdisk -l命令看当前磁盘信息

    mount /dev/sda6 /home/cbx2012/16GExt3

    fstab
    /dev/sda6 /home/cbx2012/16GExt3 ext3 defaults 0 0

    http://blog.chinaunix.net/uid-25829053-id-3067619.html

    ===============================================
    挂载ISO
    mount -o loop dell_GHOST_WIN8.1_X64.iso /home/cbx2012/CDROM

    [root@localhost DellWin8.1]# mount -o loop dell_GHOST_WIN8.1_X64.iso /home/cbx2012/CDROM
    mount: /dev/loop0 写保护,将以只读方式挂载
    [root@localhost DellWin8.1]#

    查看挂载状态
    df -h

    CentOS 本地ISO 挂载并配置本地软件源
    http://www.cnblogs.com/oftenlin/p/4325023.html

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

    在linux下挂载ISO镜像文件
    http://blog.csdn.net/hancunai0017/article/details/6995284

    虚拟机+centOS挂载ISO步骤
    http://blog.csdn.net/u010612373/article/details/52240447

  • 相关阅读:
    Use Prerender to improve AngularJS SEO
    Prerender.io
    Prerender Application Level Middleware
    Prerender Application Level Middleware
    正则获取html标签字符串中图片地址
    xml转json
    videojs实现双击视频全屏播放、播放器全屏时视频未全屏
    自己编写jquery插件
    点击回退时需要点击2次才可返回js
    if中有逗号的写法
  • 原文地址:https://www.cnblogs.com/xcb0730/p/7060028.html
Copyright © 2011-2022 走看看