CentOS System ntfs-3g Mount NTFS partitions

Source: Internet
Author: User
Tags gpg centos ide hard drive
CentOS system is very convenient to mount the hard disk, of course, how convenient is not windows convenient, I would like to introduce the CentOS system to use NTFS-3G mount NTFS partition steps and methods, I hope that the article will help you friends.

You must first install the source of the Rpmforge Software Library

1, download the rpmforge RPM packages

32-bit system

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-1.el6.rf.i686.rpm

64-bit system

wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm

2, install the Rpmforge rpm file package

RPM-IVH rpmforge-release-0.5.2-1.el6.rf.i686.rpm

3. Installation ntfs-3g

Yum Install fuse-ntfs-3g

4. Mount Catalogue

Mount-t Ntfs-3g/dev/sdb1/windows_dir


mount the NTFS file system

If your NTFS file system is/DEV/SDA1 and you will mount it in/mnt/windows/system, follow these steps.

1. Create mount points. (generally recommended for hanging in the MNT directory)
Mkdir/mnt/windows/system

2. Mount NTFS partitions:
Mount-t Ntfs-3g/dev/sda1/mnt/windows/system

Note: The sda1 here refers to the first partition of the SATA or SCSI hard drive, if it is an old-fashioned IDE hard drive, it will be hda1, please use Fdisk-l view. Like my lab machine:

[Root@centos ~]# Fdisk-l

disk/dev/sda:160.0 GB, 160041885696 bytes
255 heads, Sectors/track, 19457 cylinders
Units = Cylinders of 16065 * 8225280 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0xf0b1ebb0

Device Boot Start End Blocks Id System
/DEV/SDA1 * 1 2550 20482843+ 7 hpfs/ntfs
/dev/sda2 2551 19457 135805447 f W95 Ext ' d (LBA)

3. If you want to automatically mount the NTFS partition when the boot system starts up, edit the Vim/etc/fstab file and add something similar to the following:

Read-only mount:/dev/sda1/mnt/windows/system ntfs-3g ro,umask=0222,defaults 0 0

Read-write Mount:/dev/sda1/mnt/windows/system ntfs-3g rw,umask=0000,defaults 0 0
Or:/dev/sda1/mnt/windows/system ntfs-3g defaults 0 0

Add:

Another is the installation of ntfs-3g, the use of ntfs-3g mounted partitions are readable and writable. Yum Install ntfs-3g installation can be used under the terminal. If you cannot find the package, you may need to modify the next update source, edit/etc/yum.repos.d/centos-base.repo, and change the content to:

[Base]
Name=centos-5–base
#mirrorlist =http://mirrorlist.centos.org/?release= $releasever 5&arch= $basearch &repo=os
#baseurl =http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/os/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos6

#released Updates
[UPDATE]
Name=centos-5–updates
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=updates
baseurl=http://ftp.sjtu.edu.cn/centos/5.3/updates/$basearch/
Gpgcheck=1
Gpgkey=http://mirror.centos.org/centos/rpm-gpg-key-centos5

#packages used/produced in the builds but not released
[Addons]
Name=centos-5–addons
#mirrorlist =http://mirrorlist.centos.org/?release=4&arch= $basearch &repo=addons

baseurl=http://ftp.sjtu.edu.cn/centos/5.3/addons/$basearch/

All right, here we go. The NTFS partition tutorial is closed and hopefully this Linux tutorial will help you guys.

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.