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

    CentOS下想访问NTFS分区,现在普遍的方法是利用ntfs-3g或者内核模块来实现。

    一、使用ntfs-3g官方源码编译安装的方法:
    ntfs-3g下载页面:http://www.tuxera.com/community/ntfs-3g-download/
     
    安装步骤:
    tar zxvf ntfs-3g_ntfsprogs-2012.1.15.tgz
    cd ntfs-3g_ntfsprogs-2012.1.15
    ./configure
    make
    make install
    # fdisk -l
     
    [root@bogon~]# fdisk -l
    WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 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: 0x00000000

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1       30402   244198583+  ee  GPT

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sdb: 250.1 GB, 250059350016 bytes
    256 heads, 63 sectors/track, 30282 cylinders
    Units = cylinders of 16128 * 512 = 8257536 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xaad407bb

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1      266306  2147483647+  ee  GPT

    Disk /dev/sdc: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 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: 0x83f02938

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *           1          13      102400    7  HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sdc2              13       10444    83787776    7  HPFS/NTFS
    /dev/sdc3           10445       38913   228677242+   f  W95 Ext'd (LBA)
    /dev/sdc5           10445       16973    52444161    7  HPFS/NTFS
    /dev/sdc6           16974       38913   176231424    7  HPFS/NTFS

    WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


    Disk /dev/sdd: 3000.6 GB, 3000592982016 bytes
    256 heads, 63 sectors/track, 363376 cylinders
    Units = cylinders of 16128 * 512 = 8257536 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0xaad4078a

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdd1               1      266306  2147483647+  ee  GPT
    Partition 1 does not start on physical sector boundary.

    Disk /dev/sde: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 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: 0x8b428b42

       Device Boot      Start         End      Blocks   Id  System
    /dev/sde1               1       19458   156288000    7  HPFS/NTFS
    执行 vim /etc/fstab
    #
    # /etc/fstab
    # Created by anaconda on Mon Jul 11 00:38:12 2016
    #
    # 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
    #
    UUID=d2b2b234-cd87-4a1b-a7c9-ff86426e8adf /                       ext4    defaults        1 1
    UUID=98A7-5904          /boot/efi               vfat    umask=0077,shortname=winnt 0 0
    UUID=7525cef8-3689-4c47-84a2-65d33f2dcd52 /home                   ext4    defaults        1 2
    UUID=209e2fe9-0334-4656-8c20-951da2f0c41c swap                    swap    defaults        0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    #这里添加
    /dev/sdc6 /mnt/Windows/Win7_Study ntfs-3g rw,umask=0000,defaults 0 0
    /dev/sde1 /mnt/Windows/Temp ntfs-3g rw,umask=0000,defaults 0 0
    GPT分区的挂载方法暂时没有找到
     
  • 相关阅读:
    Object-c学习之路四(oc内存管理autorelease)
    Object-c学习之路三(@class与#import的区别)
    Object-c学习之路二(oc内存管理黄金法则1)
    Object-c学习之路(oc点语法)
    python(学习之路一)
    css中的position属性
    盒子模型——边框(Border)
    CSS盒子模型
    form(表单)标签常用标签及属性
    Codeforces Round #271 (Div. 2) D Flowers【计数dp】
  • 原文地址:https://www.cnblogs.com/cutelinux/p/5709595.html
Copyright © 2011-2022 走看看