千家信息网

redhat7.1如何实现ntfs挂载

发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,小编给大家分享一下redhat7.1如何实现ntfs挂载,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!给redhat7.1
千家信息网最后更新 2025年02月03日redhat7.1如何实现ntfs挂载

小编给大家分享一下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]#

接下来要实现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挂载"这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注行业资讯频道!

0