CENTOS7 mounting NTFS-formatted hard disks

Source: Internet
Author: User

The NTFS file format is not supported by default on Linux systems, so NTFS-formatted hard drives cannot be mounted directly under Linux. However, it can be solved by installing ntfs-3g.

Download the source code address http://tuxera.com/opensource/ntfs-3g_ntfsprogs-2013.1.13.tgz.

After downloading, unzip to the directory, you can perform the following command to install

./configure

Make

Make install

After the installation is complete, you can use the man ntfs-3g command to view the corresponding documentation.

Before mounting, use the fdisk-l command to look at the mounted hard disk partition name and set up the corresponding folder in the/mnt/directory to mount it.

If the hard disk partition name is/DEV/SDA5, the corresponding folder created is/mnt/window-d, you can use

ntfs-3g/dev/sda5/mnt/window-d or Mount-t ntfs-3g/dev/sda5/mnt/window-d to mount, later to view the files on the hard disk can be found in/mnt/windoow-d.

After use, you need to go to mount, use the following command

Umount/dev/sda5 can be.

In some cases, because the hard disk partition is being occupied by a process, after the command to download will be prompted "device is busy",

This can be resolved by the Fuser command, Fuser can show which program is currently using a file on disk, mount point, or even network port, and give the program process details.

For example Fuser-m-v-k/mnt/window-d

Fuser can be followed by many parameters,-m indicates that the path indicates a mount point,-V can list the details of the mount point occupied by the process,-K can directly end all processes that occupy the partition, and then execute the umount command to complete the mount.

You can use the man fuser to get more help on this command.

The above practice after reboot will need to mount again, can be configured by the configuration file to automatically mount the boot.

Change the/etc/fstab before you change the backup under Cp/etc/fstab/etc/fstab.bak.

Execute the following command

/dev/sda5/mnt/windows ntfs-3g Defaults 0 0 to complete the automatic mount.

CENTOS7 mounting NTFS-formatted hard disks

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.