网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

redhat7.1如何实现ntfs挂载-创新互联

小编给大家分享一下redhat7.1如何实现ntfs挂载,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!

专业从事成都网站建设、成都网站设计,高端网站制作设计,小程序设计,网站推广的成都做网站的公司。优秀技术团队竭力真诚服务,采用html5+CSS3前端渲染技术,响应式网站开发,让网站在手机、平板、PC、微信下都能呈现。建站过程建立专项小组,与您实时在线互动,随时提供解决方案,畅聊想法和感受。

给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]#

接下来要实现redhat7.1开机自动挂载ntfs格式硬盘或分区

a、进入/mnt目录,新建目录名为cpan,dpan

b、使用fdisk -l命令查看硬盘每个区对应的地址

c、进入/etc路径下编辑fstab文件(编辑之前最好先备份cp /etc/fstab /etc/fstab.bak),在文件末尾添加如下代码

/dev/sdb1 /mnt/windows750 ntfs-3g defaults 0 0  ###这里我的750G盘对应sdb1

/dev/sdd1 /mnt/1t ntfs-3g defaults 0 0

以上是“redhat7.1如何实现ntfs挂载”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


标题名称:redhat7.1如何实现ntfs挂载-创新互联
分享路径:http://bjjierui.cn/article/djjgdh.html

其他资讯