码迷,mamicode.com
首页 > Web开发 > 详细

redhat7.1 ntfs 挂载

时间:2016-10-12 23:13:05      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:redhat7.1 ntfs 挂载

最近给redhat7.1挂载ntfs文件系统时失败了好几次,提示是没有安装C贬义环境,然后安装了gcc,就成功挂载了,下面是详细步骤

[root@foundation59 Desktop]# fdisk -l  ###查看所有磁盘信息


Disk /dev/sdb: 750.2 GB, 750156374016 bytes, 1465149168 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk label type: dos

Disk identifier: 0x3c488b69


   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1            2048  1465145343   732571648    7  HPFS/NTFS/exFAT   ###看到有一个750G的ntfs文件系统硬盘,这就是将要挂载的硬盘


Disk /dev/sda: 120.0 GB, 120034123776 bytes, 234441648 sectors

Units = sectors of 1 * 512 = 512 bytes

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

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

Disk label type: dos

Disk identifier: 0x0003c4df


   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *        2048    73404415    36701184    7  HPFS/NTFS/exFAT    

/dev/sda2        73404416    74428415      512000   83  Linux

/dev/sda3        74428416    82292735     3932160   82  Linux swap / Solaris

/dev/sda4        82292736   234440703    76073984    5  Extended

/dev/sda5        82294784   234440703    76072960   83  Linux

[root@foundation59 Desktop]# ls   ###查看已经解压之后的ntfs-3g软件(此软件很容易百度下载)

ntfs-3g_ntfsprogs-2011.4.12.zip  ntfs-3g_ntfsprogs-2014.2.15.tgz

ntfs-3g_ntfsprogs-2014.2.15

[root@foundation59 Desktop]# cd ntfs-3g_ntfsprogs-2014.2.15   ###进入此软件的解压目录

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# ls

\aclocal.m4    config.h.in   COPYING.LIB  libfuse-lite  missing

AUTHORS       config.log    CREDITS      libntfs-3g    NEWS

autogen.sh    config.sub    depcomp      ltmain.sh     ntfsprogs

ChangeLog     configure     include      m4            README

compile       configure.ac  INSTALL      Makefile.am   src

config.guess  COPYING       install-sh   Makefile.in   TODO.ntfsprogs

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# ./configure    ###1、执行此编译命令

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking target system type... x86_64-unknown-linux-gnu

checking for a BSD-compatible install... /usr/bin/install -c

checking whether build environment is sane... yes

checking for a thread-safe mkdir -p... /usr/bin/mkdir -p

checking for gawk... gawk

checking whether make sets $(MAKE)... yes

checking whether to enable maintainer-specific portions of Makefiles... no

checking for style of include used by make... GNU

config.status: executing depfiles commands

config.status: executing libtool commands

/usr/bin/rm: cannot remove ‘libtoolT‘: No such file or directory

You can type now ‘make‘ to build ntfs-3g.

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# make    ####2、执行此命令

make  all-recursive

make[1]: Entering directory `/root/Desktop/ntfs-3g_ntfsprogs-2014.2.15‘

Making all in include

make[2]: Entering directory `/root/Desktop/ntfs-3g_ntfsprogs-2014.2.15/include‘

Making all in ntfs-3g

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkn

mknod   mkntfs  

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# make install    ###3、执行此命令,后面一大堆提示信息,就不写了

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdb1 /mnt/windows750   ###然后直接挂载不成功,是因为没有创建/mnt/windows750目录

ntfs-3g-mount: failed to access mountpoint /mnt/windows750: No such file or directory

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/windows750   ###先创建目录

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdb1 /mnt/windows750  ###成功挂载(没有提示信息就是成功了,可以进入看看)

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/1t

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdd1 /mnt/1t

[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15]# cd /mnt/

[root@foundation59 mnt]# ls   ###可以看到挂在了3个盘

1t  windows750  windowscpan

[root@foundation59 mnt]# cd windows750

[root@foundation59 windows750]# ls   ###可以看到750G硬盘里面的文件信息

download   movies  MyDrivers            $RECYCLE.BIN               Youku Files  软件

java_0924  music   Program Files (x86)  System Volume Information  文件

[root@foundation59 windows750]# 


本文出自 “12086672” 博客,请务必保留此出处http://12096672.blog.51cto.com/12086672/1861257

redhat7.1 ntfs 挂载

标签:redhat7.1 ntfs 挂载

原文地址:http://12096672.blog.51cto.com/12086672/1861257

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!