redhat7.1 ntfs 挂载
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了redhat7.1 ntfs 挂载相关的知识,希望对你有一定的参考价值。
最近给redhat7.1挂载ntfs文件系统时失败了好几次,提示是没有安装C贬义环境,然后安装了gcc,就成功挂载了,下面是详细步骤
[[email protected] 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
[[email protected] Desktop]# ls ###查看已经解压之后的ntfs-3g软件(此软件很容易百度下载)
ntfs-3g_ntfsprogs-2011.4.12.zip ntfs-3g_ntfsprogs-2014.2.15.tgz
ntfs-3g_ntfsprogs-2014.2.15
[[email protected] Desktop]# cd ntfs-3g_ntfsprogs-2014.2.15 ###进入此软件的解压目录
[[email protected] 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
[[email protected] 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.
[[email protected] 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
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# mkn
mknod mkntfs
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# make install ###3、执行此命令,后面一大堆提示信息,就不写了
[[email protected] 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
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/windows750 ###先创建目录
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdb1 /mnt/windows750 ###成功挂载(没有提示信息就是成功了,可以进入看看)
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# mkdir /mnt/1t
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# mount -t ntfs-3g /dev/sdd1 /mnt/1t
[[email protected] ntfs-3g_ntfsprogs-2014.2.15]# cd /mnt/
[[email protected] mnt]# ls ###可以看到挂在了3个盘
1t windows750 windowscpan
[[email protected] mnt]# cd windows750
[[email protected] windows750]# ls ###可以看到750G硬盘里面的文件信息
download movies MyDrivers $RECYCLE.BIN Youku Files 软件
java_0924 music Program Files (x86) System Volume Information 文件
[[email protected] windows750]#
本文出自 “12086672” 博客,请务必保留此出处http://12096672.blog.51cto.com/12086672/1861257
以上是关于redhat7.1 ntfs 挂载的主要内容,如果未能解决你的问题,请参考以下文章
挂载NTFS分区,离线安装NTFS-3G(Linux挂载NTFS格式磁盘的方法)