Enable RHEL5 to support ntfs partitioning

Source: Internet
Author: User
Tags hex code
By default, the ntfs file system is not supported in Linux. View the file systems supported by linux. The Installation tool is required to support NTFS partitioning. [Root @ localhostaudisp] # cat/etc/filesystemsext3ext2nodevprocnodevdevptsiso9660vfathfshfsplus first install the tool ntfs-3g_ntfsprogs-2013.1.13.tgz. [Root @

By default, the ntfs file system is not supported in Linux. View the file systems supported by linux. The Installation tool is required to support NTFS partitioning.
[Root @ localhostaudisp] # cat/etc/filesystems
Ext3
Ext2
Nodev proc
Nodev devpts
Iso9660
Vfat
Hfs
Hfsplus


First install the tool ntfs-3g_ntfsprogs-2013.1.13.tgz.
[Root @ localhost ~] # Ls
Anaconda-ks.cfg Desktop install. log install. log. syslog ntfs-3g_ntfsprogs-2013.1.13.tgz scsrun. log vmware-tools-distrib


Decompress the package to the/data directory.
[Root @ localhost ~] # Tar zxvf ntfs-3g_ntfsprogs-2013.1.13.tgz-C/data/
[Root @ localhost ~] # Ls/data/
Lost + found mytest ntfs-3g_ntfsprogs-2013.1.13


Go to the directory
[Root @ localhost ~] # Cd/data/ntfs-3g_ntfsprogs-2013.1.13/
[Root@localhostntfs-3g_ntfsprogs-2013.1.13] # ls
Aclocal. m4 ChangeLog config. h. in configure. ac credits install libntfs-3g Makefile. am NEWS src
AUTHORS compile config. sub COPYING depcomp install-sh ltmain. sh Makefile. in ntfsprogs TODO. ntfsprogs
Autogen. sh config. guess configure COPYING. LIB include libfuse-lite m4 missing README


Execute configuration compilation and installation.
[Root@localhostntfs-3g_ntfsprogs-2013.1.13] #./configure
[Root@localhostntfs-3g_ntfsprogs-2013.1.13] # make & make install


Create a new partition and change the system type to 7, that is, ntfs.
[Root @ localhost ~] # Fdisk/dev/sdc
Command (m for help): n
Command action
E extended
P primary partition (1-4)
P
Partition number (1-4): 2
First cylinder (1218-2610, default 1218 ):
Using default value 1218
Last cylinder or + size or + sizeM or + sizeK (1218-2610, default 2610 ):
Using default value 2610
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 7
Changed system type of partition 2 to 7 (HPFS/NTFS)
Command (m for help): w
[Root @ localhost ~] # Partprobe


Create a/NTFS directory. Format the/dev/sdc2 partition file system as ntfs.
[Root @ localhost ~] # Mkdir/NTFS
[Root @ localhost ~] # Mkfs. ntfs/dev/sdc2
Cluster size has been automatically set to4096 bytes.
Initializing device with zeroes: 100%-Done.
Creating NTFS volume structures.


Mount/dev/sdc2 to the/NTFS directory.
[Root @ localhost ~] # Ntfs-3g/dev/sdc2/NTFS
[Root @ localhost ~] # Df-h
File System capacity used available % mount point
/Dev/sda3 95G 2.5G 88G 3%/
/Dev/sda2 95G 605 M 90G 1%/data
/Dev/sda1 99 M 12 M 82 M 13%/boot
Tmpfs 500 M 0 500 M 0%/dev/shm
/Dev/sdc2 11G 56 M 11G 1%/NTFS

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

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.