Linux system mounts NTFS file system

Source: Internet
Author: User

?? It is gratifying to try and successfully attach a 500G mobile hard drive to the RHEL5 system today. Thought that perhaps later oneself or other students will have similar experience, so as far as possible meticulous record in this.
Whether it is a hard disk with Windows/linux dual system installed, or a removable hard drive/u disk connected via USB, it can be mounted on a Linux system. However, because the file systems commonly used by Windows itself include FAT32 and NTFS, there is still a need to differentiate. Talk less and get to the chase.

The system environment is as follows:
Operating system--rhel5, detailed version: Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Kernel version--2.6.18-92.el5 for x86_64
Mobile HDD--500g,ntfs File system

Application target:
Without affecting the current data of the mobile hard disk, mount the hard disk, you can read and write operations.

Scenario A: Using Linux-ntfs
Features: This scheme is simple to use and easy to operate, but it is read-only when mounted successfully

Realize:
1. Download the Linux-ntfs RPM package
# wget http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.18-92.el5-2.1.27-0.rr.10.11.x86_64.rpm

2. Install the downloaded RPM package
# RPM-IVH kernel-module-ntfs-2.6.18-92.el5-2.1.27-0.rr.10.11.x86_64.rpm

3. Check if the NTFS module is loaded into the system
#/sbin/ Modprobe ntfs
# cat/proc/filesystems
            ext3
            ntfs

4. View the number of the NTFS system
#/sbin/fdisk-l |grep NTFS
/DEV/SDC1 1 60801 488384001 7 hpfs/ntfs

5. Mount the NTFS file system
# mkdir-p/mnt/ntfs/
# mount-t ntfs/dev/sdc1/mnt/ntfs/

END. At this point, you should have successfully mounted a read-only NTFS system without an accident, which can be viewed using the Mount command.

Scenario B: Using Fuse and ntfs-3g
Features: The program needs to download 2 packages, the source of its installation, Mount successfully can read and write mount partition

Realize:
1. Download the source installation package
# wget Http://downloads.sourceforge.net/project/fuse/fuse-2.X/2.7.4/fuse-2.7.4.tar.gz?use_mirror=ncu
# wget Http://www.ntfs-3g.org/ntfs-3g-2009.4.4.tgz

2. Install the downloaded source package
# TAR-ZXF Fuse-2.7.4.tar.gz
#./configure--prefix=/usr/local/fuse-2.7.4
# make
# make Install

# TAR-ZXF Ntfs-3g-2009.4.4.tgz
#./configure--prefix=/usr/local/ntfs-3
# make
# make Install

# Modprobe fuse
# cat/proc/filesystems
            ext3
            ntfs
             fuseblk
    [fuse should appear in the list]

4. View the number of the NTFS system
#/sbin/fdisk-l |grep NTFS
/DEV/SDC1 1 60801 488384001 7 hpfs/ntfs

5. Mount the NTFS file system
# mkdir-p/mnt/ntfs/
# mount-t ntfs-3g/dev/sdc1/mnt/ntfs/

END. You should have successfully mounted an NTFS system that can be read and written by all users and can be viewed using the Mount command.

Linux system mounts NTFS file system

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.