How does one display the Chinese character file name in the FAT partition in Linux?

Source: Internet
Author: User

Since the release of redhat, no matter which version you connect to the windows partition, the Chinese file name cannot be correctly displayed, Which is troublesome for most friends who use redhat. After the installation, not only will the widows partition be automatically mounted, but the Chinese file name can be correctly displayed. I will introduce two solutions for you!

1: Install the Rpm package of linuxconf

You can find an rpm package of linuxconf. redhat is not installed by default. you can find it on your CD or on the Internet. Generally, there will be no version problems. For example, if I use redhat8.0, linxuconf is actually version 7.2.

Locate linuxconf and run

Rpm-ivh linuxconf *****. rpm

(1) running on a terminal

Linuxconf

(2) find Access local drive in the File systems tree menu to go

(3) Mount windows first, select add, and then take the following example:

Partition-/dev/hda1 Type-vfat mount-/mnt/c

(4) It is the parameter for displaying the Chinese file name.

After mounting a partition, move the cursor down and Dump frequency enters 0; Fsck priority inputs 0; default permission inputs 0;

Other options input iocharset = gb2312, codepage = 936. Complete, and always confirm from start the machine.

2: You can also modify the configuration file in/etc/fstab.

Vi/etc/fstab

Join:

/Dev/hda1/mnt/c vfat exec, dev, suid, rw, umask = 0, iocharset = gb2312, codepage = 936 0 0
/Dev/hda5/mnt/d vfat exec, dev, suid, rw, umask = 0, iocharset = gb2312, codepage = 936 0 0
/Dev/hda6/mnt/e vfat exec, dev, suid, rw, umask = 0, iocharset = gb2312, codepage = 936 0 0/dev/hda7/mnt/f vfat
Exec, dev, suid, rw, umask = 0, iocharset = gb2312, codepage = 936 0 0
/Dev/hda8/mnt/g vfat exec, dev, suid, rw, umask = 0, iocharset = gb2312, codepage = 936 0 0

If you have already mounted the file, you just need to add the parameter.

Remember, it is best to create a folder where you want to hook up now!

My system can be displayed normally. It is much easier to open a song with a Chinese name in xmms.

Related Articles]

  • Linux Chinese environment (Special topics)

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.