Mount NTFS with ntfs-3g under centos 5.4
Environment
Operating System:
# Cat/etc/RedHat-release
Centos release 5.4 (final)
CPU:
# Cat/proc/cpuinfo
If no 64-bit CPU is displayed
Required Software
(I)
Fuse-2.7.4-8.el5.i386.rpm (32-bit machine)
Or
Fuse-2.7.4-8.el5.x86_64.rpm (64-bit machine)
:
Http://mirror.centos.org/centos/5/ OS /i386/CentOS/
Or
Http://mirror.centos.org/centos/5/ OS /x86_64/CentOS/
(Ii)
Fuse-ntfs-3g-2009.4.4-2.el5.rf.i386.rpm (32 bits)
Or
Fuse-ntfs-3g-2009.4.4-2.el5.rf.x86_64.rpm (64 bits)
:
Http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/fuse-ntfs-3g-2009.4.4-2.el5.rf.i386.rpm
Or
Http://rpmforge.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/fuse-ntfs-3g-2009.4.4-2.el5.rf.x86_64.rpm
(1) Installation
Rpm-IVH fuse-2.7.4-8.el5.i386.rpm
Rpm-IVH fuse-ntfs-3g-2009.4.4-2.el5.rf.i386.rpm
(2) Mount and uninstall HDFS Devices
After the preceding two software packages are installed, you can mount the NTFS partition as follows:
First, run the command to view the device on the computer.
# Fdisk-l
Attach a device
Mkdir/mnt/d
Mount-T ntfs-3g/dev/XXX/mnt/d
Detach a device
Umount/mnt/d
~~~~~~~~~~~~~~~~~~~
An error will be reported if HDFS device is mounted before installation.
~~~~~~~~~~~~~~~~~~~
# Mkdir/mnt/hda1
# Mount/dev/hda1/mnt/hda1
Mount: Unknown filesystem type 'ntfs'
#
~~~~~~~~~~~~~~~~~~~
(3) set the bit to start
If you need to enable auto-start mounting, you can add the NTFS disk to be mounted at the end of the/etc/fstab file,
Add the following command:
/Dev/sda1/mnt/C ntfs-3g defaults 0 0
If multiple disks are attached, add a few more lines, for example:
Label = // ext3 defaults 1 1
Tmpfs/dev/SHM tmpfs defaults 0 0
Devpts/dev/PTS devpts gid = 5, mode = 620 0 0
Sysfs/sys sysfs defaults 0 0
Proc/proc defaults 0 0
/Dev/sda8 swap defaults 0 0
/Dev/sda1/mnt/C ntfs-3g defaults 0 0
/Dev/sda5/mnt/d ntfs-3g defaults 0 0
/Dev/sda6/mnt/e ntfs-3g defaults 0 0
/Dev/sda7/mnt/F ntfs-3g defaults 0 0
(4) References
Mount and read NTFS partitions (or mobile hard drives) using ntfs-3g in linux such as centos)
Http://blog.163.com/szs121@126/blog/static/10905678120102231234142/
Centos and other linux Mount with ntfs-3g to read and write NTFS
Http://blog.163.com/szs121@126/blog/static/10905678120102231955507/