How to use the CentOS system?

Source: Internet
Author: User
Tags mkdir centos

NTFS-3G is an open source, fully free NTFS file system driver for Linux, Mac OS X, FreeBSD, NetBSD, BeOS, and Haiku.

After inserting a U disk, follow these steps:

# fdisk-l/dev/sd*
Usually this step will be able to find a U disk, if the U disk has led will also be lit, said to be found.
# mount–t ntfs/dev/sdb1/mnt/
Mount:unknown filesystem type ' NTFS '

This is because NTFS-formatted partitions are not recognized on the CentOS Release 5.5 (Final).

Solution:
Solved by using ntfs-3g.
Open the ntfs-3g download point http://www.tuxera.com/community/ntfs-3g-download/, the latest stable (current version is Ntfs-3g_ ntfsprogs-2014.2.15), download to CentOS, and perform the following command installation:
1) Compile and install ntfs-3g:

# tar ZXVF ntfs-3g_ntfsprogs-2014.2.15.tgz

# CD ntfs-3g_ntfsprogs-2014.2.15

#./configure

#make

#make Install

2 If you still cannot mount ntfs-3g after you install it, create a directory for the Mount point

Mkdir/mnt/usb

Mount-t Ntfs-3g/dev/sdb1/mnt/usb

So we can mount it.

3. Use of ntfs-3g

After the
is properly installed, we need to load the NTFS partition by NTFS-3G.


3.1 Gets the NTFS partition device name


execute the following command


Fdisk-l | grep NTFS

The
results are as follows:


/dev/sdb1 1 10443 83883366 7 hpfs/ntfs


The first field/dev/sdb1 is the desired partition device name


3.2 Establish mount point


MKDIR/MNT/NTFS-P1 set up a directory


if necessary, give specific access rights


chmod 755/mnt/ntfs-p1


3.3 Temporary load NTFS partition


can use the following command to temporarily mount an NTFS partition to a mount point in read-write mode


mount-t ntfs-3g <ntfs partition> <mount point>


of which:


<ntfs partition>------The device name for the partition where NTFS is located, such as/DEV/SDB1 in 3.1


<mount point>------mount points, such as the/mnt/ntfs-p1
in 3.2

For example:


mount-t ntfs-3g/dev/sdb1/mnt/ntfs-p1 or: Ntfs-3g/dev/sdb1/mnt/ntfs-p1


more options and examples please refer to the Mount command and NTFS-3G documentation using the following command


Mans Mount


man ntfs-3g


3.4 Loading NTFS partitions at system startup


Editor/etc/fstab


Vi/etc/fstab


at the end of the file add the following format to the line


<ntfs partition> <mount point> ntfs-3g defaults 0 0


of which:


<ntfs partition>------The device name for the partition where NTFS is located, such as/DEV/SDB1 in 3.1


<mount point>------mount points, such as the/mnt/ntfs-p1
in 3.2

For example:


/dev/sdb1/mnt/ntfs-p1 ntfs-3g defaults 0 0


the NTFS partition to the specified mount point by restarting the system after saving the file or simply executing the following command


mount-a

 

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.