View ntfs partitions in Windows on CentOS

Source: Internet
Author: User

View ntfs partitions in Windows on CentOS

Anyone who has used CentOS and Windows systems knows that CentOS does not support ntfs partition format. For Linux beginners, most files are stored in the ntfs partition in Windows. So how can I mount Windows ntfs partitions on CentOS?

First, install a NTFS-3G tool on your Linux: http://www.tuxera.com/community/ntfs-3g-download /;;

After the download:
Tar-xzf xxx.tar.gz // decompress the code package. xxx indicates that all downloaded code packages have file names.
Cd xxx // enter the decompressed directory.
./Configure // run the configuration
Make // generate an executable file
Sudo make install // install software
Rm-rf ../xxx // you must not forget to delete it after installation. The file directory name is the same as xxx.

After installing the tool, you need to check your hard disk partition information and use fdisk-l to view the partition information;
If your hard disk has a GPT partition (this partition method is generally used for 2 TB or more partitions, you do not need to look at this step if there is no large hard disk ); use parted-l to view the partition information. If you are prompted that this software is not installed, install parted (sudo yum install parted );

After viewing the partition information, you can mount it. Generally, you know which partition is about to be large. After viewing the partition, record the partition you want to attach (for example, if I want to mount my Learning partition, I can determine its size as/dev/sdc3 ).
Therefore:
Mkdir/mnt/Learning // create a Learning disk mount point. It is best to use the same drive letter as your Windows partition to avoid confusion.
Ntfs-3g/dev/sdc3/mnt/Learning // mount this partition to Learning

After mounting, you can create a soft link to the folder on the desktop:
Ln-sd/mnt/Learning/home/username/Desktop/Learning
In this way, a soft link is created on your desktop, and you can directly jump to the mounted partition after clicking it.

In the end, to mount multiple partitions, repeat the above Mount steps. The Mount is to be mounted after each start.
If you want it to be automatically mounted to/mnt/Learning, add/dev/sdc3/mnt/Learning ntfs-3g defaults 0 0 at the end of the/etc/fstab file

At this point, the mounting is successful!

Related Article

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.