Recently, I finally installed a linux server in my company. The linux system installed was CentOS6.3. during the installation, I did not cover the partitions of Windows2003, but I just allocated a small disk (4 GB) partition swap, and then allocate GB to/partition. The NTFS partition cannot be mounted after the installation is successful. The mount error "mount: unknownfilesystemtype 'ntfs
Recently, we finally installed a linux server in our company. The installed linux system is CentOS 6.3, and the Windows partition is not covered during installation, only a small disk (4 GB) is allocated to swap, and then GB is allocated. The NTFS partition cannot be mounted after the installation is successful. The mount error "mount: unknown filesystem type 'ntfs '" is returned '"
CentOS, unlike ubuntu, does not automatically mount NTFS by default, and it can use NTFS-3G to achieve mounting and read/write. NTFS-3G is an open source software that can realize NTFS read and write support in Linux, Free BSD, Mac OSX, NetBSD and Haiku operating systems. It can read and write NTFS partitions in Windows safely and quickly without worrying about data loss.
1. install NTFS-3G
1. download the rpmforge rpm Package
You can download it from the repoforge website, for example:
CentOS 6 EL6, 32-bit system i686, 64-bit system x86_64
32-bit download portal
64-bit download portal
2. install rpmforge's rpm Package
For example:
# Rpm-ivh rpmforge-release-0.5.2-2.el6.rf.i686.rpm
3. install NTFS-3G
# Yum install fuse-ntfs-3g
II. Mount NTFS partitions
In the graphic interface, click "location-computer" in the upper left corner and select a disk to mount the NTFS partition. However, the system is on the server and the operation is connected through SSH. Therefore, the mount command should be used for mounting.
1. mount the NTFS partition
Mount command format:
Mount [-t vfstype] [-o options] device dir
Where:
1.-t vfstype specifies the type of the file system, which is usually not required. Mount automatically selects the correct type. Common types include:
CD or CD Image: iso9660
Windows 9x fat32 file system: vfat
Windows NT ntfs file system: ntfs
2.-o options is used to describe the mounting method of a device or file. Common parameters include:
Loop: used to connect a file to the system as a hard disk partition.
Ro: mounting a device in read-only mode
Rw: mounting a device in read/write mode
Iocharset: specifies the character set used to access the file system
3. the device to be mounted.
Use fdisk-l to view the device, or enter the/dev directory.
4. mount point of the device on the system)
In the/mnt directory, I am going to create a windows C and D directories. The mount command is as follows:
Mount-t ntfs-o loop/dev/sda1/mnt/winc
2. df view Mount points
Df-h
3. unmount umount
Umount/dev/sda1
Or
Umount/mnt/winc
III. fstab file configuration
The above settings can be mounted to the NTFS partition, but it is inconvenient to manually enter the mount command every time to mount the partition. We can set the fstab file to enable the system to automatically mount the NTFS partition at startup, for example:
The file contains six columns, which are explained one by one below.
1. the 1st column is the file system or storage device to be mounted. here is the C drive on my Windows, and the partition is/dev/sda1.
2. columns 2nd are Mount points. I chose/mnt/winc.
3. columns 3rd specify the type of the file system or partition. my C disk is NTFS and is represented as ntfs in Linux.
4. the 4th column lists mounting options. for details, refer to man mount. The following lists some common options:
Auto: Automatic mounting. fstab is the default option.
Ro: read-only
Rw: read-write
ULTS: rw, suid, dev, exec, auto, nouser, and async.
5. columns 5th as the "dump" option, and sets whether to allow the backup program to dump the backup file system. values 0 are ignored, and 1 is backup.
6. columns 6th as the fsck option, telling the fsck program in what order to check the file system, 0 is ignored.
Now, the NTFS automatic mounting is completed.