CentOS mount ntfs partition method

Solutions to mount ntfs drives on CentOS


1. Drive


ntfs-3g is an NTFS drive, it’s bound to provide access for Linux, android, mac, freeBSD and many other non-Windows operating systems to read and write NTFS drives.


Optional step

include gcc-compiler, ibc-dev libraries

Check for more d basic environment , the general Linux distributions will carry default


2. Installation

 

Download -> unpack -> compile -> Installation


Extract the installation package, and then execute the following command


# Cd ntfs-3g_ntfsprogs-2011.4.12

./Configure # 
# the make 
# the make install // the installation requires superuser privileges

3. Mountthe partition


For example:

# fdisk -l | grep NTFS
# mount -t ntfs-3g /dev/sdb1 /mnt/ntfs

4. unmount the partition


For example:

# umount /dev/sda1


The boot automatically mount


Modified fstab to automatically mount, a mount point as a folder, not a plurality of drives that are mounted to the same mount point. Specifically, the superuser privileges to open / etc / fstab , and later according fstab file format required written statement. In fstab , the # beginning of number is a comment, except # outside number, each row represents information to mount a file system. Each row made . 6 areas composed by a space or TAB separated.


For example:

/dev/sda1 /mnt/windows ntfs-3g defaults 0 0


Example:

/ Dev / sda1 / home / david / Windows / C ntfs-3g silent, umask = 0, locale = zh_CN.utf8 0 0

/ Dev / sda5 / home / david / Windows / D ntfs-3g silent, umask = 0, locale = zh_CN.utf8 0 0

/ Dev / sda6 / home / david / Windows / E ntfs-3g silent, umask = 0, locale = zh_CN.utf8 0 0


Wherein the region 4 is silent, umask temporarily read , the locale = apparently set the encoding, in order to avoid possible Chinese garbled.







These effects with reference command, as follows


Command list

./configure

make

make install

fdisk

grep

mount

umount


1. configure

Literally it means to configure, but at first did not know what effect. Therefore, open the file after decompression folder in your home directory have configure file. Probably automatically set some parameters like the right path based on the current path, and then to compile (make) to prepare.

2. make

Compile meaning.

3. make install

Installation BUILD make file

4. fdisk

Should not Find Disk , as far as man described, this command is not limited to this list the partition list, the parameters of the back belt -l , L i.e. List , are listed. List all disks, then exit.

5. grep

Filter command can be called, for printing a given pattern matching, pattern line, the.

6. mountumount

Mount or unmount the disk


Revision 1.0

2020-3-27 Friday, 13 Zhou


 

 

References:

https://www.tuxera.com/community/ntfs-3g-manual/

https://www.tuxera.com/community/open-source-ntfs-3g/

https://www.cnblogs.com/kerrycode/archive/2013/04/01/2993701.html



 

Guess you like

Origin www.cnblogs.com/gnaijdivad/p/12585333.html