How to realize ntfs mounting with redhat7.1
Editor to share with you how to achieve redhat7.1 ntfs mount, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Failed to mount the ntfs file system to redhat7.1 several times, indicating that the C derogatory environment was not installed, and then gcc was mounted successfully. Here are the detailed steps
[root@foundation59 Desktop] # fdisk-l # View all disk information
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 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 # see a 750g ntfs file system hard disk, which is the hard disk to be mounted
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 take 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 # View the decompressed ntfs-3g software (this software is easy to download by Baidu)
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 # enter the decompressed directory of this software
[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. Execute this compilation command
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. Execute this command
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. Execute this command, and then stop writing a lot of prompts.
[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15] # mount-t ntfs-3g / dev/sdb1 / mnt/windows750 # # then mounting directly was not successful because the / mnt/windows750 directory was not created
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 # create a directory first
[root@foundation59 ntfs-3g_ntfsprogs-2014.2.15] # mount-t ntfs-3g / dev/sdb1 / mnt/windows750 # mounted successfully (if you don't have a message, you can go and have a look)
[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 # # you can see that it is hung on 3 disks.
1t windows750 windowscpan
[root@foundation59 mnt] # cd windows750
[root@foundation59 windows750] # ls # # you can see the file information in the 750g hard disk.
Download movies MyDrivers $RECYCLE.BIN Youku Files software
Java_0924 music Program Files (x86) System Volume Information file
[root@foundation59 windows750] #
Next, it is necessary to automatically mount the ntfs format hard disk or partition when redhat7.1 boots.
Enter the / mnt directory and create a new directory named cpan,dpan
B. Use the fdisk-l command to check the address of each area of the hard disk.
C. Edit the fstab file under the / etc path (it is best to back up cp / etc/fstab / etc/fstab.bak before editing), and add the following code at the end of the file
/ dev/sdb1 / mnt/windows750 ntfs-3g defaults 0 0 # # here my 750g disk corresponds to sdb1
/ dev/sdd1 / mnt/1t ntfs-3g defaults 0 0
These are all the contents of the article "how redhat7.1 implements ntfs mounting". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!