"Linux" Centos7 after installation, how can I access windows disk under the condition of dual system CentOS7

Source: Internet
Author: User
Tags database issues

To access NTFS-formatted disks in Windows under CENTOS7, you need to download ntfs-3g step 1 under Linux:

Go to root and download ntfs-3g using the Yum command. "If you have added a common source: http://www.cnblogs.com/sxdcgaq8080/p/7516186.html"

[[email protected] ~]$ su root password: [[[email protected] sxd]# yum install ntfs-3g loaded plugin: Fastestmirror, Langpacksloading mirror speeds from cached Hostfile * epel:mirrors.tuna.tsinghua.edu.cn * nux-dextop:li.nux.ro * rpmforg e:mirror.fairway.ne.jp is resolving dependencies--checking transactions---> Packages NTFS-3G.X86_64.2.2017.3.23-1.EL7 will be installed--resolve dependencies to complete dependency Resolution = =                         ============================================================================== Package schema version         SOURCE size ================================================================================ Installing: ntfs-3g x86_64 2:2017.3.23-1.el7 epel 263 k Transaction Summary ================================================ ================================ installation 1 package total Downloads: 263 k installation Size: 612 kIs This OK [y/d/n]: ydownloading Packages: ntfs-3g-2017.3.23-1.el7.x86_64.rpm | 263 KB 00:02 Running transaction checkrunning transaction testtransaction test succeededrunning transaction Warning: RPM data Libraryhas been modified by a non-Yum program. * * Found 16 existing RPM database issues, ' yum check ' output is as follows: icedtea-web-1.6.2-4.el7.x86_64 There is a lack of demand Java-1.8.0-openjdkipa-admintools-4.4.0-12.el7.centos.noarch There are conflicting freeipa-admintools installed: Ipa-admintools-4.4.0-12.el7.centos.noarchipa-client-4.4.0-12.el7.centos.x86_64 There are conflicting freeipa-client installed: Ipa-client-4.4.0-12.el7.centos.x86_64ipa-client-common-4.4.0-12.el7.centos.noarch There are conflicting Freeipa-client-common installed: Ipa-client-common-4.4.0-12.el7.centos.noarchipa-common-4.4.0-12.el7.centos.noarch There are conflicting Freeipa-common installed: Ipa-common-4.4.0-12.el7.centos.noarchipa-server-4.4.0-12.el7.centos.x86_64 There are conflicting freeipa-server installed: Ipa-server-4.4.0-12.el7.centos.x86_64ipa-server-common-4.4.0-12.el7.centos.noarch There are conflicting Freeipa-server-common installed: Ipa-server-common-4.4.0-12.el7.centos.noarchjing-20091111-14.el7.noarch There is a lack of demand java-headless >= (' 0 ', ' 1.5.0 ', None) 1:libreoffice-core-5.0.6.2-3.el7.x86_64 There is a lack of demand java-headless >= (' 1 ', ' 1.6 ', None) 1: Libreoffice-ure-5.0.6.2-3.el7.x86_64 There is a lack of demand libjvm.so () (64bit) nuxwdog-client-java-1.0.3-5.el7.x86_64 There is a lack of demand java-headless >= (' 1 ', ' 1.6.0 ', None) Pki-base-java-10.3.3-10.el7.noarch There is a lack of demand Java-1.8.0-openjdk-headlesspki-ca-10.3.3-10.el7.noarch There is a lack of demand Java-1.8.0-openjdk-headlesspki-kra-10.3.3-10.el7.noarch There is a lack of demand Java-1.8.0-openjdk-headlesspki-server-10.3.3-10.el7.noarch There is a lack of demand Java-1.8.0-openjdk-headlesspki-tools-10.3.3-10.el7.x86_64 There is a lack of demand java-1.8.0-openjdk-headless is installing: 2:                            ntfs-3g-2017.3.23-1.el7.x86_64 1/1 Verification: 2:ntfs-3g-2017.3.23-1.el7.x86_64  1/1 installed: ntfs-3g.x86_64 2:2017.3.23-1.el7

Step 2:

After the download is complete, check the disk information first

Command:

Fdisk-l
The complete situation is as follows:
As can be seen below, there are SDA and SDB two disks.
My SDB 250GB is a solid state drive, and the storage disk under my weindows is a few of the SDA disks, so I'll put a part of SDA
[[email protected] sxd]# fdisk-l disk/dev/sda:1000.2 GB, 1000204886016 bytes, 1,953,525,168 sectors units = Sector of 1 * total = by      TES sector size (logical/Physical): 512 Bytes/4096 bytes I/o size (min/best): 4096 bytes/4096 bytes Disk label type: DOS disk identifier: 0xfb613650 device Boot Start End  Blocks Id system/dev/sda1 507813888 924606337 208396225 7 hpfs/ntfs/exfat/dev/sda2 924606401 1134319615 104856607+ F W95 Ext ' d (LBA) Partition 2 does not start on physical sector Boundary./dev/sda3 11343196 1953519615 409600000 7 hpfs/ntfs/exfat/dev/sda5 924606464 1134319615 104856576 7 hpfs/ntfs/exfat Disk /dev/sdb:250.1 GB, 250059350016 bytes, 488,397,168 sectors units = Sector of 1 * = bytes sector size (logical/Physical): 512 Bytes/512 bytes I/o size (min/Best): 512 Bytes/512 bytes disk label type: DOS disk identifier: 0X5774E2D4 device Boot Start End Blocks Id system/dev/sdb1 * 20 206847 102400 7 hpfs/ntfs/exfat/dev/sdb2 206848 244684799 122238976 7 hpfs/ntfs/exfat/de  V/SDB3 244684800 246781951 1048576 linux/dev/sdb4 246781952 488396799 120807424 5 extended/dev/sdb5 24678400  0 488394751 120805376 8e Linux LVM disk/dev/mapper/cl-root:53.7 GB, 53687091200 bytes, 104.8576 million sectors units = Sector of 1 * 512  = Bytes sector size (logical/Physical): 512 Bytes/512 bytes I/o size (min/best): 512 Bytes/512 bytes Disk/dev/mapper/cl-swap:8455 MB, 8455716864 bytes, 16515072 Sector units = Sector of 1 * bytes sector size (logical/Physical): 512 Bytes/512 bytes I/o size (min/best): 512 Bytes/512 bytes Disk/dev/mapper/cl-home:61.6 G B, 61555605504 bytes, 120,225,792 sectors units = Sector of 1 * 512 = bytes sector size (logical/Physical): 512 Bytes/512 bytes I/o size (min/best): 512 bytes/bytes

Step 3:

Create a few new directories on the Linux side for each of these directories.

For example:

The new Winc Wind Winf

Execute command:

Mount-t ntfs-3g/dev/sda1 WinC

The execution is done

4. Step 4:

Command: unmount NTFS that was just loaded under Winc

Umount WinC

5. Step 5:

However, the above steps are not really loaded into the Linux side of the directory, restart the computer after the invalid

If you want to continue to work, you need to modify the/etc/fstab file, add the following items to the last line of this file

Mount-t ntfs-3g/dev/sda1 windmount-t ntfs-3g/dev/sda3 winemount-t ntfs-3g/dev/sda5 WinF

"Linux" Centos7 after installation, how can I access windows disk under the condition of dual system CentOS7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.