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!