CentOS mount and uninstall NTFS partitions automatically

Source: Internet
Author: User
1. View the kernel version of your system
#uname-A

#uname-R

2. To find the appropriate system kernel and CPU of the NTFS module download:
Like mine: Kernel-module-ntfs-2.6.18-53.el5.

Google search, find after download.
I found it on the page


3. Installation
Run RPM-IHV kernel-module-ntfs-2.6.18-53.el5-2.1.27-0.rr.10.11.i686.rpm and install this RPM package.
Run the/sbin/modprobe NTFS load kernel module.
Run DMESG | grep NTFS, you can view the NTFS-driven version. Show
[Root@localhost src]# DMESG | grep NTFS
NTFS driver 2.1.27 [flags:r/w MODULE].
You can run Cat/proc/filesystems see that the NTFS file system is already supported.
Appear
Nodev AutoFS
Ntfs
Indicates that NTFS has been supported.

4. Mount Partition
(1). Fdisk-l View partition information
disk/dev/hda:80.0 GB, 80000000000 bytes
255 heads, Sectors/track, 9726 cylinders
Units = Cylinders of 16065 * 8225280 bytes

Device Boot Start End Blocks Id System
/DEV/HDA1 * 1 1912 15358108+ 7 Hpfs/ntfs
/dev/hda2 1913 9725 62757922+ F W95 Ext ' d (LBA)
/dev/hda5 1913 4462 20482843+ b W95 FAT32
/dev/hda6 4463 7012 20482843+ 7 hpfs/ntfs
/dev/hda7 7013 7025 104391 Linux
/dev/hda8 7026 9725 21687718+ 8e Linux LVM

(2). Set up the Mount directory
Mkdir/mnt/c
mkdir/mnt/d
mkdir/mnt/e

(3). All partitions under Mount Windwos
NTFS with MOUNT-T ntfs/dev/hda6/mnt/c
VFAT with Mount-t vfat/dev/hda5/mnt/d

Use Df-h to see if the mount is up

(4). Set up automatic mount partition
Modify/etc/fstab
Add the following information:
/DEV/HDA1/MNT/C NTFS Umask=000,nls=utf8
/DEV/HDA5/MNT/D VFAT Umask=000,nls=utf8
/dev/hda6/mnt/e NTFS Umask=000,nls=utf8
Reboot and try it again.

5. Uninstall NTFS module
Rpm-qa|grep-i NTFS to view the installed version
Rpm-e kernel-module-ntfs-2.6.18-53.el5-2.1.27-0.rr.10.11.i686
can be uninstalled.

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.