Linux mounts the NTFS file system and sets it to boot automatically mount __linux

Source: Internet
Author: User

By:ailson, Jack .

date:2014.05.10 22:05

My personal blog: www.only2fire.com, the other content inside may have you need oh.

This article in my blog URL is: http://www.only2fire.com/archives/207.html, typesetting better, not letter, open look ^_^. Well, if you don't want to go to my blog, the following is the text.

NTFS is the default file system used by Windows, Linux is not mounted by default, but as a Linux learner, we typically use a dual system for computers, so how do we mount NTFS on Linux? This is the method of this article, the current solution to the problem in a lot of online, I am here to simply talk about my practice.

Note: I am using the CentOS, the other distribution version of the operation is very similar!

1. Installation ntfs-3g

NTFS-3G is an open-source software that enables NTFS read-write support in operating systems such as Linux, free BSD, Mac OS X, NetBSD, and Haiku. It can read and write NTFS partitions of Windows systems safely and quickly without worrying about data loss.
(1). Enter root mode and execute the command: (for 64bit operating system)

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


RPM-IVH rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


You have encountered the following similar selection: Y
Total Download size:483 k
Installed size:1.5 M
Is this OK [y/n]: Y
Finally wait for the installation to complete.
(2). Enter root mode and execute the command: (for 32bit operating system)

The operation is similar to the 64bit operating system described above.

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

RPM-IVH rpmforge-release-0.5.2-1.el6.rf.i686.rpm
You have encountered the following similar selection: Y
Total Download size:483 k
Installed size:1.5 M
Is this OK [y/n]: Y
Finally wait for the installation to complete.

2, set up the automatic Mount NTFS file system

To set up the Linux system to automatically mount the NTFS file system is a bit of a hassle, but when you're familiar with it, it's easy. I'll take one of my NTFS disks for example.

(1). Create a new letter F in the MNT directory

mkdir F

(2). We first mount the NTFS disk to determine the location of the letter

Double-click an NTFS disk, and then implement the mount.


When you mount the NTFS disk and enter DF under the terminal, you can know the information about the current disk.

The actual partition of the NTFS disk I opened is:/DEV/SDB4


(3). Modify/etc/fstab File

/dev/sdb4/mnt/f NTFS defaults 0 0


Save exit.

(4). Test:

Note: Before executing the following command, uninstall the test disk that is mounted above

Enter command mount-a in the terminal so you can mount the file system that is not mounted in the Fstab

At this point, all the settings have been completed, Linux can be automatically mounted every time the boot.

NOTE: Reprint please indicate the source, thank you. ^_^

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.